From owner-freebsd-questions Wed Dec 5 8:42:39 2001 Delivered-To: freebsd-questions@freebsd.org Received: from web11801.mail.yahoo.com (web11801.mail.yahoo.com [216.136.172.155]) by hub.freebsd.org (Postfix) with SMTP id 8F65337B419 for ; Wed, 5 Dec 2001 08:42:34 -0800 (PST) Message-ID: <20011205164234.50132.qmail@web11801.mail.yahoo.com> Received: from [64.73.64.94] by web11801.mail.yahoo.com via HTTP; Wed, 05 Dec 2001 08:42:34 PST Date: Wed, 5 Dec 2001 08:42:34 -0800 (PST) From: X Philius Reply-To: xphilius@yahoo.com Subject: Re: newsyslog - backup logfile question To: freebsd-questions@FreeBSD.org In-Reply-To: <20011205162540.GA57948@keyslapper.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 Louis, I had the same thought about moving logs/*.gz to a folder on a regular basis. How about setting up a simple shell script to move *.gz to a folder named with the date, log_backup/logs_12_05_01/ or some such? That way the numbered *.gz files won't get over written. Its a simple solution, but should accomplish our goal! I am a /bin/sh newbie, so I honestly haven't figured out how to get the date, formatted nicely for a folder name, into a variable yet, but I am quite sure it is easy ;-) Jason --- Louis LeBlanc wrote: > Quick question about newsyslog. I suspect it's not possible, but it > can't hurt much to ask, right? > > I often go thru logs on a daily basis, and often have to sort thru > the > directory to find the current logs. I wonder if it is possible to > have newsyslog, in addition to gzipping old logs, to put all gzipped > backups into a ./bak/ directory? I know it has to know how many > backups it has kept, so I can't just move *.gz files in on a regular > basis - that would screw things up. I found nothing in the manpage, > and I'm not sure where else to look. > > Obviously this would be an easy enough feature to add, but I'm not > inclined to put yet another rod in the furnace just yet. > > Thanks in advance. > Lou > -- > Louis LeBlanc leblanc@keyslapper.org > Fully Funded Hobbyist, KeySlapper Extrordinaire :) > http://www.keyslapper.org ԿԬ > > Mencken and Nathan's Fifteenth Law of The Average American: > The worst actress in the company is always the manager's wife. > > ATTACHMENT part 2 application/pgp-signature __________________________________________________ Do You Yahoo!? Buy the perfect holiday gifts at Yahoo! Shopping. http://shopping.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message