-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.example.yaml
33 lines (29 loc) · 1.19 KB
/
config.example.yaml
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
# Default settings for job, that can be overriden in individal job if needed.
jobDefaults:
# Default retention rules using btrfs-sxbackup expression:
# From https://github.com/masc3d/btrfs-sxbackup/blob/master/README.rst
# > Expression defining which source snapshots to
# > retain/cleanup. can be a static number (of backups) or
# > more complex expression like "1d:4/d, 1w:daily,
# > 2m:none" literally translating to: "1 day from now
# > keep 4 backups a day, 1 week from now keep daily
# > backups, 2 months from now keep none"
sourceRetention: "3"
destinationRetention: "1d:1/d, 1w:daily, 2w:daily, 3w:daily, 4w:daily, 5w:none"
# List of jobs to make backup process
# id - uniquie backup name (for internal usage only)
# source - source btrfs volume mount path
# destination - destination btrfs volume mount path
jobs:
'local-mysql':
source: '/var/lib/mysql'
destination: '/var/backups/mysql'
'local-postgresql':
source: '/var/lib/postgresql'
destination: '/var/backups/postgresql'
'local-home':
source: '/home'
destination: '/var/backups/home'
'remote-srv1-home':
source: 'ssh://root@remote-srv1/home'
destination: '/var/backups/remote-srv1/home'