2014-10-31 06:34:03 +01: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-31 06:34:03 +01:00
|
|
|
|
2016-06-10 22:31:37 +02:00
|
|
|
# Stay in same file system (do not cross mount points).
|
2016-02-13 19:43:31 +01:00
|
|
|
#one_file_system: True
|
|
|
|
|
2016-06-10 22:31:37 +02:00
|
|
|
# Alternate Borg remote executable (defaults to "borg"):
|
|
|
|
#remote_path: borg1
|
|
|
|
|
2015-07-19 03:35:29 +02:00
|
|
|
# Path to local or remote repository.
|
2016-06-10 20:21:53 +02:00
|
|
|
repository: user@backupserver:sourcehostname.borg
|
2014-10-31 06:34:03 +01:00
|
|
|
|
2015-09-03 07:48:07 +02: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 22:31:37 +02:00
|
|
|
|
2016-06-10 20:21:53 +02:00
|
|
|
# Type of compression to use when creating archives. See
|
|
|
|
# https://borgbackup.readthedocs.org/en/stable/usage.html#borg-create
|
2015-09-03 07:48:07 +02:00
|
|
|
# for details. Defaults to no compression.
|
|
|
|
#compression: lz4
|
2016-06-10 22:31:37 +02:00
|
|
|
|
2016-06-10 20:21:53 +02:00
|
|
|
# Umask to be used for borg create.
|
2016-02-13 19:59:43 +01:00
|
|
|
#umask: 0740
|
2015-09-03 07:48:07 +02:00
|
|
|
|
2014-10-31 06:34:03 +01:00
|
|
|
[retention]
|
2015-05-11 07:00:31 +02:00
|
|
|
# Retention policy for how many backups to keep in each category. See
|
2016-04-10 19:23:32 +02:00
|
|
|
# https://borgbackup.readthedocs.org/en/stable/usage.html#borg-prune for details.
|
2015-07-28 04:06:39 +02:00
|
|
|
#keep_within: 3H
|
2014-12-07 03:35:20 +01:00
|
|
|
#keep_hourly: 24
|
2014-10-31 06:34:03 +01:00
|
|
|
keep_daily: 7
|
|
|
|
keep_weekly: 4
|
|
|
|
keep_monthly: 6
|
2014-12-07 03:35:20 +01:00
|
|
|
keep_yearly: 1
|
2016-06-10 22:31:37 +02:00
|
|
|
|
2014-12-07 03:35:20 +01:00
|
|
|
#prefix: sourcehostname
|
2015-05-11 07:00:31 +02: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 20:21:53 +02:00
|
|
|
# checks. See https://borgbackup.readthedocs.org/en/stable/usage.html#borg-check
|
|
|
|
# for details.
|
2015-05-11 07:00:31 +02:00
|
|
|
checks: repository archives
|
2016-06-10 22:31:37 +02:00
|
|
|
|
2016-06-10 20:21:53 +02:00
|
|
|
# Restrict the number of checked archives to the last n.
|
2015-07-28 06:47:52 +02:00
|
|
|
#check_last: 3
|