From 073116681cf05d0a7198d2ffc0a174a005275d5c Mon Sep 17 00:00:00 2001 From: jkh Date: Fri, 13 May 1994 12:41:47 +0000 Subject: From: Heikki Suonsivu 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? --- etc/daily | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'etc/daily') diff --git a/etc/daily b/etc/daily index c14b0ea..7b8258c 100644 --- a/etc/daily +++ b/etc/daily @@ -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 -- cgit v1.1