Date: Thu, 12 Feb 2004 16:56:51 -0600 From: Nathan Kinkade <nkinkade@ub.edu.bz> To: Darryl Hoar <darryl@osborne-ind.com> Cc: freebsd-questions@freebsd.org Subject: Re: Crontab question Message-ID: <20040212225651.GL17922@nkinkade> In-Reply-To: <015201c3f1b4$88695e80$0701a8c0@darryl> References: <015201c3f1b4$88695e80$0701a8c0@darryl>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040212225651.GL17922>