--delete switch with date stamp (eg mtime)

Wayne Davison wayned at samba.org
Tue Dec 13 17:17:30 GMT 2005


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..


More information about the rsync mailing list