23 Jul 2012 03:47
Rsync over ssh with root privileges
Stayvoid <stayvoid <at> gmail.com>
2012-07-23 01:47:14 GMT
2012-07-23 01:47:14 GMT
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 <at> 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(Continue reading)
RSS Feed