Possibility so that --max-size AFFECTS --delete ?

Matt McCutchen matt at mattmccutchen.net
Fri Nov 27 19:43:24 MST 2009


On Sat, 2009-11-28 at 00:06 +0100, Stefan Nowak wrote:
> Is there a possibility, so that --max-size AFFECTS --delete actually?
> 
> Situation where it makes sense: Imagine that I had the rule --max- 
> size=1M and my backup-storage is satisfying. But one day it ain't  
> enough anymore, and I decide to lower down to --max-size=512K. The  
> files larger than 512K at the destination DO NOT GET DELETED!  
> Currently the only solution is to rm -r /my/backup/* and then start  
> the process again with the new size limitations.

Rsync currently does not have such an option.

> The content of this newsgroup post, makes me think, that in earlier  
> versions --max-size may have once AFFECTED --delete:
> http://article.gmane.org/gmane.network.rsync.general/12024

That thread was about a different issue: avoiding the deletion of
destination files that don't match the --min-size or --max-size transfer
rules.  The same issue for file-type transfer rules was:

https://bugzilla.samba.org/show_bug.cgi?id=4378

But all of these issues are about making the transfer rules behave more
like ordinary exclude rules (optionally at least), so it may make sense
to deal with all of them at once.  I have generalized bug 4378
accordingly.

-- 
Matt



More information about the rsync mailing list