-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathprofiles.yaml
72 lines (67 loc) · 1.4 KB
/
profiles.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
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
{{ define "env_minio_cred" }}
- AWS_ACCESS_KEY_ID: user
- AWS_SECRET_ACCESS_KEY: key
{{ end }}
{{ $minio_repo := "s3:http://127.0.0.1:9000/bucket" }}
global:
restic-binary: {{ .ConfigDir }}/restic
default-command: snapshots
initialize: true
priority: low
groups:
full-backup:
- VM1-Full
diff-backup:
- VM1-Diff
default:
env:
tmp: /tmp
template-KVM:
env:
{{ template "env_minio_cred" . }}
retention:
after-backup: true
before-backup: false
compact: true
host: true
keep-daily: 14
keep-hourly: 1
keep-last: 3
keep-monthly: 4
keep-tag:
- forever
keep-weekly: 12
keep-within: 1h
keep-yearly: 1
prune: true
tag:
- kvm
VM1:
inherit: template-KVM
repository: "{{ $minio_repo }}/VM1/"
password-file: keys.d/VM1.key
env:
- BACKUPLEVEL: incr
backup:
run-before: "{{ .ConfigDir }}/unifi-backup.sh -a backup -m $BACKUPLEVEL VM1"
one-file-system: true
source: /storage/kvm/instances/VM1
schedule:
- "Mon..Fri 8,10,12,14,16,18,20:00"
tag:
- kvm
- VM1 #change me
VM1-Diff:
inherit: VM1
env:
- BACKUPLEVEL: diff
backup:
schedule:
- "Mon..Fri 21:00"
VM1-Full:
inherit: VM1
env:
- BACKUPLEVEL: full
backup:
schedule:
- "Sat 20:00"