mirror of
https://github.com/restic/restic.git
synced 2024-12-23 08:16:36 +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
No EOL
422 B
Text
9 lines
No EOL
422 B
Text
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 |