Skip to content
This repository has been archived by the owner on Jan 28, 2022. It is now read-only.

A custom Docker backup utility to backup my containers using rclone

License

Notifications You must be signed in to change notification settings

JeffResc/Docker-Backup-Utility

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published