bk/config.toml

96 lines
1.7 KiB
TOML
Raw Normal View History

2025-01-05 00:37:20 +01:00
# Run a script before backup
2025-01-11 16:55:31 +01:00
# start_script = "before.sh"
2025-01-05 00:37:20 +01:00
# Run a script after backup
2025-01-11 16:55:31 +01:00
# end_script = "after.sh"
2025-01-05 00:37:20 +01:00
# Rsync Operation
2025-01-11 16:55:31 +01:00
# [[rsync]]
2025-01-05 00:37:20 +01:00
# Directories SHOULD have trailing `/`
2025-01-11 16:55:31 +01:00
# src = "/home/me/"
# dest = "/backup/home/me/"
2025-01-05 00:37:20 +01:00
# Excludes
2025-01-11 16:55:31 +01:00
# exclude = [".cache", ".local"]
2025-01-05 00:37:20 +01:00
# Delete entries not present in `src` from `destination`
2025-01-11 16:55:31 +01:00
# delete = true
2025-01-05 00:37:20 +01:00
# Ensure this directory exists and it not empty before running rsync
2025-01-11 16:55:31 +01:00
# ensure_exists = "/home"
2025-01-05 00:37:20 +01:00
2025-01-05 01:43:55 +01:00
# Make a CephFS snapshot before rsync
2025-01-11 16:55:31 +01:00
# cephfs_snap = true
2025-01-05 01:43:55 +01:00
2025-01-05 00:37:20 +01:00
# Borg Operation
2025-01-11 16:55:31 +01:00
# [[borg]]
2025-01-05 09:57:08 +01:00
# Repo to backup to
2025-01-11 16:55:31 +01:00
# repo = "/backup/repo.borg"
2025-01-05 09:57:08 +01:00
# Passphrase
2025-01-11 16:55:31 +01:00
# passphrase = "pass"
2025-01-05 09:57:08 +01:00
# Source Directories
2025-01-11 16:55:31 +01:00
# src = [ "/home/me/.config" ]
2025-01-05 09:57:08 +01:00
# Excludes
2025-01-11 16:55:31 +01:00
# exclude = [
# "some/dir"
# ]
2025-01-05 09:57:08 +01:00
# Exclude if present (example: Do not backup directories with `.nobackup`)
2025-01-11 16:55:31 +01:00
# exclude_if_present = [".nobackup"]
2025-01-05 09:57:08 +01:00
# Stay in one filesystem
2025-01-11 16:55:31 +01:00
# one_file_system = true
2025-01-05 09:57:08 +01:00
# Backup change time
2025-01-11 16:55:31 +01:00
# ctime = false
2025-01-05 09:57:08 +01:00
# Do not backup ACLs
2025-01-11 16:55:31 +01:00
# no_acls = true
2025-01-05 09:57:08 +01:00
# Do not backup extended attributes
2025-01-11 16:55:31 +01:00
# no_xattrs = true
2025-01-05 09:57:08 +01:00
# Comment to add to the backup
2025-01-11 16:55:31 +01:00
# comment = "Backup of /home/me/"
2025-01-05 09:57:08 +01:00
# Compression
2025-01-11 16:55:31 +01:00
# compression = "zstd,10"
2025-01-05 09:57:08 +01:00
2025-01-06 06:33:45 +01:00
# Ensure directory exists before backup
2025-01-11 16:55:31 +01:00
# ensure_exists = "/home/me"
2025-01-06 06:33:45 +01:00
# Make a CephFS snapshot before backup
2025-01-11 16:55:31 +01:00
# cephfs_snap = true
2025-01-06 06:33:45 +01:00
2025-01-05 09:57:08 +01:00
# Borg Check Operation
2025-01-11 16:55:31 +01:00
# [[borg_check]]
2025-01-05 09:57:08 +01:00
# Repository to check
2025-01-11 16:55:31 +01:00
# repo = "/backup/repo.borg"
2025-01-05 09:57:08 +01:00
# Full Data Verify
2025-01-11 16:55:31 +01:00
# verify_data = true
2025-01-05 09:57:08 +01:00
# Repair Attempt
2025-01-11 16:55:31 +01:00
# repair = false
2025-01-05 09:57:08 +01:00
# Borg Prune Operation
2025-01-11 16:55:31 +01:00
# [[borg_prune]]
2025-01-05 09:57:08 +01:00
# Repository to prune
2025-01-11 16:55:31 +01:00
# repo = "/backup/repo.borg"
2025-01-05 09:57:08 +01:00
# Passphrase
2025-01-11 16:55:31 +01:00
# passphrase = "pass"
2025-01-05 09:57:08 +01:00
2025-01-11 16:55:31 +01:00
# keep_within = "30d"
# keep_last = 20
2025-01-05 09:57:08 +01:00
# keep_secondly = 3
# keep_minutely = 3
# keep_hourly = 10
# keep_daily = 7
# keep_weekly = 4
# keep_monthly = 6
# keep_yearly = 2