mirror of
https://github.com/octoleo/restic.git
synced 2024-11-27 23:36:40 +00:00
871ea1eaf3
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`.
9 lines
422 B
Plaintext
9 lines
422 B
Plaintext
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 |