Possible bug with restic-ls

Hi there.

I have Restic 0.12.1 compiled with go1.16.6 on Mint 20.3.

Not sure if I’ve found a bug or I misunderstood the restic-ls command.
According to man restic-ls, the snapshot ID is optional once one have provided --tag flag.
If I cast the command $restic -r remote:dir ls --tag TAGID
I end up with a ‘Fatal: no snapshot ID specified’ error. Am I doing something wrong?

The man page should state that the --tag option and similar only work for the snapshot id latest.

That is the command line should be restic ls --tag abc latest. ls currently cannot list more than one snapshot.

And now there’s ls: Fix description for --host, --tag and --path options by MichaelEischer · Pull Request #3653 · restic/restic · GitHub to fix the description.

1 Like