Docker-Backup-Utility
A custom Docker backup utility to backup Docker containers using rclone.
What It Does
Simple backup utility that backs up a Docker container to anything that rclone supports.
Example
Assumptions
For this example I will assume the following things:
~/Docker-Backup-Utility/rclone
contains yourrclone.conf
file. If your file resides elsewhere, change this in thedocker run
command below.~/Docker-Backup-Utility/backup.json
is the path to yourbackup.json
file. If your file resides elsewhere, change this in thedocker run
command below./var/docker-data
is the location of your stored Docker data that you wish to backup. If your files reside elsewhere, change this in thedocker run
command below.
The Command
Use the following command as a template for your backup, ensuring to modify it to your needs following the assumtions guide above.
docker run --rm \
-v ~/Docker-Backup-Utility/rclone:/root/.config/rclone \
-v ~/Docker-Backup-Utility/backup.json:/root/backup.json:ro \
-v /var/docker-data:/docker-data:ro \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
jeffresc/docker-backup-utility:latest