-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Terri Kelley wrote: > > On Jan 21, 2009, at 11:01 PM, Adam Goryachev wrote: > > Terri Kelley wrote: >>>> On Jan 21, 2009, at 10:32 PM, Adam Goryachev wrote: >>>> Terri Kelley wrote: >>>> Try something like this: >>>> rsync -avz -e "/usr/bin/sudo /usr/local/bin/backuppc-rsync" >>>> backu...@myserver.domain.net <mailto:backu...@myserver.domain.net> >>>> <mailto:backu...@myserver.domain.net>:/root/backups >>>> /var/tmp/pwrnctmpback/rsyncmanual >>>> >>>>> Tried this: >>>>> rsync -avz -e "/usr/bin/sudo /usr/local/bin/backuppc-rsync" "ssh -p 22" >>>>> myserver.domain.net:/root/backups /var/tmp/pwrnctmpback/rsyncmanual > > Please refer to "man rsync" and consider what you are doing. Don't just > blindly run commands other people send you ! I could be telling you to > do something which will harm your system (even though of course I say I > am not :) > > -e says the parameter that follows is what will be executed on the > remote machine after we have connected there to make rsync talk to us. > > You have "ssh -p 22" as the first filename which should be copied, along > with the remote myserver.domain.net:/root/backups, to the destination of > /var/tmp/pwrnctmpback/rsyncmanual > > This is very unlikely to be what you want. Try this (exactly, after you > have understood why you are doing it): > > rsync -avz -e "/usr/bin/sudo /usr/local/bin/backuppc-rsync" > backu...@myserver.domain.net > <mailto:backu...@myserver.domain.net>:/root/backups > /var/tmp/pwrnctmpback/rsyncmanual > >> Thanks Adam for the info and the patience. I suspect the problem is the >> ssh -p 22 but I have to have the port. On the backuppc server the >> default ssh port is something else which works with all my other >> servers. However on this particular server I have to make it port 22. >> That is why I am trying to insert it and thus my problem.
My mistake as well, I didn't read the rsync man page well enough either. Try this one: rsync -avz -e "ssh -p 22 -l backuppc" --rsync-path "/usr/bin/sudo /usr/local/bin/backuppc-rsync" myserver.domain.net:/root/backups /var/tmp/pwrnctmpback/rsyncmanual - -e is the local program to run to set up the connection to the remote host. - --rsync-path is the program to run on the other side to make rsync startup... Regards, Adam - -- Adam Goryachev Website Managers www.websitemanagers.com.au -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkl4BTcACgkQGyoxogrTyiV1XwCffePqBzqenvzF7K0WEQR2v+7o GQsAnRISEr323JkxNDkmNxPepoHPtGOw =ENtv -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/