Add the ability to filter the snapshots by tags
Restic have the ability to set one or more tags to the backup snapshot. This is very useful where the repository is unique, because it allows to filter and navigate the snapshot by specific argument/tag and operate only over specific snapshots. It would be useful if backrest could filter the snapshots (and set in backup options) by tags too. Thank you.
Can you elaborate a bit more on the use case for this?
In the Repositories view-menu / Tree views / Browse backups now I can find a list of all the snapshots did in a specific repo. Selecting a snapshot, appear the snapshot details with some information (date, name, tags, ...) and the "browse and restore files" menù.
On the "Tree view" and "Operation list" menues, It would be useful if the user could set a filter that select the snapshots by one or more specific tag.
Thank you @garethgeorge
This is something that adds a possibly surprising amount of complexity to the UI. I'll have to give some thought to it re: support but at the moment I'm not likely to add filtering by tag as backrest already provides an opinionated approach to logically grouping sets of backups by "plan".
Backrest is primarily designed for organizing and browsing backups created by backrest. It has some support for indexing "unassociated" collections of backups created externally, but it isn't really intended as a general purpose backup browser / explorer.
Backrest takes a semi-opinionated approach to how you should organize tagging your backups.
A supported workaround is that it's fine to add plan:... and created-by:... tags to your backups (even ones created outside of backrest!) to denote the plan and instance (respectively) that you'd like a backup to show up under in the UI (even if no such plan or instance is actually configured. Backrest will use those externally added tags for grouping in the repo view once you index snapshots.
that it's fine to add plan:... and created-by:... tags to your backups (even ones created outside of backrest!)
~So if I match the --tag plan:backrest_plan --tag created-by:backrest_instance then I guess backrest will list it under the same list named as the backrest instance name and not under _unassociated_, right?~ It does of course.
~What if I add an additional tag --tag mode:manual just for my own record to differentiate? Will this again affect how the snapshots are listed in backrest UI?~ → I tested this and it shows up main instance named snapshot list of backrest and not in _unassociated_. So it works.