Logically, deleting the dst file which does not exist on src amounts to "transferring the non-existence" of that file from src to dst. Therefore, if files larger or smaller than some size are ignored in transfer, they must just as well be ignored in deleting (much as --exclude'd files are also excluded from delete, unless you specify --delete-excluded). So I think the behavior should be amended by checking the sizes of dst-only files and applying the same min/max filters to them when deciding whether to delete them or not. -- bulia byak Inkscape. Draw Freely. http://www.inkscape.org
Matt McCutchen
2006-Feb-24 22:05 UTC
--min/max-size affects only transfer, not --delete, why?
On Fri, 2006-02-24 at 12:19 -0400, bulia byak wrote:> Logically, deleting the dst file which does not exist on src amounts > to "transferring the non-existence" of that file from src to dst. > Therefore, if files larger or smaller than some size are ignored in > transfer, they must just as well be ignored in deleting (much as > --exclude'd files are also excluded from delete, unless you specify > --delete-excluded). So I think the behavior should be amended by > checking the sizes of dst-only files and applying the same min/max > filters to them when deciding whether to delete them or not.I disagree. --min-size and --max-size filter based on the size on the _sender_, and a file not present on the sender has no size to check against these options. If you want to protect small or large files from being deleted on the receiver, run find on the receiver ahead of time to make a list of them, use sed to turn the filenames into protect filters (P /foo), and pass the filters to rsync. -- Matt McCutchen hashproduct@verizon.net http://hashproduct.metaesthetics.net/
Seemingly Similar Threads
- (no subject)
- [Bug 10233] New: rsync is spending a lot of time lstat64()'ing --exclude'd files
- [fdo] Inkscape Announces 0.43 Release :: http://www.inkscape.org :: Draw Freely.
- [fdo] Inkscape Announces 0.45 Release :: http://www.inkscape.org :: Draw Freely.
- [fdo] Announcing Inkscape 0.40 Release . www.inkscape.org