#backup #docker #backup-utility #cli #notifications

bin+lib dockerbackup

This is a simple Docker backup tool. It allows you to automatically stop running containers and backup Docker volumes to local or remote destination.

2 unstable releases

0.2.0 Mar 8, 2024
0.1.0 Mar 3, 2024

#2017 in Command line utilities

Download history 88/week @ 2024-02-26 214/week @ 2024-03-04 27/week @ 2024-03-11 45/week @ 2024-04-01

81 downloads per month

MIT/Apache

14KB
251 lines

About

This is a simple Docker backup tool. It allows you to automatically stop running containers and backup Docker volumes to local or remote destination.

Features

  • Stop running containers before backup
  • Backup Docker volumes to a local directory or a remote server via SSH
  • Restart containers after backup
  • Send gotify notification about the backup status

Building

Run the following comand to build the project:

cargo build --release

Binary is going to be available inside ./target/release directory.

Usage

Usage: dockerbackup [OPTIONS] --destination <dest_path>

Options:
  -d, --destination <dest_path>        Backup destination path. Accepts local or remote ssh path. Example: /backup or user@host:/backup
      --volumes <volume_path>          Path to docker volumes directory [default: /var/lib/docker/volumes]
  -e, --exclude <excluded_volumes>...  Volumes to exclude from the backup
  -h, --help                           Print help
  -V, --version                        Print version

Dependencies

~7–26MB
~406K SLoC