|
Clone & Backup your Linux system !
Background
clonesys is a Shell script that can be used to get an image of running Linux boxes.
The image can then be burned on CD/DVD. This CD/DVD is bootable and can be used to restore
the system as well as to install new similar boxes.
clonesys *IS NOT* a backup tool: it should not be used to backup users data, it is more
similar to other tools such as MkCdRec, Mondo Rescue, Timo's Rescue CD, etc...
Main Features
- Works with Linux kernel 2.4 and 2.6 (v1.2.0)
- Handles the standard (old) /dev structure, devfs and udev (v1.2.0)
- Supports software RAID built with raidtools or mdadm (v1.2.0)
- Supports LVM 1 & 2 and handles the metadata (v1.2.2)
- Supports ext2/3, JFS (v1.3.0), ReiserFS (v1.3.0) and FAT/DOS filesystems
- Supports Boot Loader on both MBR and Boot Partition (v1.2.2)
- Backups and restores Extended Attributes and ACLs (v1.2.0)
- Recreates the filesystems with the same options if they are not the default ones
- Allow images span on multiple CD/DVD (v1.2.0)
- Include a 'step by step' restoration to trace the process
- Allow a disk mapping at restoration time to support different hardware configuration
(for example: the image took a snapshot of /dev/hda but you can restore it on /dev/sdb) (v1.2.1)
- Allow restoration on a disk which geometry differ from the orginal one
- Tested with RedHat Linux 9/ES3/ES4, Mandrake 10.x, Fedora Core 3/4, SuSE 9.x
Features not yet implemented
- Support for xfs filesystems
- Options 'size' and 'device' of ext3 filesystems not handled
- Option 'stride' (RAID stripe) of ext2 not handled
If you wish to use clonesys but cannot because of a missing functionnality, just ask for it. I will try to implement it ASAP.
Download
Technical Details
==================================================================
Package: clonesys.sh
Version: 1.1.0
Date : 12 Nov 2004
Author : Jerome Delamarche (jd@inodes-fr.com)
==================================================================
------------------------------------------------------------------
A-Introduction:
------------------------------------------------------------------
Clonesys is a Shell script that can be used to create an ISO image
of your Linux system. It is not another tool that backup users
files but a tool that can recreate "ex nihilo" a similar system
on another hardware.
It could be compared with MKCdRec, Timo's Rescue or Mondo Rescue
tools. These tools are probably more powerful or offer a flashier
interface but they are often too complex to use.
Clonesys has bee designed to be as easy to use as possible.
It should be a fast solution for most Linux boxes.
What changed with the 1.0.1 version ? (see the ChangeLog)
Clonesys now supports the linux kernel 2.6 and the devfs filesystem.
It also uses the real commands and libraries and the cloned system to
create the image (in fact, this is mandatory in oder to load the kernel
modules in all cases)
Clonesys handles the symbolic links correctly, for the commands as well
as for the device names.
------------------------------------------------------------------
B-Supported Systems:
------------------------------------------------------------------
Linux Kernel 2.4.x, 2.6.x
Support for devfs
File systems: ext2/ext3/JFS/ReiserFS/Dos/LVM/Raid
CD-R Writer (optional)
Lilo and GRUB
Tested on both RedHat and Mandrake (SuSE soon, when it works
under VMWare !)
------------------------------------------------------------------
C-How to use this script ?
------------------------------------------------------------------
1-Check the configuration
The file "config.ini" contains some global variables that impact
the tool behaviour. Each parameter is commented, important ones
are flagged with a <CHECK> tag.
The tool also builds an archive of the system files. The files
that must be included in this archive must be listed in the
"backup.ini" file. See "backup.ini" file for the directives
format. Directives can include or exclude files and/or directories.
Please note that the file exclusion process can be time consuming
when building the archive.
If some specific modules must be loaded at boot time (a non-standard
SCSI driver, for example), we can add them to the optional "moremodules.list"
file.
At last, if your system contains LVM and/or RAID partitions which
are not described in the /etc/fstab file, you must describe them
in the "fs.ini" configuration file.
2-Run the cloning script
Launch the "clonesys.sh" script to create the ISO image.
According to the parameters in "config.ini", the ISO image can be
burned on a CD-RW.
3-Test the CD
The created CD is a bootable CD. It can be used to recreate
a new Linux Box that has the same characteristics as the original
one.
==================================================================
|
|
 |