Docker image based on duplicacy-autobackup but with several improvements:
duplicacy-cron
uses standard duplicacy environment variables.- Crons use Ofelia, a modern cron service built for docker.
- Multiple cron can be configured for multiple backups.
- Backup volumes (
/host
) and duplicacy configuration (/duplicacy
) are different. Host volume can be mounted read-only. - Duplicacy commands can be executed easily. For example
docker-compose duplicacy exec duplicacy check
. - Duplicacy commands can be executed easily. For example
docker-compose duplicacy exec duplicacy check
.
version: '3.6'
services:
duplicacy:
build:
context: .
dockerfile: Dockerfile
volumes:
- /:/host
- ./conf/duplicacy:/duplicacy/.duplicacy
- ./conf/ofelia:/etc/ofelia
environment:
DUPLICACY_SNAPSHOT_ID: mymachine
DUPLICACY_STORAGE_URL: s3://amazon/mymachine
DUPLICACY_REPOSITORY: /host
DUPLICACY_PASSWORD: '***************'
DUPLICACY_S3_ID: '***************'
DUPLICACY_S3_SECRET: '***************'