Replies: 4 comments
-
This is a good point w.r.t. switching to backrest. If I have time this would make good wiki content, but for now I'll document my thoughts here! I think this is complicated enough (and will vary enough based on how users scripted their setups prior to adopting backrest) that there isn't a one size fits all approach that I'd want to implement and maintain in backrest, but because backrest builds on the restic cli there are a lot of options for scripting a move to backrest on the cli. Backrest organizes snapshots into plans based on tags. Backrest adds a tag to each snapshot that indicates the plan it is grouped under e.g. Gemini comes up with a script looking like:
that's untested some tweaking may be needed. |
Beta Was this translation helpful? Give feedback.
-
Thanks, I've taken your idea and modified it a little for autorestic which is the restic wrapper I have been using until now. I have a few things hardcoded here as I was too lazy to pass them as variables so let me explain:
This worked perfectly and replaced the old tags which these snapshots had with my new plan tag. Backrest picked them up upon re-indexing snapshots on this repository. |
Beta Was this translation helpful? Give feedback.
-
I do however have a problem with backrest pruning this plan. I have checked the number of snapshots in this plan and visually checked with backrest and they both agree, there are 20 snapshots in this plan.
This plan is set to keep the last 8 snapshots:
I ran a prune via backrest by clicking on my plan, then on "prune now". The prune ran and this is its output:
I'm still left with 20 snapshots. Not sure what I am doing wrong here. |
Beta Was this translation helpful? Give feedback.
-
Hm, it looks like when a backup plan gets executed it runs a backup, then a snapshot, followed by a “forget” and a “prune”. Last night my scheduled plan ran and successfully pruned the forgotten snapshots. All is well, but this is something that should make it into a wiki entry someday. |
Beta Was this translation helpful? Give feedback.
-
I'm wondering whether it would be possible to add say an alias to a backrest plan?
The intention is to have backrest treat snapshots it finds in a repository with this alias as part of this plan. Thus making it easier to transition from using restic via cmd line or via some wrapper to backrest without losing backup history or having to manage/prune with two different tools?
Say my plan is called daily-docs and I could add alias xyz I'd see all snapshots taken by this plan and all external ones with the tag: xyz as belonging to this plan, so backrest could run its purge over all of these snapshots.
Is something like this possible?
Otherwise, switching would create a lot of a mess or work :-/ and backrest is really nice and easy to use ;-)
Beta Was this translation helpful? Give feedback.
All reactions