Rsync | Push script

Roland Smith rsmith at xs4all.nl
Sat Feb 21 10:28:57 PST 2009


On Sat, Feb 21, 2009 at 06:14:27PM +0100, Jos Chrispijn wrote:
> Sorry for the confusion; the problem is in the rsync line:
> 
> rsync -avpog /var/db/mysql //root at 10.10.10.50:123/usr/backup/
> 
> Running this line causes rsync to say:
> Unexpected remote arg: root at 10.10.10.50:123
> rsync error: syntax or usage error (code 1) at main.c(1202) [sender=3.0.5]
> 
> On the server that I use this push script, I want to connect as root
> to the backup server; thru port 123 (can be any port). With rsync
> running I can't get this to work. Can someone tell me what I do wrong
> here?

You got the syntax for the rsync command wrong. Either remove the '//' in
front of the remote address or use 'rsync://'. See the rsync(1) manual page.

Roland
-- 
R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090221/acc142af/attachment.pgp


More information about the freebsd-questions mailing list