From owner-freebsd-questions@FreeBSD.ORG Mon Mar 5 12:48:18 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9D61416A401 for ; Mon, 5 Mar 2007 12:48:18 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.187.76.162]) by mx1.freebsd.org (Postfix) with ESMTP id F268D13C4B5 for ; Mon, 5 Mar 2007 12:48:17 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from [172.16.3.238] (gateway.ash.thebunker.net [213.129.64.4]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.13.8/8.13.8) with ESMTP id l25ClbXf040065 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 5 Mar 2007 12:47:46 GMT (envelope-from m.seaman@infracaninophile.co.uk) Message-ID: <45EC1163.3090405@infracaninophile.co.uk> Date: Mon, 05 Mar 2007 12:47:31 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 1.5.0.9 (X11/20070123) MIME-Version: 1.0 To: Noah References: <45EC0C0D.7040302@enabled.com> In-Reply-To: <45EC0C0D.7040302@enabled.com> X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="------------enig96BDD455DC8E7635753D6ED0" X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0 (smtp.infracaninophile.co.uk [81.187.76.162]); Mon, 05 Mar 2007 12:48:01 +0000 (GMT) X-Virus-Scanned: ClamAV 0.90/2724/Mon Mar 5 10:43:30 2007 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00, DKIM_POLICY_TESTING,DK_POLICY_SIGNSOME autolearn=ham version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on happy-idiot-talk.infracaninophile.co.uk Cc: User Questions Subject: Re: rsync and trailing '/' 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: Mon, 05 Mar 2007 12:48:18 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig96BDD455DC8E7635753D6ED0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Noah wrote: > rsync version 2.6.9 protocol version 29 >=20 > I am running rsync, and I wonder if having the trailing '/' at the end > of the directory is proper configuration? >=20 > --- snip --- >=20 > /usr/local/bin/rsync -avz -e ssh globs@globs.com:/var/cron/ /var/cron/ >=20 Presence of absence of the final '/' on the rsync *source* directory means different things. If you say: rsync -a foo/ bar/ directory bar will end up with a copy of the contents of foo. So a=20 file foo/wibble.txt will end up as bar/wibble.txt. If on the other hand you say: rsync -a foo bar/ then you end up with a directory structure 'bar/foo/...', and wibble.txt ends up as bar/foo/wibble.txt Other than that, the presence or absence of the trailing slash on the *target* directory doesn't make a great deal of difference. I usually try and work things so that the rsync command line always has trailing slashes on both the source and the destination directories simply for consistencies' sake. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. Flat 3 7 Priory Courtyard PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW, UK --------------enig96BDD455DC8E7635753D6ED0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.2 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF7BFo3jDkPpsZ+VYRAy0SAKCq7tqNsZvlz/EMTA2GzqrV+F3vvQCfY1O3 vZ44b+oePbyLBvsqTEIdLuU= =gmWv -----END PGP SIGNATURE----- --------------enig96BDD455DC8E7635753D6ED0--