Replies: 1 comment 1 reply
-
Hi -- this is a good question and I can see the confusion coming from the restic model of the world where forget operations would typically apply to every snapshot in the repo. Backrest is using tags on your snapshots to allow it to identify which plan created each snapshot, this means that when This means that there isn't any problem with mixing different retentions across plans, while storing their data in the same repository. Finally you ask about prune-- restic deduplicates chunks by their hash, the way prune works is essentially a GC algorithm. A block is removed only if it is not reachable from any snapshot (e.g. because forget removed all snapshots referencing that chunk). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, first time using Backrest (or Restic), so I'm a still a little confused on the best approach to set everything up.
I need to backup 2 sets of data, from the same machine: photos and document.
Initially, I've created 2 repos, and 2 plans (each for it's own repo), and that works fine.
However, multiple people have suggested that I don't need 2 repos, and that I could just have both plans push snapshots to the same repo. It would be more efficient, since it would prune/verify once, and easier to replicate to the cloud with "restic copy".
So now retention policies come into play. What if I want to have different retention for those 2 sets of data? Is a single repo off the table in that case?
From what understood, actual retention (as in --keep-daily) is done during prune, not during shanpshot creation. If that is correct, I'm really struggling to understand why did you put that option on the plan, and not on the repo? Is there some reason or use case that I'm missing? Otherwise, it just seems misplaced.
Also, what will it actually do in that case, lets say:
Different data, with no overlaps, both pushing to the same repo.
Beta Was this translation helpful? Give feedback.
All reactions