I've recently been experimenting with using rsync as a means of version control/backup for certain files on my system.
My goal is to essentially have rsync set to monitor some specific files, and if/when those files change for rysnc to then make a copy of said files to another destination, as a separate file (rather than overwriting the initial backed-up file).
So currently, what I do have is this:
rsync ~/Database/original.sqlite ~/Backup/backup`date +'.%F_%H-%M-%S'`.sqlite
I have this running as an Agent in launchd on a 1 minute timer. So with how it is now, essentially rsync will just keep making new copies of this file every minute no matter what.
If I had a means for rsync to check the latest version in the Backup folder, compare to original file in Database folder, then if the files are different make a new backup version, that would be perfection.
Am I really stretching the limits of rsync with what I'm trying to do here?
Thank you in advance for any suggestions.