xfsrestore
xfsrestore restores filesystems from dumps produced by xfsdump. Two modes of operation are available: simple and cumulative.[1]
The default is simple mode. xfsrestore populates the specified destination directory, DESTINATION, with the files contained in the dump media.[1]
The -r option specifies the cumulative mode. Successive invocations of xfsrestore are used to apply a chronologically ordered sequence of delta dumps to a base (level 0) dump. The contents of the filesystem at the time each dump was produced is reproduced. This can involve adding, deleting, renaming, linking, and unlinking files and directories.[1]
Documentation
- man 8 'xfsrestore' [EN]
Syntax
xfsrestore [PARAMETER ...] -f SOURCE1 [-f SOURCE2 ...] DESTINATION
Parameters
- -f SOURCE
- Specifies a SOURCE of the dump to be restored. This can be the pathname of a device (such as a tape drive), a regular file or a remote tape drive. This option must be omitted if the standard input option is specified.
Examples
- Restore /home
xfsrestore -f '/tmp/xfsdump.img' '/home'