From owner-freebsd-questions Wed Feb 5 2:20:11 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E1AC637B401 for ; Wed, 5 Feb 2003 02:20:09 -0800 (PST) Received: from pressure.noc.uk.easynet.net (pressure.noc.uk.easynet.net [195.40.7.165]) by mx1.FreeBSD.org (Postfix) with ESMTP id 735E043F79 for ; Wed, 5 Feb 2003 02:20:09 -0800 (PST) (envelope-from marc.silver@uk.easynet.net) Received: by pressure.noc.uk.easynet.net (Postfix, from userid 1332) id BCDBE6C801; Wed, 5 Feb 2003 10:20:08 +0000 (GMT) Date: Wed, 5 Feb 2003 10:20:08 +0000 From: Marc Silver To: Boris K?ster Cc: FreeBSD-questions@FreeBSD.ORG Subject: Re: RSYNC Question; date/time restriction Message-ID: <20030205102008.GO88454@uk.easynet.net> References: <154102094403.20030204234339@x-itec.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <154102094403.20030204234339@x-itec.de> User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi there, On Tue, Feb 04, 2003 at 11:43:39PM +0100, Boris K?ster wrote: > I have setup a little mirror of about 15 gig about linux/freebsd > software and my problem is that I only want to get the files dated > after january 2003 with rsync after getting the whole bunch of > software. > > Is this possible? I believe that the find(1) command can do what you want by using the 'mtime' flag. You can also use the 'delete' flag once you're sure it's getting the right files directories, etc. Something like: '/usr/bin/find /your/mirror/dir -mtime +15 -delete' Would delete all files that are older than fifteen days iirc (this is all from memory).... Just 'man find' and that should give you what you want. Good luck, Marc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message