Creating entire disk images using fsarchiver
The fsarchiver
application can save the contents of a disk partition to a compressed archive file. Unlike tar
or cpio
, fsarchiver
retains extended file attributes and can be restored to a disk with no current filesystem. The fsarchiver
application recognizes and retains Windows file attributes as well as Linux attributes, making it suitable for migrating Samba-mounted partitions.
Getting ready
The fsarchiver
application is not installed in most distros by default. You will have to install it using your package manager. For more information, go to http://www.fsarchiver.org/Installation.
How to do it...
- Create a backup of a
filesystem/partition
.
Use the savefs
option of fsarchiver
like this:
fsarchiver savefs backup.fsa /dev/sda1
Here backup.fsa
is the final backup file and /dev/sda1
is the partition to backup
- Back-up more than one partition at the same time.
Use the savefs
option as earlier and pass the partitions as the last parameters to fsarchiver
:
fsarchiver...