itzg/docker-mc-backup

Use RESTIC_HOST instead of RESTIC_HOSTNAME

Open

#301 opened on Jun 20, 2026

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Shell (66 forks)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (501 stars)
PR merge metrics
 (PR metrics pending)

Description

The backup script uses RESTIC_HOSTNAME for deterministic hostname of the backup.

But restic itself already reads the env var RESTIC_HOST for the same purpose

RESTIC_HOST                         Only consider snapshots for this host / Set the hostname for the snapshot manually (replaces --host)

https://restic.readthedocs.io/en/latest/075_scripting.html#environment-variables

Contributor guide