restic (Autobackups von zb Docker)
#https://www.youtube.com/watch?v=WBBTC5WfGis
#https://github.com/JamesTurland/JimsGarage/blob/main/restic/docker-compose.yml
#https://github.com/djmaze/resticker
#https://github.com/djmaze/resticker/blob/master/docker-compose.example.yml
### Restore
## Find the latest snapshot for the current host (note the ID)
#docker-compose exec app restic snapshots -H <HOSTNAME>
# Restore the given file on the host
#docker-compose exec app restic restore --include /path/to/file <ID>
version: "3.3"
services:
backup:
image: mazzolino/restic
hostname: dockerhetzner
restart: unless-stopped
environment:
RUN_ON_STARTUP: "true"
BACKUP_CRON: "0 30 4 * * *"
RESTIC_REPOSITORY: s3:https://s3-ostfr1........luckycloud.de/REPO.......NAME
RESTIC_PASSWORD: Ur6Hs.....................................Qqfz
RESTIC_BACKUP_SOURCES: /mnt/data/compose
RESTIC_BACKUP_ARGS: >-
--tag docker-volumes
--exclude 3/nextcloud-wolke
#--exclude another-folder/with\ space
#--exclude *.tmp
--verbose
RESTIC_FORGET_ARGS: >-
--keep-last 10
--keep-daily 7
--keep-weekly 5
--keep-monthly 12
AWS_ACCESS_KEY_ID: GP.......................X3
AWS_SECRET_ACCESS_KEY: wQ................koJ
TZ: Europe/Berlin
volumes:
- /data/compose:/mnt/data/compose:ro
No Comments