From owner-freebsd-questions Tue May 22 4:33: 1 2001 Delivered-To: freebsd-questions@freebsd.org Received: from relay1.ntu-kpi.kiev.ua (www.ntu-kpi.kiev.ua [212.111.192.161]) by hub.freebsd.org (Postfix) with ESMTP id 55D4D37B424 for ; Tue, 22 May 2001 04:32:55 -0700 (PDT) (envelope-from simon@comsys.ntu-kpi.kiev.ua) Received: from comsys.ntu-kpi.kiev.ua (eth0.comsys.ntu-kpi.kiev.ua [10.0.1.184]) by relay1.ntu-kpi.kiev.ua (Postfix) with ESMTP id 1ABEB2F667; Tue, 22 May 2001 14:32:46 +0300 (EEST) Received: from pm5149 (pm514-9.comsys.ntu-kpi.kiev.ua [10.18.54.109]) by comsys.ntu-kpi.kiev.ua (8.11.3/8.11.3) with SMTP id f4MBS8D01319; Tue, 22 May 2001 14:28:18 +0300 (EEST) Message-ID: <013601c0e2a9$9f4f5220$6d36120a@comsys.ntukpi.kiev.ua> From: "Andrey Simonenko" To: "Michael Bartlett" Cc: References: <03ba01c0e2ae$49847be0$cfe89298@LUCY> Subject: Re: script to archive old files Date: Tue, 22 May 2001 14:26:01 +0400 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 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 ----- Original Message ----- From: Michael Bartlett Newsgroups: lucky.freebsd.questions Sent: Tuesday, May 22, 2001 3:16 PM Subject: script to archive old files > hi there > i'm running out of hdd space at a rapid rate > i'm trying to figure out how to write a script that will > > - gzip all files in a directory that are older than 2 months > - email the gzip to me > - delete the files that were gzipped > > the few attempts that i have made have been disasterous! > i'm by no means a l33t ninja scrpiter! > > could anyone lend a hand please? > cheers > mike You can find some good examples in /etc/periodic and then write your own. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message