file archiving

hosking at convexs.UUCP hosking at convexs.UUCP
Fri Aug 9 12:10:00 AEST 1985


> /* Written  4:04 pm  Aug  5, 1985 by gwyn at 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



More information about the Comp.unix mailing list