From owner-freebsd-questions@FreeBSD.ORG Sat Feb 21 18:28:56 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC9FA1065673 for ; Sat, 21 Feb 2009 18:28:56 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr5.xs4all.nl (smtp-vbr5.xs4all.nl [194.109.24.25]) by mx1.freebsd.org (Postfix) with ESMTP id 81EF28FC0A for ; Sat, 21 Feb 2009 18:28:56 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr5.xs4all.nl (8.13.8/8.13.8) with ESMTP id n1LISnP0029593; Sat, 21 Feb 2009 19:28:49 +0100 (CET) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 183C0BA95; Sat, 21 Feb 2009 19:28:49 +0100 (CET) Date: Sat, 21 Feb 2009 19:28:49 +0100 From: Roland Smith To: Jos Chrispijn Message-ID: <20090221182848.GA45695@slackbox.xs4all.nl> References: <49A00445.8080703@webrz.net> <20090221091151.99e3b526.wmoran@potentialtech.com> <49A03673.5080907@webrz.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jRHKVT23PllUwdXP" Content-Disposition: inline In-Reply-To: <49A03673.5080907@webrz.net> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.19 (2009-01-05) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: FreeBSD Questions Subject: Re: Rsync | Push script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Feb 2009 18:28:57 -0000 --jRHKVT23PllUwdXP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Feb 21, 2009 at 06:14:27PM +0100, Jos Chrispijn wrote: > Sorry for the confusion; the problem is in the rsync line: >=20 > rsync -avpog /var/db/mysql //root@10.10.10.50:123/usr/backup/ >=20 > Running this line causes rsync to say: > Unexpected remote arg: root@10.10.10.50:123 > rsync error: syntax or usage error (code 1) at main.c(1202) [sender=3D3.0= =2E5] >=20 > 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 --=20 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) --jRHKVT23PllUwdXP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (FreeBSD) iEYEARECAAYFAkmgR+AACgkQEnfvsMMhpyUKhQCfRBWSg20bYC4WqViOIJiswsMC PiIAmweDAjLsxnhGKntmxtMlVsbGb9wW =4hpb -----END PGP SIGNATURE----- --jRHKVT23PllUwdXP--