forked from djmaze/resticker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.example.yml
59 lines (56 loc) · 1.49 KB
/
docker-compose.example.yml
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
version: "3.3"
services:
backup:
image: mazzolino/restic
hostname: docker
restart: unless-stopped
environment:
RUN_ON_STARTUP: "true"
BACKUP_CRON: "0 30 3 * * *"
RESTIC_REPOSITORY: b2:my-repo:/restic
RESTIC_PASSWORD: supersecret
RESTIC_BACKUP_SOURCES: /mnt/volumes
RESTIC_BACKUP_ARGS: >-
--tag docker-volumes
--exclude some-folder/cache
--exclude another-folder/with\ space
--exclude *.tmp
--verbose
RESTIC_FORGET_ARGS: >-
--keep-last 10
--keep-daily 7
--keep-weekly 5
--keep-monthly 12
B2_ACCOUNT_ID: xxxxxxx
B2_ACCOUNT_KEY: yyyyyyyy
TZ: Europe/Berlin
volumes:
- /var/lib/docker/volumes:/mnt/volumes:ro
prune:
image: mazzolino/restic
hostname: docker
restart: unless-stopped
environment:
SKIP_INIT: "true"
RUN_ON_STARTUP: "true"
PRUNE_CRON: "0 0 4 * * *"
RESTIC_REPOSITORY: b2:my-repo:/restic
RESTIC_PASSWORD: supersecret
B2_ACCOUNT_ID: xxxxxxx
B2_ACCOUNT_KEY: yyyyyyyy
TZ: Europe/Berlin
check:
image: mazzolino/restic
hostname: docker
restart: unless-stopped
environment:
SKIP_INIT: "true"
RUN_ON_STARTUP: "false"
CHECK_CRON: "0 15 5 * * *"
RESTIC_CHECK_ARGS: >-
--read-data-subset=10%
RESTIC_REPOSITORY: b2:my-repo:/restic
RESTIC_PASSWORD: supersecret
B2_ACCOUNT_ID: xxxxxxx
B2_ACCOUNT_KEY: yyyyyyyy
TZ: Europe/Berlin