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,18 +1,14 @@
--- ---
- 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
state: started restart: always
restart_policy: always environment:
networks:
- name: restic
env:
RUN_ON_STARTUP: "true" RUN_ON_STARTUP: "true"
BACKUP_CRON: "0 30 3 * * *" BACKUP_CRON: "0 30 3 * * *"
RESTIC_REPOSITORY: "rest:https://datacoop:{{ restic_secrets.user_secret }}@restic.graffen.io/datacoop-hevonen" RESTIC_REPOSITORY: "rest:https://datacoop:{{ restic_secrets.user_secret }}@restic.graffen.io/datacoop-hevonen"
@ -30,3 +26,12 @@
TZ: Europe/Copenhagen TZ: Europe/Copenhagen
volumes: volumes:
- /docker-volumes:/mnt/volumes:ro - /docker-volumes:/mnt/volumes:ro
restic-prune:
image: "mazzolino/restic"
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