$backup_modes[]
List of all supported modes of operation.
Default: backup restore
$backup_targets_supported[]
List of targets supported by all operation modes.
Default: full config data
$backup_targets[]
List of backup/restore targets to execute.
$backup_datadir
Location of all package backup data
Default: $backup_datadir/backups
$backup_stagedir
Path to staged backup data.
Default: $backup_datadir/stage
backup_script_stagedir
Path to staged backup data for the current script.
Default: $backup_stagedir/$script_name
$backup_storedir
Path to stored backup archives.
Default: $backup_datadir/store
$backup_rsync_opts[]
Extra options to pass to rsync.
Default: --archive
backup_target_add()
Adds a backup target to $backup_targets[].
backup_file()
Uses rsync to back up a single file or directory ($1) to the staging directory.
restore_file()
Uses rsync to restore a single file or directory ($1) from the staging directory.
backup_exec()
Executes a command for all $backup_targets[] for the given backup mode ($1). Additional arguments ($@) are passed to the backup function.
local/user configuration files may not exist
backup_host_storedir
Path to stored backup data for host ($1).
secure archive name before starting