Skip to content

tobi97h/DockerVolumeBackup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

Project

This project will dynamically shut down all docker containers, find their mapped volumes and back them up to a select location.

Init / Structure

Install the following dependencies:

apt install python3-pip
pip3 install --upgrade pip
pip3 install python-logging-loki

Setup the cron job:

crontab -e
BACKUP_LOC=
BACKUP_OWNER=
LOKI_URL=
LOKI_USER=
LOKI_PWD=
CONTAINER_EXCLUDE=
ALLOWED_SOURCE_ROOT=
0 0 * * 0 python3 /path/to/main.py

This will setup the cron job to run once every week on sunday at 00:00. https://crontab.guru/every-week

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages