diff options
author | jkh <jkh@FreeBSD.org> | 1994-05-13 12:41:47 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1994-05-13 12:41:47 +0000 |
commit | 073116681cf05d0a7198d2ffc0a174a005275d5c (patch) | |
tree | d92983fe746ab863377624e9d09147c33cdfbddb /etc | |
parent | a5d9a1f06278451b0f0068307f2e458189938f05 (diff) | |
download | FreeBSD-src-073116681cf05d0a7198d2ffc0a174a005275d5c.zip FreeBSD-src-073116681cf05d0a7198d2ffc0a174a005275d5c.tar.gz |
From: Heikki Suonsivu <hsu@clinet.fi>
FreeBSD release still nukes everything on scratch using a big-hammer
method, even if it is nfs-mounted (and, when it is, the expiration policy
may be different). Daily script should by default do nothing to remote
filesystems?
Diffstat (limited to 'etc')
-rw-r--r-- | etc/daily | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -25,8 +25,10 @@ fi if [ -d /scratch ]; then cd /scratch && { - find . ! -name . -atime +1 -exec rm -f -- {} \; - find . ! -name . -type d -mtime +1 -exec rmdir -- {} \; \ + find . ! -name . ! -fstype local -a -prune -o \ + -atime +1 -exec rm -f -- {} \; + find . ! -name . ! -fstype local -a -prune -o \ + -type d -mtime +1 -exec rmdir -- {} \; \ >/dev/null 2>&1; } fi |