-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrestless.yaml.example
84 lines (80 loc) · 2.35 KB
/
restless.yaml.example
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
74
75
76
77
78
79
80
81
82
83
84
## Restic repositories
## Each key stores the repository as well as the password
## Additional environment variables may be defined in the env dict
repos:
local:
repository: "/data/restless"
password: "supersecurepassword"
offsite:
repository: "b2:mybackblazebucket"
password: "ultrasecurepassword"
env:
B2_ACCOUNT_ID: "myb2accountid"
B2_ACCOUNT_KEY: "myb2accountkey"
## Apprise notification url
## See https://github.com/caronc/apprise?tab=readme-ov-file#productivity-based-notifications
## for supported services
notifications:
url: pover://user@token
## Set log level and log loction
log:
level: info
location: /var/log/restless.log
## Backup definitions
## Key sets the name that has to be used when calling restless in backup mode
backups:
daily:
# Name of the repository to use, must match repository defined in .repos
repo: local
# List of keep-options to be passed to restic forget
retention:
- --keep-last 14
# List of files and directories to include during restic backup
include:
- /home/markus/manifests
- /home/markus/restless
# List of exclude patterns that get applied at restic backup
exclude:
- .cache
- .vscode-server
# Scripts to run pre or post backup
scripts:
pre: |
mount -o remount,rw /data/restless
post: |
mount -o remount,ro /data/restless
weekly:
repo: local
retention:
- --keep-last 4
include:
- /home/markus/compose
exclude:
- .cache
- .vscode-server
## Backup definitions
## Key sets the name that has to be used when calling restless in replication mode
replication:
weekly:
# Name of the repository from which snapshots should be copied
from: local
# Name of the repository to which snapshots should be copied
to: offsite
# List of backups to sync between repos
include:
# name of the backup from .backups to sync
- backup: daily
# number of most recent snapshots to sync
syncLast: 1
# List of keep-options to be passed to restic forget
retention:
- --keep-last 12
- backup: weekly
syncLast: 1
retention:
- --keep-last 12
scripts:
pre: |
echo "This will run before any restic operations"
post: |
echo "This will run after all restic operations"