-
Notifications
You must be signed in to change notification settings - Fork 80
Open
Labels
Description
When running this docker compose file, I get the following repeating over and over:
appdata-restic-backup-1 | No valid operating mode configured! Exiting.
appdata-restic-backup-1 | Checking configured repository '/mnt/restic' ...
appdata-restic-backup-1 | Repository found.
The docker events call - docker daemon shows fatal error code 1 (repeating):
2024-01-21T19:19:33.804089963Z container die 1bd7160aac27f3d484a206aaf9901b552b8898ad0072f414f2c7eab00aac3922 (com.docker.compose.config-hash=7021956cb1867c24e682529d063ed8938c5b58415a6c263f279b27f36317648b, com.docker.compose.container-number=1, com.docker.compose.depends_on=, com.docker.compose.image=sha256:0804a5e5c3d422cbabcb4432bed6d77422c1addf7360eaae7b4e70171fad95f2, com.docker.compose.oneoff=False, com.docker.compose.project=appdata, com.docker.compose.project.config_files=/home/alex8642/appdata/docker-compose.yml, com.docker.compose.project.working_dir=/home/alex8642/appdata, com.docker.compose.service=restic-backup, com.docker.compose.version=2.21.0, execDuration=0, exitCode=1, image=mazzolino/restic, name=appdata-restic-backup-1)
Docker compose file:
image: mazzolino/restic
hostname: restic-backup
restart: unless-stopped
environment:
- RUN_ON_STARTUP=true
# Run once every month on the 30th day
- BACKUP_CRON=0 30 3 * * *
- RESTIC_REPOSITORY=s3:http://minio:9000/test-restic-backup
- RESTIC_PASSWORD=*********
- RESTIC_BACKUP_SOURCES=/mnt/backup
# RESTIC_BACKUP_ARGS: >-
# --tag backup-tag
# --exclude='folder/to/exclude'
# --exclude='somefile.txt'
# Keep docs: https://restic.readthedocs.io/en/stable/060_forget.html
- RESTIC_FORGET_ARGS= >-
--keep-daily 7
--keep-weekly 5
--keep-monthly 12
--keep-yearly 3
--keep-tag 'keep'
#AWS_ACCESS_KEY_ID:
#AWS_SECRET_ACCESS_KEY:
- TZ=Etc/UTC
volumes:
- ~/alex8642/ItbLab:/mnt/backup:ro
- ./restic:/mnt/backup:rw
restic-prune:
image: mazzolino/restic
hostname: restic-prune
restart: unless-stopped
environment:
- RUN_ON_STARTUP=true
# Run once every month on the 30th day
- PRUNE_CRON=0 30 3 * * *
- RESTIC_REPOSITORY=s3:http://minio:9000/test-restic-backup
- RESTIC_PASSWORD=*********
#AWS_ACCESS_KEY_ID:
#AWS_SECRET_ACCESS_KEY:
- TZ=Etc/UTC
restic-check:
image: mazzolino/restic
hostname: restic-check
restart: unless-stopped
environment:
- RUN_ON_STARTUP=true
# Run once every month on the 30th day
- PRUNE_CRON=0 30 3 * * *
- RESTIC_CHECK_ARGS= >-
--read-data-subset=10%
- RESTIC_REPOSITORY=s3:http://minio:9000/test-restic-backup
- RESTIC_PASSWORD=*********
#AWS_ACCESS_KEY_ID:
#AWS_SECRET_ACCESS_KEY:
- TZ=Etc/UTC
minio:
image: ghcr.io/imagegenius/minio
hostname: minio
restart: unless-stopped
ports:
- 9001:9001 # web ui
- 9000:9000 # api port
environment:
- MINIO_ROOT_USER=user
- MINIO_ROOT_PASSWORD=********* # must be longer than 8
- PUID=99
- PGID=100
- UMASK=022
volumes:
- ./minio:/config # bucket storage```Reactions are currently unavailable