# Rsync permission issues via SSH

I am backing up a networked server via SSH. Unfortunately, I can't seem to figure out how to get root access to the networked server with Rsync. I am using the following command to perform the backup:

sudo rsync -av ubuntu@*******:/ /media/backup1/ubuntubackup


Some directories come up as permission denied. Once I log in through Rsync, the backup just starts and there is no way to issue the sudo command. I understand that I can use the Rsync daemon to get around this, but I would like to use SSH without the daemon for the sake of simplicity. Does anyone know a way to accomplish this? Any help would be greatly appreciated.

• Is this on Amazon Cloud? – user8290 Jan 1 '12 at 0:53

rsync -R -avz -e ssh --rsync-path="echo mypassword | \