xfsrestore command examples

xfsrestore command examples

xfsrestore – XFS filesystem incremental restore utility

To restore the root filesystem from a locally mounted tape:

# xfsrestore -f /dev/tape /

To restore from a remote tape, specifying the dump session id:

# xfsrestore -L session_1 -f otherhost:/dev/tape /new

To restore the contents a of a dump to another subdirectory:

# xfsrestore -f /dev/tape /newdir

To copy the contents of a filesystem to another directory (see xfsdump):

# xfsdump -J - / | xfsrestore -J - /new

Leave a Reply

Your email address will not be published. Required fields are marked *