Skip to content
Scripting to backup all your running containers
Shell
Branch: master
Clone or download
Latest commit aa76dc4 Oct 31, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config removing interactive mode Oct 24, 2017
coreos-timer copying config Oct 23, 2017
Readme.md fixes on CoreOS instructions Oct 24, 2017
backup-all.sh remove comments not needed Oct 31, 2018
backup-images.sh remove comments Oct 31, 2018
backup-volumes.sh better readibility Oct 31, 2018
sync-dropbox.sh exact filename Apr 8, 2018

Readme.md

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

You can’t perform that action at this time.