Skip to content

Latest commit

 

History

History
167 lines (135 loc) · 3.32 KB

README.md

File metadata and controls

167 lines (135 loc) · 3.32 KB

💾 Docker container for incremental backups based on alpine (S3, Google Cloud Storage, FTP, SFTP, SCP, rsync, file...). Build Status

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=

Configuring

See .env.example

Base

  - CRON_SCHEDULE=0 1 * * * # every day
  - HOST_NAME= # default container id
  - ALLOW_SOURCE_MISMATCH="yes" # for disable check hostname

Exclude list of directories

  - EXCLUDE="/var/backup/*/Trash /var/backup/**.DS_Store"

Notifications

  - NOTIFICATION_SERVICE="" # Possible values for NOTIFICATION_SERVICE are slack, ifttt
  - NOTIFICATION_FAILURE_ONLY="yes"

IFTTT

  - 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

  - SLACK_HOOK_URL=
  - SLACK_CHANNEL=
  - SLACK_USERNAME=
  - SLACK_EMOJI=

Mail

  - EMAIL_TO=
  - EMAIL_FROM=
  - EMAIL_SUBJECT=
  - EMAIL_FAILURE_ONLY="yes"

S3

  - DEST_S3=foobar-backup-bucket/backup-folder/
  - AWS_ACCESS_KEY_ID=
  - AWS_SECRET_ACCESS_KEY=
  - AWS_LOCATION=

GOOGLE CLOUD STORAGE

  - DEST_GS=foobar-backup-bucket/backup-folder/
  - GS_ACCESS_KEY_ID=
  - GS_SECRET_ACCESS_KEY=

GDOCS

  - GDOCS=foobar_google_account/some_dir

OPENSTACK OBJECT STORAGE

  - DEST_SWIFT=foobar_swift_container/some_dir
  - SWIFT_USERNAME=foobar_swift_tenant:foobar_swift_username
  - SWIFT_PASSWORD=
  - SWIFT_AUTHURL=
  - SWIFT_AUTHVERSION=

FTP

  - DEST_FTP=user[:password]@other.host[:port]/some_dir

FTPS

  - DEST_FTPS=user[:password]@other.host[:port]/some_dir

FTPES

  - DEST_FTPES=user[:password]@other.host[:port]/some_dir

RSYNC

  - [email protected][:port]//absolute_path

SCP

  - DEST_SCP=user[:password]@other.host[:port]/[/]some_dir

SSH

  - DEST_SSH=user[:password]@other.host[:port]/[/]some_dir

SFTP

  - DEST_SFTP=user[:password]@other.host[:port]/[/]some_dir

FILE

  - DEST_FILE=/home/foobar_user_name/new-backup-test/

IMAP_S

  - DEST_IMAP_S=user[:password]@host.com[/from_address_prefix]

WEBDAV_s

  - DEST_WEBDAV_S=user[:password]@other.host[:port]/some_dir