I am pondering changing my Restic settings and am looking for guidance on the best way to do it. Here is the current folder configuration:
When I originally configured the system, I wanted different retention for /foo/bar vs /foo/ and so I configured Restic as follows:
Restic backup - /foo/* excluding /foo/bar
Restic backup - /foo/bar
Then I run forget twice with two separate retention policies. When originally configured, the /foo/bar retention was shorter than /foo:
Restic forget /foo --> Longer retention
Restic forget /foo/bar --> Shorter retention
Now, I have decided that I don’t need different retention for /foo/bar, and I think that it would be easier to have one policy. I am not sure the best way to make this change. As I ponder this change, a couple of questions came up.
If I remove restic “forget /foo/bar”, will restic apply the /foo retention policy to /foo/bar or asked another way, does “restic forget /foo” apply to the separate /foo/bar backup?
If I remove the exclude from /foo/* what happens to the retention of the previous backups of /foo/bar? Will Restic realize that the old /foo/bar is now covered in the total /foo backup? My guess is no, and so how do I expire the historic /foo/bar backups?
Thank you for answering these questions. Is there anything else that I should consider before making this change? Can you suggest any best practices to achieve my objectives? Ideally, one backup and one forget job.