Author: | Liraz Siri <liraz@turnkeylinux.org> |
---|---|
Date: | 2013-09-05 |
Manual section: | 8 |
Manual group: | backup |
tklbam-restore [ -options ] [ <hub-backup> ]
<hub-backup> := backup-id || unique label pattern || path/to/backup/extract
--raw-download=path/to/backup/ Download backup to directory without doing a system restore
--simulate | Do a dry run simulation of the system restore |
--limits=LIMITS | |
LIMITS := "LIMIT-1 .. LIMIT-N"
| |
--skip-files | Don't restore filesystem |
--skip-database | |
Don't restore databases | |
--skip-packages | |
Don't restore new packages | |
--logfile=PATH | Path to log file. Default: /var/log/tklbam-restore |
--no-rollback | Disable rollback |
--silent | Disable feedback |
--force | Disable sanity checking |
--debug | Run $SHELL after Duplicity |
--restore-cache-size=SIZE | |
The maximum size of the download cache default: 50% | |
--restore-cache-dir=PATH | |
The path to the download cache directory default: /var/cache/tklbam/restore |
Resolution order for configurable options:
command line (highest precedence)
configuration file (/etc/tklbam/conf):
# comment <option-name> <value>
built-in default (lowest precedence)
# Restore Hub backup id 1 tklbam-restore 1 # Same result as above but in two steps: first download the extract, then apply it tklbam-restore 1 --raw-download=/tmp/mybackup tklbam-restore /tmp/mybackup # Restore backup created with tklbam-backup --raw-upload=/srv tklbam-restore 2 --raw-download=/srv # Restore from Duplicity archives at a custom backup address on the local filesystem tklbam-restore --address=file:///mnt/backups/mybackup --keyfile=mybackup.escrow # Simulate restoring Hub backup id 1 while excluding changes to the /root path, # mysql 'customers' DB, and the 'emails' table in the 'webapps' DB tklbam-restore 1 --simulate --limits="-/root -mysql:customers -mysql:webapp/emails" # Simulate restoring only the /root files in Hub backup id 1 tklbam-restore 1 --simulate --skip-database --skip-packages --limits="/root"
Configuration files: | |
---|---|
/etc/tklbam/conf, /etc/tklbam/hooks.d | |
Restore cache: | /var/cache/tklbam/restore (by default, see --restore-cache-dir=PATH option) |
tklbam (8), tklbam-faq (7), tklbam-hooks (5)