restic

March 22, 2026 ยท View on GitHub

License Build Status Awesomebot Megalinter GitHub last commit (main)

Debian-based restic container.

Run restic without installing it, or inside a k8s cluster.

Usage

Create a .env file and set the following variables

VariablePurpose
BACKUP_FROMPath you want to backup. This is the path on the host, not the container.
RESTIC_REPOSITORYPath to your repository.
RESTIC_PASSWORDMake sure to use the same password for all containers using a given repository. If you lose it, your backups cannot be recovered. If you change it, your backups will be corrupted.
RESTIC_BACKUP_SOURCESWhere BACKUP_FROM will be mounted inside the container. Defaults to /mnt/volumes
RESTIC_COMPRESSIONDefaults to auto
TZSet this in your .env file
docker-compose run --rm -it "restic arg arg arg"