Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: Notesfiles $Revision: 1.7.0.8 $; site convexs
Path: utzoo!linus!philabs!cmcl2!seismo!harvard!talcott!panda!genrad!decvax!harpo!whuxlm!whuxl!houxm!ihnp4!inuxc!pur-ee!uiucdcs!convex!convexs!hosking
From: hosking@convexs.UUCP
Newsgroups: net.unix
Subject: Re:  file archiving
Message-ID: <49600006@convexs>
Date: Thu, 8-Aug-85 22:10:00 EDT
Article-I.D.: convexs.49600006
Posted: Thu Aug  8 22:10:00 1985
Date-Received: Sat, 17-Aug-85 06:27:02 EDT
References: <445@brl-tgr.ARPA>
Lines: 22
Nf-ID: #R:brl-tgr.ARPA:-44500:convexs:49600006:000:745
Nf-From: convexs.UUCP!hosking    Aug  8 21:10:00 1985


> /* Written  4:04 pm  Aug  5, 1985 by gwyn@BRL.ARPA in convexs:net.unix */
> /* ---------- "Re:  file archiving" ---------- */
> $ # How to archive then delete user files not accessed for 90 days:
> $ su
> Password:
> # cd name-of-user-filesystem
> # find . ! -atime 90 -depth -print >/usr/tmp/FILELIST	# find files
				.
				.
				.
> do	rm -f "$file"					# delete files


I hope you're doing this single user!  Otherwise, it seems like you'd
run the risk of having race conditions with someone updating files while
you're doing the archiving/deleting.  Perhaps not all that likely, but
Murphy's been working overtime here lately.
			Doug Hosking
			Convex Computer Corp.
			Richardson, TX
			{allegra, ihnp4, uiucdcs}!convex!convexs!hosking