...more recent posts
Rsync using sudo via remote shell:
stty -echo; ssh myUser@REMOTE_SERVER/ "sudo -v"; stty echothen:
rsync -avze ssh --rsync-path='sudo rsync'/ myUser@REMOTE_SERVER:/REMOTE_PATH/ LOCAL_PATH
Rsync using sudo via remote shell:
stty -echo; ssh myUser@REMOTE_SERVER/ "sudo -v"; stty echothen:
rsync -avze ssh --rsync-path='sudo rsync'/ myUser@REMOTE_SERVER:/REMOTE_PATH/ LOCAL_PATH