Repository navigation
Expand file tree
/
Copy pathserver.toml
More file actions
73 lines (61 loc) · 1.65 KB
/
Copy pathserver.toml
File metadata and controls
73 lines (61 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# btrfs-backup-ng Server Configuration
#
# Configuration for a server with frequent snapshots and multiple backup targets.
# Copy to /etc/btrfs-backup-ng/config.toml
[global]
snapshot_dir = ".snapshots"
incremental = true
log_file = "/var/log/btrfs-backup-ng.log"
parallel_volumes = 1 # Sequential for servers (less resource contention)
parallel_targets = 2
[global.retention]
min = "6h"
hourly = 48
daily = 14
weekly = 8
monthly = 12
yearly = 2
# Web application data
[[volumes]]
path = "/var/www"
snapshot_prefix = "www-"
[[volumes.targets]]
path = "/mnt/backup/www"
[[volumes.targets]]
path = "ssh://backup@offsite:/backups/server/www"
ssh_sudo = true
ssh_key = "/root/.ssh/backup_key"
compress = "zstd" # compressed over the wire, decompressed on the
# remote before btrfs receive
rate_limit = "50M"
# Database storage
[[volumes]]
path = "/var/lib/mysql"
snapshot_prefix = "mysql-"
# More frequent retention for databases
[volumes.retention]
min = "2h"
hourly = 72
daily = 30
weekly = 12
monthly = 12
[[volumes.targets]]
path = "/mnt/backup/mysql"
[[volumes.targets]]
path = "ssh://backup@offsite:/backups/server/mysql"
ssh_sudo = true
ssh_key = "/root/.ssh/backup_key"
compress = "zstd" # compressed over the wire, decompressed on the
# remote before btrfs receive
# Mail storage
[[volumes]]
path = "/var/mail"
snapshot_prefix = "mail-"
[[volumes.targets]]
path = "/mnt/backup/mail"
[[volumes.targets]]
path = "ssh://backup@offsite:/backups/server/mail"
ssh_sudo = true
ssh_key = "/root/.ssh/backup_key"
compress = "gzip" # compressed over the wire, decompressed on the
# remote before btrfs receive