The complicated filter rule used by me worked for one Debian mirror and not for the other.

Paul Slootman paul+rsync at wurtel.net
Tue Apr 14 05:32:46 MDT 2015


On Tue 14 Apr 2015, Hongyi Zhao wrote:

> I write a complex filter rules as follows:
> 
> rsync -amvHPRSB131072 -n --delete --delete-excluded \
> -f +_dists/jessie/**binary-all/Packages.gz \
> -f +_dists/jessie/Release* \
> -f +_dists/jessie/**binary-amd64/Packages.gz \
> -f +_dists/jessie/**installer-amd64/*** \
> -f +_dists/jessie/**binary-i386/Packages.gz \
> -f +_dists/jessie/**installer-i386/*** \
> -f +_dists/***/ \
> -f -_* ftp.cn.debian.org::debian/
> 
> When I run the above commands, it will list the corresponding files that 
> will be retrieved corresponding to these rules.
> 
> But, when use it to the other debian mirror as follows:
> 
> rsync -amvHPRSB131072 -n --delete --delete-excluded \
> -f +_dists/jessie/**binary-all/Packages.gz \
> -f +_dists/jessie/Release* \
> -f +_dists/jessie/**binary-amd64/Packages.gz \
> -f +_dists/jessie/**installer-amd64/*** \
> -f +_dists/jessie/**binary-i386/Packages.gz \
> -f +_dists/jessie/**installer-i386/*** \
> -f +_dists/***/ \
> -f -_* \
> ftp.is.co.za::mirror/ftp.debian.org/ftp.us.debian.org/debian/
> 
> This time, it will give nothing.

ftp.cn.debian.org is running a version of rsync that supports protocol
version 30, whereas ftp.is.co.za is running an older version that only
supports up to 29.  I haven't used such complex filter rules yet (I've
been sticking to the --include / --exclude stuff) but I wouldn't be
surprised if some of the filter rules don't work on the older rsync.


Paul


More information about the rsync mailing list