- 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 savefs backup.fsa /dev/sda1 /dev/sda2
- Restore a partition from a backup archive.
Use the restfs option of fsarchiver like this:
fsarchiver restfs backup.fsa id=0,dest=/dev/sda1
id=0 denotes that we want to pick the first partition from the archive to the partition specified as dest=/dev/sda1.
Restore multiple partitions from a backup archive.
As earlier, use the restfs option as follows:
fsarchiver restfs backup.fsa id=0,dest=/dev/sda1
id=1,dest=/dev/sdb1
Here, we use two sets of the id,dest parameter to tell fsarchiver to restore the first two partitions from the backup to two physical partitions.