Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!cs.utexas.edu!romp!auschs!awdprime!sanders.austin.ibm.com!sanders From: sanders@sanders.austin.ibm.com (Tony Sanders) Newsgroups: comp.unix.admin Subject: Re: Help - we lost all our files! Message-ID: <8928@awdprime.UUCP> Date: 29 Jun 91 00:01:25 GMT References: <1347@escob1.UUCP> Sender: news@awdprime.UUCP Organization: IBM AWD, Austin Lines: 16 dickson@escob1.UUCP (Dave Dickson) writes: > Help! We have been running the crontab line shown below > 45 3 * * * find /tmp/* /usr/tmp/* -mtime +1 -print | xargs rm -r I suggest using "find -xdev" or the equiv on your system, if it doesn't support it, get the vendor to fix it. There are various ways things can get munched if you don't. I dislike removing things automatically in the first place, might I suggest checking free space and if low mail your list to a sys admin. Or generate a report of who owns what and mail it to them every night. BTW: -xdev prevents find from traversing across file systems (handy for "find / -xdev"). -- sanders