Possibility so that --max-size AFFECTS --delete ?
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:
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:
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
More information about the rsync