I would like to set up a task to sync 2 remote servers' files.
Historically I performed the following:
- SSH to Destination
- SU to user which has public key on Source
- Rsync over SSH to pull files to Source
Now however, the Source server has moved to a VPN for which the Destination does not have access to, so there is no longer a direct 'line of sight', so I'm now resorting to the following method:
- Rsync from Source to Local
- Rsync from Local to Destination
This has the downside however that a number of different Local machines may be used for the file syncing task, and so the overhead of a new local copy being created, or even the need to store a local copy on local machines is not preferable.
Is there a Linux / OSX based command line tool which can perform the above without needing a local copy?