forget should take multiple hostnames (since it can take multiple tags already) #1570
Labels
help: good first issue
easy issue to get started with for beginners (both Go and restic)
help: minor complexity
less complex issue, good for beginners that want a little challenge yet not too complicated
help: wanted
type: bug
The documentation at http://restic.readthedocs.io/en/latest/060_forget.html#removing-snapshots-according-to-a-policy explains how you can specify multiple tags when removing old backup revision. While you technically can specify multiple --hostname values as well, only the last is actually evaluated for the command.
Output of
restic version
How did you run restic exactly?
I am using https://github.com/binarybucks/restic-tools as a wrapper to easily backup to S3/minio.
What backend/server/service did you use to store the repository?
S3
Expected behavior
List snapshots to keep and delete for all hostnames.
Actual behavior
It only lists snapshots from the last specified hostname.
Steps to reproduce the behavior
see above
Do you have any idea what may have caused this?
Looks like only the last hostname is evaluated for the forget command.
Do you have an idea how to solve the issue?
Evaluate all hostnames (just like its already the case for tags).
Did restic help you or made you happy in any way?
that's a very nice last point :-D. I've only been playing with restic for a brief time. But so far it looks very nice and extremely easy to setup. Looking forward to gather more experience with it.
The text was updated successfully, but these errors were encountered: