Hi,

I'm trying to copy some files from a remote server.
(That server uses passphrase to auth users.)
Rsync should be able to copy files with root privileges.

Here is my attempt:

sudo rsync -avP --exclude 'proc' --exclude 'dev' --exclude 'tmp'
--exclude 'sys' --exclude 'mnt' --rsync-path='sudo rsync' -e "ssh -t
-t -i /home/USER/.ssh/key" USER@SERVER:/  /mnt/backup/

Response:

protocol version mismatch -- is your shell clean?
(see the rsync man page for an explanation)

The following file is empty:

ssh remotesystem /bin/true > test.dat [1]

Any ideas? Am I using the correct syntax?

Thanks

[1] http://rsync.samba.org/FAQ.html
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to