--delete switch with date stamp (eg mtime)

Philip Rhoades phil at chu.com.au
Mon Dec 12 02:55:29 GMT 2005


People,

Is it possible to use the "--delete" switch with a date stamp eg mtime?

I want to delete files in the dest dir but only if they are older than a
certain date.  I can't see a way of doing this with an rsync command
itself - I would have to do a find first and pipe the results to rsync
(which I am trying to avoid).

Thanks,

Phil.
-- 
Philip Rhoades

Pricom Pty Limited  (ACN 003 252 275  ABN 91 003 252 275)
GPO Box 3411
Sydney NSW      2001
Australia
Mobile:  +61:0411-185-652
Fax:  +61:2:8923-5363
E-mail:  phil at chu.com.au




More information about the rsync mailing list