JeffResc / Docker-Backup-Utility

A custom Docker backup utility to backup my containers using rclone

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker-Backup-Utility

Docker Cloud Build Status GitHub last commit

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 your rclone.conf file. If your file resides elsewhere, change this in the docker run command below.
  • ~/Docker-Backup-Utility/backup.json is the path to your backup.json file. If your file resides elsewhere, change this in the docker 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 the docker 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

About

A custom Docker backup utility to backup my containers using rclone

License:MIT License


Languages

Language:Shell 88.0%Language:Dockerfile 12.0%