From ff5ff5bb3db82e5f3b848f2ff4c4aecb68280b88 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 30 Dec 2020 18:30:49 +0100 Subject: [PATCH] services: add Restic Finally a way to actually back up my data... --- docker-compose.yml | 12 ++++++++++++ restic/restic.env | 5 +++++ 2 files changed, 17 insertions(+) create mode 100644 restic/restic.env diff --git a/docker-compose.yml b/docker-compose.yml index dd14208..0960d82 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -370,3 +370,15 @@ services: - ./riot/config.json:/app/config.json expose: - 80 + + restic: + image: lobaro/restic-backup-docker + restart: unless-stopped + container_name: restic + hostname: restic-athos + env_file: + - ./restic/restic.env + - ./restic/restic.env.secret + volumes: + - ~/library/:/data/library + - ~/nextcloud/:/data/nextcloud diff --git a/restic/restic.env b/restic/restic.env new file mode 100644 index 0000000..843e0b3 --- /dev/null +++ b/restic/restic.env @@ -0,0 +1,5 @@ +RESTIC_FORGET_ARGS=--prune --keep-last 10 --keep-hourly 24 --keep-daily 7 --keep-weekly 5 --keep-monthly 12 --keep-yearly 100 +#RESTIC_PASSWORD=FIXME +#B2_ACCOUNT_ID=FIXME +#B2_ACCOUNT_KEY=FIXME +#RESTIC_REPOSITORY=FIXME