Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Feb 2003 10:20:08 +0000
From:      Marc Silver <marc.silver@uk.easynet.net>
To:        Boris K?ster <koester@x-itec.de>
Cc:        FreeBSD-questions@FreeBSD.ORG
Subject:   Re: RSYNC Question; date/time restriction
Message-ID:  <20030205102008.GO88454@uk.easynet.net>
In-Reply-To: <154102094403.20030204234339@x-itec.de>
References:  <154102094403.20030204234339@x-itec.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030205102008.GO88454>