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@chu.com.au -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
On Mon, Dec 12, 2005 at 01:55:29PM +1100, Philip Rhoades wrote:> I want to delete files in the dest dir but only if they are older than > a certain date.One solution is to use --backup into a --backup-dir hierarchy that will be rotated daily, and delete the oldest hierarchy after N days. (This will also keep old versions of changed files in addition to deleted files.) ..wayne..