TLDR Summary: Backup a file when it has changed and rotate the backups.
So I have this habit of playing FTL: Faster Than Light, which is fun and fantastic!
![Screenshot 2024-06-24 at 8 14 19 PM](https://private-user-images.githubusercontent.com/3297590/342528687-cea706e8-2cdb-4a56-ad86-355d63072ea4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4NDA4OTUsIm5iZiI6MTczODg0MDU5NSwicGF0aCI6Ii8zMjk3NTkwLzM0MjUyODY4Ny1jZWE3MDZlOC0yY2RiLTRhNTYtYWQ4Ni0zNTVkNjMwNzJlYTQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDZUMTExNjM1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZjNlOGEzNzM4ODExNmI4ODNhZGNiYmMxY2EyM2I0NjUxNTE2MTJmMmVjNjU2NTM2ZDQ4NjBjNmE4ZDQyOTk5NSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.727AusqJF_wvaz3xmIQ8sPTAXFXHyenmvWNdb_oMwZ4)
But recently I lost some progress because my profile got corrupted. I was able to get an old save from Apple's Time Machine file history backups, but I didn't want to start playing again until I had a way to ensure that there would be a history of backups created as I play the game.
Also I wanted a reason to get hands-on with GoLang again.
Thus it came to pass that I created software for something that could have been easily solved with plan old gnu tools and maybe some Bash scripting. No regrets. This was a fun bit of coding that I wanted to do for my own selfish reasons.