rdup-restore(8) - Linux man page
Name
rdup-restore - restore a filesystem from a specific directorySynopsis
rdup-restore [ OPTIONS ] -b TO_DIR FROM_DIR [ FROM_DIR ... ]Description
Note; if you still backup with 'rdup-dump' you can only restore to the latest state of your backup. With 'rdup-snapshot' you can also restore to any previous state, see rdup-snapshot(8).
Restoring from a backup is as simple as: rdup-restore -b /tmp/home /vol/backup/elektron/200604/home
Note: The restored files "inherit" the '/vol/backup/elektron/200604' prefix. So the restored files are found in the directory: '/tmp/home/vol/backup/elektron/200604/home'.
Options
- -S
- Restore a rdup-snapshot backup. This is a hardlinked backup, so one can also restore these with 'cp'. Consider this a convient function.
- -D
- Restore a rdup-dump backup. Due to the way this backup is made, you can only restore to the latest version of your backup. -D is the default for rdup-restore.
- -b TO_DIR
- This option is mandatory. It specifies the directory where the backup should be restored in.
- -c user@remotehost
- Pull a backup from a remote host. This will create a pipeline of the form:
ssh user@remotehost rdup -c /dev/null FROM_DIR | rdup-mirror -c TO_DIR
There is no provisioning for ssh so unless you have configured ssh to work without a passphrase you will be asked to supply one. Also note that the PATH on the remote host should be set in such a way that all the rdup-utils can be found.
- -k keyfile
- Decrypt the files while restoring with keyfile. This option inserts rdup-crypt -d keyfile in the pipeline. If both -z and -k are given they are performed in the order they are given.
- -z
- Decompress the files while restoring. This option inserts rdup-gzip -d in the pipeline. If both -z and -k are given a file is first decrypted and then unzipped. This is ofcourse the opposite of what rdup-dump does.
- -a
- Enable extended attributes. Rad the uid/gid to the extended user attributes r_uid and r_gid.
- -v
- Echo the files processed to standard error.
- -h
- Show a short help message.
- -V
- Show the version.
Examples
Local Restore
Restoring from my local backup:rdup-restore -b /tmp/restore /vol/backup/elektron/200604/home/miekg/bin
Remote Restore
Restoring from a remote server:rdup-restore -c miekg@remote -b /tmp/restore ~/bin