Creating Backups:
- dd - Use this tool to take complete back ups of entire partitions or drives.
- dd if=[device you want to backup] of=[backup.img]
- IMPORTANT: This backup will be of the entire extent of the device you mention even if there is space on the drive. It will backup the entire extent.
- rsync - use this tool if you need to perform backups over a network.
- rsync -av [source] [destination]
- tar - Standard archiving.
- tar cvf tarball.tar /directory/
- dd if=/dev/sda of=/backups/sda.img
- rsync -av /root/ /backups/
- tar cvfj rootarchive.bz2 /root/
- dd - simply reverse the process
- rsync - Same idea as dd - Reverse the process.
- tar - Use the extract directive (x)
- dd if=/backups/sda.img /dev/sda
- rsync -v /backups/ /root/
- tar xvfj rootarchive.bz2
- Make sure you are in the directory you want to the data to be unpacked into.
So this will give you a quick and dirty rundown - I can't imagine that the Linux Foundation will require you to do crazy backups of large partitions. I think they want to see rsync and tar mostly as dd can be extremely time consuming. But we will see. My exam is Wednesday at 9AM EST
No comments:
Post a Comment