Author: | Liraz Siri <liraz@turnkeylinux.org> |
---|---|
Date: | 2010-09-01 |
Manual section: | 8 |
Manual group: | backup |
tklbam-backup [ -options ] [ override ... ]
<override> := <filesystem-override> | <database-override>
Overrides are usually configured in /etc/tklbam/overrides.
<filesystem-override> := -?/path/to/include/or/exclude
This includes or excludes additional files and directories from being backed up if they've changed since installation.
Overrides defaults in /var/lib/tklbam/profile/dirindex.conf
Gotchas:
Examples:
# exclude log files in /var/www -/var/www/*/logs # ignores changes to webmin configuration -/etc/webmin # include the contents of an external hard disk... /mnt/images
<database-override> := -?mysql:database[/table]
By default ALL databases are backed up. Adding a positive override changes the default behavior so that only the database or table specified in the override is included in the backup.
You can mix positive overrides with negative overrides.
Examples:
# exclude Drupal6 sessions table -mysql:drupal6/sessions # only include drupal6 database mysql:drupal6
--address=TARGET_URL | |
manual backup target URL. Default: automatically configured via Hub | |
--simulate, -s | Simulate operation. Don't actually backup. Useful for inspecting /TKLBAM by hand. |
--quiet, -q | Be less verbose |
--logfile=PATH | Path of file to log output to. Default: /var/log/tklbam-backup |
--volsize MB | Size of backup volume in MBs. Default: 50 |
--full-backup FREQUENCY | |
Time frequency of full backup. Default: 1M <frequency> := <int>[DWM]
|
Resolution order for configurable options:
comand line (highest precedence)
configuration file (/etc/tklbam/conf):
# comment <option-name> <value>
built-in default (lowest precedence)
Configuration files: | |
---|---|
/etc/tklbam/overrides, /etc/tklbam/conf, /etc/tklbam/hooks.d | |
Local cache of profile: | |
/var/lib/tklbam/profile |
tklbam (8), tklbam-faq (7)