mirror of
https://github.com/restic/restic.git
synced 2025-08-25 12:27:49 +00:00
Add support for specifying --host via environment variable
This commit adds support for specifying the `--host` option via the `RESTIC_HOST` environment variable. This is done by extending option processing in `cmd_backup.go` and for `restic.SnapshotFilter` in `find.go`.
This commit is contained in:

committed by
Michael Eischer

parent
a7b5e09902
commit
871ea1eaf3
9
changelog/unreleased/issue-4733
Normal file
9
changelog/unreleased/issue-4733
Normal file
@@ -0,0 +1,9 @@
|
||||
Enhancement: Allow specifying `--host` via environment variable
|
||||
|
||||
Restic commands that operate on snapshots, such as `restic backup` and
|
||||
`restic snapshots`, support the `--host` flag to specify the hostname for
|
||||
grouoping snapshots. They now permit selecting the hostname via the
|
||||
environment variable `RESTIC_HOST`. `--host` still takes precedence over the
|
||||
environment variable.
|
||||
|
||||
https://github.com/restic/restic/issues/4733
|
Reference in New Issue
Block a user