itzg/docker-mc-backup

Use RESTIC_HOST instead of RESTIC_HOSTNAME

已關閉

#301 建立於 2026年6月20日

 (1 則留言) (0 個反應) (0 位負責人)Shell (66 個分叉)github user discovery
enhancementhelp wanted

倉庫指標

星標
 (501 顆星)
PR 合併指標
 (平均合併 6小時 9分鐘) (30 天內合併 8 個 PR)

描述

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

貢獻者指南