As discussed on restic/restic#5440, you can pass --host "" or -H "" to remove filtering to the current host. This functionality does not work with resticprofile.
To reproduce, set RESTIC_HOST in your environment. Then, create a new snapshot. Change your RESTIC_HOST, then attempt to list the snapshots. The automatic filtering kicks in and you won't see the previous snapshot. Repeat using the --host/-H as discussed above, and resticprofile reports the following:
flag needs an argument: 'H' in -H
The problem is apparent when viewing the command that resticprofile executes:
starting command: restic snapshots --password-file=... --repo=... --verbose=1 latest -H
...the empty quotes are being stripped, failing to pass onwards, and so restic itself is correctly surfacing an error about a missing parameter.
This will be fixed by #649.
As discussed on restic/restic#5440, you can pass
--host ""or-H ""to remove filtering to the current host. This functionality does not work with resticprofile.To reproduce, set
RESTIC_HOSTin your environment. Then, create a new snapshot. Change yourRESTIC_HOST, then attempt to list the snapshots. The automatic filtering kicks in and you won't see the previous snapshot. Repeat using the--host/-Has discussed above, and resticprofile reports the following:The problem is apparent when viewing the command that resticprofile executes:
starting command: restic snapshots --password-file=... --repo=... --verbose=1 latest -H...the empty quotes are being stripped, failing to pass onwards, and so restic itself is correctly surfacing an error about a missing parameter.
This will be fixed by #649.