💾 Docker container for incremental backups based on alpine (S3, Google Cloud Storage, FTP, SFTP, SCP, rsync, file...).
This container based on duplicity-backup
View help:
docker-compose run backup
Force run an incremental backup:
docker-compose run backup --backup
Force restore your entire backup:
# You will be prompted for a restore directory
docker-compose run backup --restore [PATH]
Restore the backup at startup
# Set the environment variable
RESTORE_PATH=
See .env.example
- Base
- Exclude list of directories
- Notifications
- S3
- Google Cloud storage
- Openstack object storage
- FTP
- FTPS
- FTPES
- RSYNC
- SCP
- SSH
- SFTP
- FILE
- IMAP[s]
- WEBDAV[s]
- GDOCS
- CRON_SCHEDULE=0 1 * * * # every day
- HOST_NAME= # default container id
- ALLOW_SOURCE_MISMATCH="yes" # for disable check hostname
- EXCLUDE="/var/backup/*/Trash /var/backup/**.DS_Store"
- NOTIFICATION_SERVICE="" # Possible values for NOTIFICATION_SERVICE are slack, ifttt
- NOTIFICATION_FAILURE_ONLY="yes"
- IFTTT_KEY="" # Key for MAKER channel at IFTTT
- IFTTT_MAKER_EVENT="duplicity" # name the event to trigger at IFTTT Maker Channel
- IFTTT_VALUE2="" # general purpose value to pass to your maker channel (optional)
- SLACK_HOOK_URL=
- SLACK_CHANNEL=
- SLACK_USERNAME=
- SLACK_EMOJI=
- EMAIL_TO=
- EMAIL_FROM=
- EMAIL_SUBJECT=
- EMAIL_FAILURE_ONLY="yes"
- DEST_S3=foobar-backup-bucket/backup-folder/
- AWS_ACCESS_KEY_ID=
- AWS_SECRET_ACCESS_KEY=
- AWS_LOCATION=
- DEST_GS=foobar-backup-bucket/backup-folder/
- GS_ACCESS_KEY_ID=
- GS_SECRET_ACCESS_KEY=
- GDOCS=foobar_google_account/some_dir
- DEST_SWIFT=foobar_swift_container/some_dir
- SWIFT_USERNAME=foobar_swift_tenant:foobar_swift_username
- SWIFT_PASSWORD=
- SWIFT_AUTHURL=
- SWIFT_AUTHVERSION=
- DEST_FTP=user[:password]@other.host[:port]/some_dir
- DEST_FTPS=user[:password]@other.host[:port]/some_dir
- DEST_FTPES=user[:password]@other.host[:port]/some_dir
- DEST_RSYNC=user@host.com[:port]//absolute_path
- DEST_SCP=user[:password]@other.host[:port]/[/]some_dir
- DEST_SSH=user[:password]@other.host[:port]/[/]some_dir
- DEST_SFTP=user[:password]@other.host[:port]/[/]some_dir
- DEST_FILE=/home/foobar_user_name/new-backup-test/
- DEST_IMAP_S=user[:password]@host.com[/from_address_prefix]
- DEST_WEBDAV_S=user[:password]@other.host[:port]/some_dir