2014-10-30 22:34:03 -07:00
|
|
|
[location]
|
|
|
|
# Space-separated list of source directories to backup.
|
2016-02-13 21:05:34 +01:00
|
|
|
# Globs are expanded.
|
|
|
|
source_directories: /home /etc /var/log/syslog*
|
2014-10-30 22:34:03 -07:00
|
|
|
|
2016-06-10 13:31:37 -07:00
|
|
|
# Stay in same file system (do not cross mount points).
|
2016-02-13 10:43:31 -08:00
|
|
|
#one_file_system: True
|
|
|
|
|
2016-06-10 13:31:37 -07:00
|
|
|
# Alternate Borg remote executable (defaults to "borg"):
|
|
|
|
#remote_path: borg1
|
|
|
|
|
2015-07-18 18:35:29 -07:00
|
|
|
# Path to local or remote repository.
|
2016-06-10 11:21:53 -07:00
|
|
|
repository: user@backupserver:sourcehostname.borg
|
2014-10-30 22:34:03 -07:00
|
|
|
|
2015-09-02 22:48:07 -07:00
|
|
|
[storage]
|
|
|
|
# Passphrase to unlock the encryption key with. Only use on repositories that
|
|
|
|
# were initialized with passphrase/repokey encryption.
|
|
|
|
#encryption_passphrase: foo
|
2016-06-10 13:31:37 -07:00
|
|
|
|
2016-06-10 11:21:53 -07:00
|
|
|
# Type of compression to use when creating archives. See
|
|
|
|
# https://borgbackup.readthedocs.org/en/stable/usage.html#borg-create
|
2015-09-02 22:48:07 -07:00
|
|
|
# for details. Defaults to no compression.
|
|
|
|
#compression: lz4
|
2016-06-10 13:31:37 -07:00
|
|
|
|
2016-06-10 11:21:53 -07:00
|
|
|
# Umask to be used for borg create.
|
2017-06-25 10:36:36 -07:00
|
|
|
#umask: 0077
|
2015-09-02 22:48:07 -07:00
|
|
|
|
2014-10-30 22:34:03 -07:00
|
|
|
[retention]
|
2015-05-10 22:00:31 -07:00
|
|
|
# Retention policy for how many backups to keep in each category. See
|
2016-04-10 10:23:32 -07:00
|
|
|
# https://borgbackup.readthedocs.org/en/stable/usage.html#borg-prune for details.
|
2015-07-27 19:06:39 -07:00
|
|
|
#keep_within: 3H
|
2014-12-06 18:35:20 -08:00
|
|
|
#keep_hourly: 24
|
2014-10-30 22:34:03 -07:00
|
|
|
keep_daily: 7
|
|
|
|
keep_weekly: 4
|
|
|
|
keep_monthly: 6
|
2014-12-06 18:35:20 -08:00
|
|
|
keep_yearly: 1
|
2016-06-10 13:31:37 -07:00
|
|
|
|
2014-12-06 18:35:20 -08:00
|
|
|
#prefix: sourcehostname
|
2015-05-10 22:00:31 -07:00
|
|
|
|
|
|
|
[consistency]
|
|
|
|
# Space-separated list of consistency checks to run: "repository", "archives",
|
|
|
|
# or both. Defaults to both. Set to "disabled" to disable all consistency
|
2016-06-10 11:21:53 -07:00
|
|
|
# checks. See https://borgbackup.readthedocs.org/en/stable/usage.html#borg-check
|
|
|
|
# for details.
|
2015-05-10 22:00:31 -07:00
|
|
|
checks: repository archives
|
2016-06-10 13:31:37 -07:00
|
|
|
|
2016-06-10 11:21:53 -07:00
|
|
|
# Restrict the number of checked archives to the last n.
|
2015-07-27 21:47:52 -07:00
|
|
|
#check_last: 3
|