Hongyi Zhao
2015-Apr-14 10:56 UTC
The complicated filter rule used by me worked for one Debian mirror and not for the other.
Hi all, 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. You can try the above commands for inspecting the things I mentioned above. Could you please give me some hints on this issue? Regards -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.
Paul Slootman
2015-Apr-14 11:32 UTC
The complicated filter rule used by me worked for one Debian mirror and not for the other.
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
Hongyi Zhao
2015-Apr-14 13:16 UTC
The complicated filter rule used by me worked for one Debian mirror and not for the other.
On Tue, 14 Apr 2015 13:32:46 +0200, Paul Slootman wrote:> 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.>From where can I know the above version information you denoted for thethese servers? Regards -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.
Hongyi Zhao
2015-Apr-14 13:28 UTC
The complicated filter rule used by me worked for one Debian mirror and not for the other.
On Tue, 14 Apr 2015 13:32:46 +0200, Paul Slootman wrote:> 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.Anyway, thanks for your above notes again. I finally use the nmap to check the things you said above are correct: werner at debian:~$ nmap -sV -p873 ftp.cn.debian.org [snip] 873/tcp open rsync (protocol version 30) werner at debian:~$ nmap -sV -p873 ftp.is.co.za [snip] 873/tcp open rsync (protocol version 29)> I haven't used such complex filter rules yet (I've > been sticking to the --include / --exclude stuff)Of course, you can try to use them ;-)> but I wouldn't be > surprised if some of the filter rules don't work on the older rsync.Let we stay here to expect for the experiences from others similar to my case ;-) Regards> > > Paul-- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.
Maybe Matching Threads
- The complicated filter rule used by me worked for one Debian mirror and not for the other.
- Skip based on checksum not worked as expected when using with complex filter rules.
- Skip based on checksum not worked as expected when using with complex filter rules.
- Skip based on checksum not worked as expected when using with complex filter rules.
- Skip based on checksum not worked as expected when using with complex filter rules.