Complete exact copy!
8 Answers
If you are wanting exact same partition layout then:
Open Source
Commercial
Or if you just want the data then cpio or tar can achieve those results too
NOTE: Most of these require physical access. If this is to be done via a hosted solution then you may look at the dd/netcat option and you could substitute dd with cpio or tar.
- 3,124
If you don't want to backup partition schema, but data, rdiff-backup is a great tool.
- 11,099
Take into account that hardware differences might make the copy system unbootable.
Although Linux is more flexible, there might be a situation where the system wont boot.
- 28,776
- 127
Ok... I have to throw this in... backing up Linux via imaging is a disaster waiting to happen. What happens when your hardware dies and you need to migrate to something different - different platform, drivers, etc.? What happens when you want to build a duplicate of the machine for testing, but need to change just a few things?
It's a big pain and a lot of work, but I've been handling this issue with existing infrastructure at work, and I'd really recommend going to a combination of file-based backup and automated installation/configuration. You'll get a lot more flexibility in the long run and, though setting it up for existing hosts is a pain, it will save a lot of trouble when the image eventually needs to be installed on different hardware.
- 1,536
To create image
cat /dev/sda | gzip -c > sda.image.gz
To write imageback
sudo sh -c “gunzip -c sda.image.gz | cat > /dev/sda”
Note that /dev/sda is just a generic drive, use "fdisk -l" to find what your drives identifier really is.
- 629
Mondo Rescue doesn't require physical access. Once saved me from travelling 700km! I just created and downloaded the image, copied it onto a HDD and sent it via mail. Someone just loaded the disk onto slave server and it worked.
- 484