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 -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
