-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.example.yaml
42 lines (36 loc) · 1.51 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
34
35
36
37
38
39
40
41
42
# Using containers means the hostname might change, so it's better to hard-code instead
# of using the Borg placeholder '{hostname}'.
# This applies to archive_name_format and in the repository path
archive_name_format: '${HOSTNAME}-main-{now}'
repositories:
- path: "ssh://user@host:23/./${HOSTNAME}-main.borg"
label: main
encryption_passphrase: "A VERY VERY LONG AND COMPLICATED PASSPHRASE"
ssh_command: ssh -i /root/.ssh/id_borgmatic
source_directories:
- /data/backups
- /var/lib/docker/volumes/
- /var/lib/docker/containers/*/*.log
- /data/app-something/data/db/backups
# - /data/app-http-logger/data/logs
# - /data/app-http-logger/data/encrypted
# - /data/app-http-logger/data/compressed
# exclude_patterns:
# - "/data/app-something/data/files/*-*-*T*:*:*.*/*"
# before_backup:
# - /data/useful-scripts/virtuoso-backup.sh `/usr/bin/docker ps --filter "label=com.docker.compose.project=app-something" --filter "label=com.docker.compose.service=triplestore" --format "{{.Names}}"`
# - /data/useful-scripts/virtuoso-backup.sh <another_container>
# after_backup:
# - find /data/app-something/data/db/backups -type f -delete
on_error:
- echo "Error while creating a backup."
# By default, we consider being in append-only mode. If this is the case, we should disable
# compacting and pruning. If not in append-only mode, set keep_* variables instead.
skip_actions:
- compact
- prune
# keep_daily: 7
# keep_weekly: 4
# keep_monthly: 6
# keep_yearly: 1
# keep_within: 5y