Naming snapshots and the benefts thereof

As some input / possibility to test the concept:

rustic features two extension:

  • A label which can be set for a snapshot using e.g. rustic backup --label <LABEL>. This is basically what @damoclark named “Backup Set Name”, --name. If you group by host,label, you already get the right parent for your backup runs. Note that the label is also included in the filter-rules, here the option --filter-label.
  • The possibility to backup relative paths: rustic backup relpath/. This is almost as the proposed -C option, but you first have to cd into the right parent path before running rustic.
  • There is actually also the option --as-path which is able to rewrite paths, so this could be also used to emulate the proposed -C.

So, feel free to test everything out using rustic and also feel free to take a look at the implementation details (but those are actually no rocket-science)!
And, @MichaelEischer if you decide to add such functionality to restic, please use the name label in the snapshot file, so restic and rustic stay compatible. Thanks!