Backup of /docker-volumes folder #53

Merged
valberg merged 4 commits from restic_backup into master 2021-01-26 19:45:15 +00:00
Showing only changes of commit 9ae295896f - Show all commits

View file

@ -1,32 +1,37 @@
--- ---
- docker_service:
- name: restic network project_name: restic_backup
docker_network: pull: yes
name: restic definition:
version: '3.6'
- name: restic container services:
docker_container: restic-backup:
name: restic-backup image: mazzolino/restic
image: mazzolino/restic restart: always
state: started environment:
restart_policy: always RUN_ON_STARTUP: "true"
networks: BACKUP_CRON: "0 30 3 * * *"
- name: restic RESTIC_REPOSITORY: "rest:https://datacoop:{{ restic_secrets.user_secret }}@restic.graffen.io/datacoop-hevonen"
env: RESTIC_PASSWORD: "{{ restic_secrets.encryption_secret }}"
RUN_ON_STARTUP: "true" RESTIC_BACKUP_SOURCES: "/mnt/volumes"
BACKUP_CRON: "0 30 3 * * *" RESTIC_BACKUP_ARGS: >-
RESTIC_REPOSITORY: "rest:https://datacoop:{{ restic_secrets.user_secret }}@restic.graffen.io/datacoop-hevonen" --tag datacoop-volumes
RESTIC_PASSWORD: "{{ restic_secrets.encryption_secret }}" --exclude='*.tmp'
RESTIC_BACKUP_SOURCES: "/mnt/volumes" --verbose
RESTIC_BACKUP_ARGS: >- RESTIC_FORGET_ARGS: >-
--tag datacoop-volumes --keep-last 10
--exclude='*.tmp' --keep-daily 7
--verbose --keep-weekly 5
RESTIC_FORGET_ARGS: >- --keep-monthly 12
--keep-last 10 TZ: Europe/Copenhagen
--keep-daily 7 volumes:
--keep-weekly 5 - /docker-volumes:/mnt/volumes:ro
--keep-monthly 12
TZ: Europe/Copenhagen restic-prune:
volumes: image: "mazzolino/restic"
- /docker-volumes:/mnt/volumes:ro environment:
RUN_ON_STARTUP: "true"
PRUNE_CRON: "0 0 4 * * *"
RESTIC_REPOSITORY: "rest:https://datacoop:{{ restic_secrets.user_secret }}@restic.graffen.io/datacoop-hevonen"
RESTIC_PASSWORD: "{{ restic_secrets.encryption_secret }}"
TZ: Europe/copenhagen