rustic icon indicating copy to clipboard operation
rustic copied to clipboard

Allow to merge snapshots

Open aawsome opened this issue 3 years ago • 1 comments

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.

aawsome avatar Jul 01 '22 09:07 aawsome

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.

aawsome avatar Sep 05 '22 13:09 aawsome

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) .

aawsome avatar Nov 09 '22 22:11 aawsome

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

aawsome avatar Mar 04 '23 12:03 aawsome