Skip to content

resticprofile cannot pass empty --host/-H value to restic snapshots #648

Description

@DevJake

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions