christoph.m@freenet.de
2008-Jul-14 11:45 UTC
Problem remote sync with several directories/files
HTML attachment scrubbed and removed -------------- next part -------------- Hi, does anyone know what is wrong with that command line ? rsync -e "/<path to ssh>/ssh -i/<keypath>/.ssh/id_rsa " -vaoRrn user@hostname:'/root/directory/./dirToSync1' :'/root/directory/./dirToSync2' '/dir/to/destination' Calling it with real paths the rsync command overview arises. Thanks for your efforts. Best Regards. Christoph Unbegrenzter Speicher, Top-Spamschutz, 120 SMS und eigene E-MailDomain inkl. http://office.freenet.de/dienste/emailoffice/produktuebersicht/power/mail/index.html
On Mon, 2008-07-14 at 13:42 +0200, christoph.m@freenet.de wrote:> does anyone know what is wrong with that command line ? > > rsync -e "/<path to ssh>/ssh -i/<keypath>/.ssh/id_rsa " -vaoRrn user@hostname:'/root/directory/./dirToSync1' :'/root/directory/./dirToSync2' '/dir/to/destination' > > Calling it with real paths the rsync command overview arises.I don't see anything wrong with the command, but note that the syntax you're using for multiple remote source arguments is new in rsync 3.0.0; older rsync clients will reject it with an error. If your rsync is older than 3.0.0, try this syntax instead: rsync -e "/<path to ssh>/ssh -i/<keypath>/.ssh/id_rsa " -vaoRrn user@hostname:'/root/directory/./dirToSync1 /root/directory/./dirToSync2' '/dir/to/destination' Matt -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part Url : http://lists.samba.org/archive/rsync/attachments/20080714/3def486b/attachment.bin