From owner-freebsd-questions@FreeBSD.ORG Thu Feb 12 14:57:14 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 708F316A4CE for ; Thu, 12 Feb 2004 14:57:14 -0800 (PST) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B19B43D1D for ; Thu, 12 Feb 2004 14:57:14 -0800 (PST) (envelope-from nkinkade@fastmail.fm) X-Sasl-enc: ntqAzyD632jgrOqp5WuxeA 1076626631 Received: from [206.26.199.146] (unknown [206.27.244.214]) by www.fastmail.fm (Postfix) with ESMTP id 2C0F04F6F4E; Thu, 12 Feb 2004 17:57:10 -0500 (EST) Received: from nkinkade by [206.26.199.146] with local (Exim 4.12) id 1ArPlL-000572-00; Thu, 12 Feb 2004 16:56:51 -0600 Date: Thu, 12 Feb 2004 16:56:51 -0600 From: Nathan Kinkade To: Darryl Hoar Message-ID: <20040212225651.GL17922@nkinkade> Mail-Followup-To: Darryl Hoar , freebsd-questions@freebsd.org References: <015201c3f1b4$88695e80$0701a8c0@darryl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="j3olVFx0FsM75XyV" Content-Disposition: inline In-Reply-To: <015201c3f1b4$88695e80$0701a8c0@darryl> User-Agent: Mutt/1.4.1i Sender: Nathan Kinkade cc: freebsd-questions@freebsd.org Subject: Re: Crontab question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Nathan Kinkade List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Feb 2004 22:57:14 -0000 --j3olVFx0FsM75XyV Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 12, 2004 at 04:06:56PM -0600, Darryl Hoar wrote: > Greetings, > I am running 5.1-release. > I have installed rsync from ports, and want to use it to archive. > I want to add an entry to cron so it runs nightly. I didn't quite > understand the man page when it came to arguments to the=20 > command you are running. >=20 > ie > 0 0 1 * * * /usr/local/bin/rsync -av /working/ /backup/working=20 >=20 > I also want the output of the rsync command to go to a named file. >=20 > Any help greatly appreciated. >=20 > -Darryl Without consideration to the syntax of rsync, a line much like the one you have should work. For example: 0 1 * * * /usr/local/bin/rsync -av /dir /backup/dir 2>&1 /root/rsync.log This should run the specified command at 1AM every day of every week. Nathan --=20 gpg --keyserver pgp.mit.edu --recv-keys D8527E49 --j3olVFx0FsM75XyV Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQFALASzO0ZIEthSfkkRArh+AKDoXmPKkx+ImZQ1tqns53q+Cu5WawCg4U1B ZbDbUuSWK36EpfH2gILZb0c= =MnQs -----END PGP SIGNATURE----- --j3olVFx0FsM75XyV--