Allow to merge snapshots
rustic backup only accepts one path to being backup'ed.
Changing this directly is tough as the ignore crate is used which also only support one path.
A workaround is to specify only one path and use suitable glob files.
Another workaround would be to allow merging snapshots, see https://github.com/restic/restic/issues/3792.
This would also allow to easily solve the "multiple paths" issues as this could be done by auto-merging multiple generated snapshots within one rustic backup run.
After #177 is merged, multiple sources are possible. Rustic only creates multiple snapshots in that case. So this issue now is about merging multiple snapshots into a single one.
I'd propose to add a backup --merge option which creates one single snapshot in the case of multiple sources.
See #289 for an example how to use globs to filter a backup source such that it results in the same snapshot as multiple sources (i.e. same snapshot content, only the "paths" field in the snapshot file is different) .
Actually multiple sources are already WIP in #458 , so I'd like to change the scope of this issue to just add an merge command which is able to merge snapshots. This is also WIP, see #411