davidosomething / restic-docker

My fork of csumpter/restic-docker with Gotify notifications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

restic-docker

This is a fork of @csumpter's restic-docker. I'll be maintaining this version for my own use.

Usage

Environment Variables

  • [REQUIRED] RESTIC_REPOSITORY - the location of your restic repository. For BackBlaze B2 that would be b2:<bucket-name>:/
  • [REQUIRED] RESTIC_PASSWORD - repository password
  • [OPTIONAL] BACKUP_CRON - default value is 0 1 * * *
  • [OPTIONAL] RESTIC_BACKUP_ARGS - example: -o b2.connections=20
    • See the full list of options in the restic docs.
  • [OPTIONAL] FORGET_CRON - example: 1 3 * * 0
  • [OPTIONAL] RESTIC_FORGET_ARGS - example: --keep-last 7 or --keep-last 7 --prune if you wish to perform a prune operation at the same time.
  • [OPTIONAL] PRUNE_CRON - example: 1 3 * * 1
  • [OPTIONAL] RESTIC_TAG - default value is latest
  • [OPTIONAL] TZ timezone, default is America/New_York. Set this value if you want your log entries to have the relevant time in them.
  • [OPTIONAL] GOTIFY - URL with token, e.g. http://mygotify/message?token=abc123. Will POST to this URL with a message on successful backups.

Backblaze B2 Setup

  • [REQUIRED] B2_ACCOUNT_ID
  • [REQUIRED] B2_ACCOUNT_KEY

Mounting your data

  • Mount all folders to the /data folder on the container.

Credit

Based off work in:

About

My fork of csumpter/restic-docker with Gotify notifications

License:MIT License


Languages

Language:Shell 87.2%Language:Dockerfile 12.8%