simple restic, seems to work
This commit is contained in:
parent
f28d9781ff
commit
6c1ba18bf2
1 changed files with 20 additions and 0 deletions
20
restic/docker-compose.yml
Normal file
20
restic/docker-compose.yml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# init with
|
||||
# docker run --rm -e RESTIC_PASSWORD=yourpassword -v G:/restic-backups:/backup restic/restic init --repo /backup
|
||||
|
||||
services:
|
||||
restic-backup:
|
||||
image: restic/restic:latest
|
||||
container_name: restic-backup
|
||||
environment:
|
||||
- RESTIC_REPOSITORY=/backup
|
||||
- RESTIC_PASSWORD=yourpassword
|
||||
volumes:
|
||||
- E:/installers:/data:ro
|
||||
- G:/restic-backups:/backup
|
||||
entrypoint: >
|
||||
sh -c "while true; do
|
||||
restic backup /data &&
|
||||
restic forget --prune --keep-last 7;
|
||||
sleep 43200;
|
||||
done"
|
||||
restart: unless-stopped
|
||||
Loading…
Add table
Add a link
Reference in a new issue