- I’ve been using restic 0.12.0 for years to backup a bunch of servers.
- Repos are getting huge, as I’ve never deleted any snapshots… so it’s time to start pruning them due to storage costs.
- Should I upgrade to the latest version (currently 0.17.3) before doing this?
- Maybe not that relevant, but FYI my repos are stored on Backblaze B2.
- Any other things to be aware of when doing a big upgrade jump like this? Especially on big repos that have been running for years.
Many many improvements have been implemented since 0.12.0, so I would definitely upgrade to 0.17.3 before doing that work, yes. Pruning is one of many aspects that has been much improved.
With B2, it is advisable to use their S3 compatible API instead of their original B2 one, see: Preparing a new repository — restic 0.17.3 documentation
You might want to upgrade the repository format, see: Working with repositories — restic 0.17.3 documentation
If the repos are so old and big, presumably containing a lot of snapshots, you have to be prepared that performing the maintenance will take some time, so make sure that you have the client on a stable connection with good power and time available
PS: You should upgrade the repository before you perform the prune. So upgrade to 0.17.3, upgrade repository, then prune.