-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofiles.yaml
More file actions
47 lines (39 loc) · 995 Bytes
/
profiles.yaml
File metadata and controls
47 lines (39 loc) · 995 Bytes
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
# yaml-language-server: $schema=https://creativeprojects.github.io/resticprofile/jsonschema/config-1.json
groups:
full:
- database
- www
default:
repository: $LOCAL_BACKUPS_PATH
initialize: true
password-file: ./password-file
compression: max
backup:
check-after: true
retention:
keep-daily: 7
keep-weekly: 4
keep-monthly: 12
prune: true
database:
inherit: default
backup:
stdin: true
stdin-command: "mysqldump -u$DB_USER -p$DB_PASS -h$DB_HOST $DB_NAME"
stdin-filename: "database_dump.sql"
tag:
- db
www:
inherit: default
backup:
source:
- $DIRECTORY_TO_BACKUP
exclude:
- "$DIRECTORY_TO_BACKUP/cache"
- "$DIRECTORY_TO_BACKUP/log"
- "$DIRECTORY_TO_BACKUP/tmp"
- "$DIRECTORY_TO_BACKUP/img/tmp"
- "$DIRECTORY_TO_BACKUP/img/**/*_default.jpg"
tag:
- www
run-after: rclone sync $LOCAL_BACKUPS_PATH $RCLONE_REMOTE_NAME --log-file=/tmp/rclone.log --log-level INFO