I have two servers in two different locations, that do several different things. One of their primary functions is providing remote storage for a few classmates on Server A. Part of a project that I'm doing is setting up redundancy between two Ubuntu servers - Server A (where we use Hamachi to store school work), and Server B.
What I need to now do is once a night, start a mirror of the data on Server A -> Server B. The stipulations are as follows
- Must only copy NEW or CHANGED files.
- If a file is deleted, that change must also be reflected in the data on Server B after the push
- Must be auto(cron)matable - No passwords, or user interaction, on a nightly basis
- Nodes must be able to be added on-demand - that is, if we get a third server, we must be able to essentially drop it in to the grid and have it work (don't worry about port-forwarding or any of the basic networking stuff - we've got that covered)
I have been doing some reading and I feel like RSync could be my ticket - probably by using SSH and keys to handle authentication / maybe rsync into an sshfs mounted dir?
What are your takes / thoughts / ideas / oppinions of this? I am very much learning so anything insight is greatly welcomed!