Code Monkey home page Code Monkey logo

docker-backup's Introduction

๐Ÿ’พ 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

docker-backup's People

Contributors

lagunovsky avatar mickaelperrin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

docker-backup's Issues

Quotes around du path breaks wildcard expansion

Hi,

Thanks for this really useful project !

I get into troubles while trying to use the INCLIST parameter with wildcards.

At line 481, the quotes around the path breaks the du command to expand wildcards.

However, removing the quotes may introduce problems for paths containing spaces...

Setting DEST sed pattern matching

Hi,

I noticed a bug when setting a DEST. The sed replace does not find the corresponding string because characters [ and ] are not escaped in the entrypoint.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.