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

Latest commit

 

History

History
27 lines (18 loc) · 1.61 KB

README.md

File metadata and controls

27 lines (18 loc) · 1.61 KB

restic-rclone

Minimal Docker image for running scheduled backups using restic with rclone as the backend.

Tags

Images are tagged according to the version of restic that they include. The latest tag always points to the image containing the most recent stable version of restic.

Volumes

Mount the following volumes into the container:

  • rclone config directory at /root/.config/rclone (You'll need to run rclone config outside of the container to generate this ahead of time.)
  • data to be backed up at /data

Configuration

You must provide the following environment variables (see the restic documentation for more information and for other variables you may want to set):

  • RESTIC_REPOSITORY
  • RESTIC_PASSWORD or RESTIC_PASSWORD_FILE

The following environment variables are also useful but not required:

  • CRON - a crontab string indicating when backups should run (default 0 0 * * *)
  • FORGET_ARGS - arguments to be passed to restic forget each time a backup is run; set to "" to indicate that restic forget should not be run (default --keep-daily 7 --keep-weekly 5 --keep-monthly 12)
  • PRUNE_CRON - a crontab string indicating when the repository should be pruned; set to "" to indicate that the repository should never be pruned (default 0 3 1 * *)
  • TZ - the timezone the container should use (e.g. America/Denver)

I also recommend that you manually set the hostname of the container (using --hostname or hostname: in Docker compose) so that it stays consistent, since restic does store that information.