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 @@
---
- name: restic network
docker_network:
name: restic
- name: restic container
docker_container:
name: restic-backup
- docker_service:
project_name: restic_backup
pull: yes
definition:
version: '3.6'
services:
restic-backup:
image: mazzolino/restic
state: started
restart_policy: always
networks:
- name: restic
env:
restart: always
environment:
RUN_ON_STARTUP: "true"
BACKUP_CRON: "0 30 3 * * *"
RESTIC_REPOSITORY: "rest:https://datacoop:{{ restic_secrets.user_secret }}@restic.graffen.io/datacoop-hevonen"
@ -30,3 +26,12 @@
TZ: Europe/Copenhagen
volumes:
- /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