Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 May 2001 11:59:10 +0100
From:      "Michael Bartlett" <michael@i-syt.com>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   script to archive old files
Message-ID:  <03ba01c0e2ae$49847be0$cfe89298@LUCY>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------=_NextPart_000_03B7_01C0E2B6.9CCF4B10
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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

------=_NextPart_000_03B7_01C0E2B6.9CCF4B10
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3103.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>hi there</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>i'm running out of hdd space at a rapid =

rate</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>i'm trying to figure out how to =
write&nbsp;a script=20
that will</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;- gzip all files in a directory =
that are=20
older than 2 months</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;- email the gzip to =
me</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;- delete the files that were=20
gzipped</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>the few attempts that i have made have =
been=20
disasterous!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>i'm by no means a l33t ninja =
scrpiter!</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>could anyone lend a hand =
please?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>cheers</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>mike</FONT></DIV></BODY></HTML>

------=_NextPart_000_03B7_01C0E2B6.9CCF4B10--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?03ba01c0e2ae$49847be0$cfe89298>