From owner-freebsd-questions@FreeBSD.ORG Sat May 12 15:02:05 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B432F16A400 for ; Sat, 12 May 2007 15:02:05 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from mxout-03.mxes.net (mxout-03.mxes.net [216.86.168.178]) by mx1.freebsd.org (Postfix) with ESMTP id 8F4FB13C45B for ; Sat, 12 May 2007 15:02:05 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from gumby.homeunix.com. (unknown [87.81.140.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id 52B425193F for ; Sat, 12 May 2007 11:02:02 -0400 (EDT) Date: Sat, 12 May 2007 16:02:00 +0100 From: RW To: freebsd-questions@freebsd.org Message-ID: <20070512160200.1c5ecf9e@gumby.homeunix.com.> In-Reply-To: <20070512050558.GA28182@just.puresimplicity.net> References: <20070512050558.GA28182@just.puresimplicity.net> X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.12; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Is there any already-existing method for removing empty dirs through periodic? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 May 2007 15:02:05 -0000 On Sat, 12 May 2007 00:05:58 -0500 Josh Tolbert wrote: > ... > This setup eats disk space fast. I've been using the clean-tmps daily > periodic to remove all files older than seven days from the video > location, which takes care of the space issue, but there's one more > little issue. It leaves a lot of empty directories. I could just > write a cron entry to take care of empty directories, but I'm hoping > there's something I'm missing and there's a way to remove empty > directories from the locations specified in daily_clean_tmps_dirs They should be deleted automatically, but it's based on when they are last modified, not just when the last file is removed, so it should take 14 days in your case.