sys/backup

System Backup/Restore Support

Dependency Graph

sys/backup: Library Dependencies

View the full-size SVG (svg) or PDF (pdf) image or graphviz source (dot)

View color source code (raw) for this file

View reStructuredText (rst) source code for this page

Library Configuration

$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 Targets

backup_target_add()

Adds a backup target to $backup_targets[].

File Backups

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.

Backup archives

Built-in backup methods

local/user configuration files may not exist

Tool backup/restore

Host backup/restore interface

backup_host_storedir

Path to stored backup data for host ($1).

secure archive name before starting

Remote Backup and Restore

Cloud Backup/Restore Interface

Backup CLI support


View the Developer Guide Index

View the Reference Manual Index


Generated on Fri Jul 28 14:38:23 PDT 2017 by mcsh d14 v0.23.0.