I was thinking and doing some reading on the forums/GitHub: as far as I found, the reason that prune and forget are 2 different things is because prune is quite expensive and/or time consuming.
Because if this, would it maybe be a good feature to automatically prune the repository when no snapshots are being made and so the repository is idle? Could maybe be implemented in the Rest Server, to automatically prune the local repository or run a different process with restic that is able to watch the state of a repository?
I’m curious about what you guys would think and if that is even possible :).
Thanks for your reply! I was indeed afraid for this. Would’ve been awesome, but as it isn’t possible to interrupt prune when a new backup comes in - it would be impossible to build this.
I’m not sure this is true. The worst-case scenario is that you interrupt during pack rewrites. All you’d have in that situation are duplicate objects that aren’t in the index. Check doesn’t warn on this, AFAIK. A future prune will clean up the duplicates.