Thursday, August 3, 2017

I need to rsync from a root protected directory on one server to a root protected directory on another...

Thanks to:

sudo rsync -av -e "ssh" --rsync-path="sudo rsync" /tftpboot/

So here is the thing...

I SSH(ed) to the remoteA and forwarded my ssh keys (ForwardAgent yes) and ran this command:

sudo rsync -av -e "ssh" 
^ On the host I'm running this on run it under sudo
--rsync-path="sudo rsync" /tftpboot/
^ On the remote server run rsync server as sudo

No comments:

Post a Comment