Sign inSign up

jamrizzi/ident

By jamrizzi

•Updated over 9 years ago

A robust backup solution for Docker volumes

Image
1

1.1K

jamrizzi/ident repository overview

⁠ident Beta

⁠Features

  • Restore individual docker volumes
  • Works with docker volume drivers
  • Automatic backups
  • Data deduplication
  • Clear outdated backups
  • Backup encryption

⁠Usage

⁠Cron

This will backup volumes automatically every day.

docker run -d \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v /backup:/backup \
  -e CRON_SCHEDULE="0 0 * * *" \
  jamrizzi/ident:latest

⁠Backup

This will run a single backup for all your containers.

docker run --rm \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v /backup:/backup \
  jamrizzi/ident:latest backup

⁠Restore

This will restore all backed up volumes for a single service or container.

docker run --rm \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v /backup:/backup \
  -e SERVICE="my-service-name" \
  jamrizzi/ident:latest restore

⁠Options

  • CRON_SCHEDULE="0 0 * * *" - the frequency backups run
    • Note that even though this cron schedule uses gocron⁠, it is based on minutes instead of seconds for safty.
  • PASSPHRASE=hellodocker - the passphrase used to encrypt your backups
  • ENCRYPT=false - if set to true, will encrypt backups with the passphrase
  • TIME=now - restore backup from specified time (format as unix timestamp)

⁠Future Plans

  • Automatic backup when change detected
  • Notifications
  • Management portal

⁠Error/Bugs/Features

You can file error and bug reports as well as feature requests at https://github.com/jamrizzi/ident/issues⁠.

⁠Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

⁠Credit

Tag summary

Content type

Image

Digest

Size

300 MB

Last updated

over 9 years ago

docker pull jamrizzi/ident