delfer / docker-backup-scripts

Scripting to backup all your running containers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker backup scripts

Description

A bunch of Bash scripts to make a backup of all your running containers dynamically.

This will create a backup of docker images, volumes, upload to dropbox and remove the backup files after to save space

Setup and Usage

Check inside backup-all.sh to set the backup_path variable point at your current backup folder

Also, on dropbox you must create an App to store this backups, refer to https://www.dropbox.com/developers to get your Generated access token before running it and placed inside the config/dropbox-uploader.conf file

Give permissions to all sh files in the folder

cd docker-backup-scripts
chmod +x *.sh

Run the backup

./backup-all.sh

Extra

If you need only a local backup you can comment the line source sync-dropbox.sh on backup-all.sh

Create a cron if you want to run it often.

For CoreOS, I supply a timer to allow run it daily with an installation script

About

Scripting to backup all your running containers


Languages

Language:Shell 100.0%