From owner-freebsd-questions Wed Dec 5 9: 4:31 2001 Delivered-To: freebsd-questions@freebsd.org Received: from chmls06.mediaone.net (chmls06.mediaone.net [24.147.1.144]) by hub.freebsd.org (Postfix) with ESMTP id 4FD6937B417 for ; Wed, 5 Dec 2001 09:04:28 -0800 (PST) Received: from keyslapper.org (acadia.ne.mediaone.net [24.91.160.222]) by chmls06.mediaone.net (8.11.1/8.11.1) with ESMTP id fB5H5CQ11393 for ; Wed, 5 Dec 2001 12:05:12 -0500 (EST) Received: (from leblanc@localhost) by keyslapper.org (8.11.6/8.11.6) id fB5H5XE64169 for freebsd-questions@FreeBSD.ORG; Wed, 5 Dec 2001 12:05:33 -0500 (EST) (envelope-from leblanc) Date: Wed, 5 Dec 2001 12:05:33 -0500 From: Louis LeBlanc To: freebsd-questions@FreeBSD.ORG Subject: Re: newsyslog - backup logfile question Message-ID: <20011205170533.GC57948@keyslapper.org> Reply-To: freebsd-questions@FreeBSD.ORG Mail-Followup-To: freebsd-questions@FreeBSD.ORG References: <20011205162540.GA57948@keyslapper.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Fba/0zbH8Xs+Fj9o" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.23.2i X-PGP-Fingerprint: 4EA2 24FF 41B0 0258 9A54 9309 7803 D662 B364 4562 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --Fba/0zbH8Xs+Fj9o Content-Type: text/plain; charset=unknown-8bit Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 12/05/01 04:29 PM, Barry Byrne sat at the `puter and typed: > Louis: >=20 > I think the -a option to newsyslog will do what you want - man newsyslog = to > be sure. Doh! You are correct. Don't know how I missed that. Guess I get the pointy hat for today. So I fixed it in /etc/crontab as follows: # rotate log files every hour, if necessary 0 * * * * root newsyslog -a ./bak/ Which, according to that little part of the manpage I brainfarted over, should cause all backups, gzipped or otherwise (the binaries aren't compressed) to be saved in a local bak/ directory. Thanks Barry! Lou PS: Lou's addendum to Allen's Axiom: When Allen's Axiom fails, RE-READ the instructions before asking for help. :) --=20 Louis LeBlanc leblanc@keyslapper.org Fully Funded Hobbyist, KeySlapper Extrordinaire :) http://www.keyslapper.org =D4=BF=D4=AC Allen's Axiom: When all else fails, read the instructions. --Fba/0zbH8Xs+Fj9o Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE8DlPdeAPWYrNkRWIRAmSZAJ9UpSD8D5zWqQUewxNL/BtzAaTRFQCfQotP R6uz65XSu6RnkD55DBeyL3M= =65fb -----END PGP SIGNATURE----- --Fba/0zbH8Xs+Fj9o-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message