8 Backup all or individual systems.
10 Usage: `backup-script [<options>] [<system> [<system> [...]]]`
14 - `-p`, `--progress`: Show progress, see rsync(1).
15 - `-n`, `--dry-run`: Test run only, don't copy any data.
17 When no *system* is given, all defined systems are used.
19 ### backup-script-wrapper
21 Backup all systems and mail the report to "root".
23 Usage: `backup-script-wrapper`
27 Show information about backups.
29 Usage: `backup-status [-q] [<system> [<system> [...]]]`
33 - `-q`: *quick mode*, don't calculate backup sizes.
38 All defauklt configuration variables are read from `/etc/backup-script.conf`,
39 from `/etc/backup-script.d/backup-script.conf` (deprecated). The individual
40 systems are configured using individual files in `/etc/backup-script.d/`, one
41 for each system to backup (files ending in `*.sh` are skipped).
43 Variables in `backup-script.conf` must be prefixed with `default_` to define
44 default values for all systems.
46 All default can be overwritten in individual system configuration files.
50 - `/etc/backups-script.conf`: defaults for all hosts
51 - `/etc/backups-script.d/host01.example.net`: configuration for host 1
52 - `/etc/backups-script.d/clientXY.example.com`: configuration for host 2
55 ## Configuration Variable
59 System host name. Default: file name.
61 *Note:* There is no `default_system` variable!
65 Remote user. Default: `root`.
69 Local backup directory. The backup of each system is stored in a folder named
70 like the system (see `system` variable) inside of this target directory.
72 *Note:* There is *no* default, you have to specify this variable, for example as
73 `default_target` in the `backups-script.conf` file!
75 ### [default_]ssh_args_add
77 Additional parameters for `ssh`. Default: none.
79 ### [default_]rsync_args_add
81 Additional parameters for `rsync`. Default: none.
83 ### [default_]exclude_args_add
85 Additional (exclude) parameters for `rsync`. Default: none.
87 ### [default_]compress
89 Enable (1) or disable (0) compression. Default: 1 (on).
93 Enable (1) or disable (0) ping'ing the target system to make sure that it is
94 reachable before calling `rsync`. Default: 1 (on).
98 Enable (1) or disable (0) *local mode*: when local mode is in effect, `rsync` is
99 called without using `ssh`, which is a good idea when saving the local system.
100 Default: 0 (off; use ssh).
102 ### [default_]generations
104 Number of generations to keep. Default: 0 (none).
106 On a *btrfs* target file systems (see `target` variable), this script can
107 generate generations using *btrfs snapshots*: the script creates a new snapshot
108 named with the timestamp for each generation inside of the system directory
109 inside of the target directory.
111 ### [default_]job_pre_exec
113 Optional script to execute before `rsync` starts. Default: none.
115 When the `job_pre_exec` script returns an error (exit code is not 0), the backup
118 ### [default_]job_post_exec
120 Optional script to execute after `rsync` exited. Default: none.