A few years ago, I had the opportunity to learn and practice how to backup hard drives and restore copies onto other machines with identical settings. We had purchased a bunch of laptops and imaging solutions weren’t as developed or allowed in my environment (required a server).
FSArchiver is a system tool that allows you to save the contents of a file-system to a compressed archive file. The file-system can be restored on a partition which has a different size and it can be restored on a different file-system.…FSArchiver also creates the file-system when it extracts the data to partitions. Everything is checksummed in the archive in order to protect the data. If a file is corrupt, you just lose the current file, not the whole archive.
- Ability to restore the filesystem to a partition which is smaller than the original
- Ability to restore the filesystem to a partition which is bigger than the original
- Ability to do multi-threaded compression which is faster on recent computer with multiple cores/cpu
- Ability to encrypt the data with a password
Item #2 was relevant, since I was restoring from an 80gig hard drive to a 180gig hard drive, a drive much bigger than the original.
fsarchiver probe simple
mount -t ext3 /dev/sdd1 /mnt/backup
I changed to that directory with this command:
4) Begin the Backup Process with FSArchiver. I began the backup process using FSArchiver by typing (note that /dev/sda1 is the location of the hard drive partition I want to backup)
fsarchiver savefs /mnt/backup/hddbackup.fsa /dev/sda1
Here is the report FSArchiver gave me at the end of its process:
Statistics for filesystem 0* files successfully processed:….regfiles=37329, directories=4308,symlinks=2,hardlinks=3,specials=0*files with errors:…………………..regfiles=0, directories=0, symlinks=0, hardlinks=0, specials=0
When the backup process was completed, I restored the backup using the command below:
fsarchiver restfs /mnt/backup/netbook.fsa id=0,dest=/dev/sda2
Here is the report I received from FSArchiver when it was done:
Statistics for filesystem 0* files successfully processed:….regfiles=37329, directories=4308, symlinks=2, hardlinks=3, specials=0*files with errors: regfiles=0, directories=0, symlinks=0,hardlinks=0,specials=0
5) Unmount your external USB drive safely and exit. You can quickly unmount your external USB drive–as opposed to just turning everything off or unplugging it without warning, which can be problematic to data integrity–by typing the following at the command line:
Then to exit, just type the following command and shutdown your computer: