1,723
edits
m |
m |
||
Line 109: | Line 109: | ||
*rpm -Uhv /usr/src/fsarchiver-0.8.6-1.el7.x86_64.rpm --nodeps | *rpm -Uhv /usr/src/fsarchiver-0.8.6-1.el7.x86_64.rpm --nodeps | ||
'''Done! Installed! Finished! Working;'''<syntaxhighlight lang="text"> | '''Done! Installed! Finished! Working;''' | ||
<syntaxhighlight lang="text"> | |||
fsarchiver | fsarchiver | ||
====> fsarchiver version 0.8.6 (2021-02-27) - http://www.fsarchiver.org <==== | ====> fsarchiver version 0.8.6 (2021-02-27) - http://www.fsarchiver.org <==== | ||
Line 137: | Line 138: | ||
-h: show help and information about how to use fsarchiver with examples | -h: show help and information about how to use fsarchiver with examples | ||
-V: show program version and exit | -V: show program version and exit | ||
</syntaxhighlight> | |||
<syntaxhighlight lang="text"> | |||
<examples> | |||
* save only one filesystem (/dev/sda1) to an archive: | |||
fsarchiver savefs /data/myarchive1.fsa /dev/sda1 | |||
* save two filesystems (/dev/sda1 and /dev/sdb1) to an archive: | |||
fsarchiver savefs /data/myarchive2.fsa /dev/sda1 /dev/sdb1 | |||
* restore the first filesystem from an archive (first = number 0): | |||
fsarchiver restfs /data/myarchive2.fsa id=0,dest=/dev/sda1 | |||
* restore the second filesystem from an archive (second = number 1): | |||
fsarchiver restfs /data/myarchive2.fsa id=1,dest=/dev/sdb1 | |||
* restore two filesystems from an archive (number 0 and 1): | |||
fsarchiver restfs /data/arch2.fsa id=0,dest=/dev/sda1 id=1,dest=/dev/sdb1 | |||
* restore a filesystem from an archive and convert it to reiserfs: | |||
fsarchiver restfs /data/myarchive1.fsa id=0,dest=/dev/sda1,mkfs=reiserfs | |||
* restore a filesystem from an archive and specify extra mkfs options: | |||
fsarchiver restfs /data/myarchive1.fsa id=0,dest=/dev/sda1,mkfs=ext4,mkfsopt="-I 256" | |||
* restore a filesystem from an archive and specify a new label and a new UUID: | |||
fsarchiver restfs /data/myarchive1.fsa id=0,dest=/dev/sda1,label=root,uuid=5f6e5f4f-dc2a-4dbd-a6ea-9ca997cde75e | |||
* save the contents of /usr/src/linux to an archive (similar to tar): | |||
fsarchiver savedir /data/linux-sources.fsa /usr/src/linux | |||
* save a filesystem (/dev/sda1) to an archive split into volumes of 680MB: | |||
fsarchiver savefs -s 680 /data/myarchive1.fsa /dev/sda1 | |||
* save a filesystem and exclude all files/dirs called 'pagefile.*': | |||
fsarchiver savefs /data/myarchive.fsa /dev/sda1 --exclude='pagefile.*' | |||
* generic exclude for 'share' such as '/usr/share' and '/usr/local/share': | |||
fsarchiver savefs /data/myarchive.fsa --exclude=share | |||
* absolute exclude valid for '/usr/share' but not for '/usr/local/share': | |||
fsarchiver savefs /data/myarchive.fsa --exclude=/usr/share | |||
* save a filesystem (/dev/sda1) to an encrypted archive: | |||
fsarchiver savefs -c mypassword /data/myarchive1.fsa /dev/sda1 | |||
* same as before but prompt for password in the terminal: | |||
fsarchiver savefs -c - /data/myarchive1.fsa /dev/sda1 | |||
* extract an archive made of simple files to /tmp/extract: | |||
fsarchiver restdir /data/linux-sources.fsa /tmp/extract | |||
* show information about an archive and its filesystems: | |||
fsarchiver archinfo /data/myarchive2.fsa | |||
</syntaxhighlight> | </syntaxhighlight> | ||