I am trying to create a personal sync system for my project. I don't want to use something like dropbox, bittorrent sync, owncloud etc for various reasons.
At the moment, I have my computers setup to use encfs and git over a usb drive. Where I have a local unencrypted folder on each computer and the encrypted encfs files are on the usb drive. This seems to work fine. What I am worried about is when the usb drive fails. I basically want to automatically keep a backup of the encrypted files on each computer.
How do I go about doing that?
Ideally, create a backup of the encrypted files when the usb drive is connected, or every minute or hour while the usb drive is connected?
If something better is possible, please let me know.
Can I use something like rsync with a cron job to do this? What I don't need is the advanced features of rsync to create a time-line of backups. I just need a copy of the latest files on the usb drive.