[SOLVED] initiating a reverse rsync
Hi all,
What I am trying to do is have server "A" ask server "B" to send files to server "A". So Server "A" should initiate an rsync request to have files from server "B" sent to itself. The reason for this is that a few servers use rsync to backup their files to server "B" along with proper permissions, etc. To avoid connecting from server "A" to the server "B" as root , I need to ask server "B" to rsync the files to server "A". I think this can be done with rsync-path but if it can... I haven't figured out how. ;) Any advice help... or clarifications requests are welcome. :) |
It's good to have your own Guru at work ;)
The following is the solution for anyone wanting to do this. No credits to me, all to the anonymous Guru! Add your key to avoid being prompted by a password Code:
serverA $ ssh-add Code:
serverA $ echo $SSH_AUTH_SOCK Code:
serverA $ sudo su - Code:
serverA # ssh mysuer@serverB Code:
serverA # rsync -avn --rsync-path="sudo rsync" mysuer@serverB:/root/ /tmp/ |
All times are GMT -5. The time now is 08:14 AM. |