Hi all,
What is the best way to make an image of a remote server(on a cron monthly basis for instance) and keep the image on an external drive for easy restoration?
i'd like to have a cron making the image every month,to a second harddrive,maybe copy the image over the network to a backup server.And if the drive server crashes,restore the image in the quickest possible manner.I would prefer it if i dont need to worry about filesystems,partition tables,even not formatting if possible etc.
In other words,stick a new harddrive in the server,or a new server.Boot from a live cd with network support and restore the image.
Also i know the command
Code:
dd if=/dev/hda | gzip --fast > hda.img.gz
makes a complete image of the drive.does this mean if the drive is 40GB but only 5GB used(35GB free) it needs 40GB space or 5GB space?
To Restore the image
Code:
gzcat -dc hda.img.gz | dd of=/dev/hdb
Does hdb need to be formatted in this case or not?
Any other suggestions?thanks for any help?