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

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Hongyi Zhao
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 :.

--
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
Reply | Threaded
Open this post in threaded view
|

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

Paul Slootman-5
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
Reply | Threaded
Open this post in threaded view
|

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

Hongyi Zhao
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 the
these servers?

Regards
--
.: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.

--
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
Reply | Threaded
Open this post in threaded view
|

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

Hongyi Zhao
In reply to this post by Paul Slootman-5
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@debian:~$ nmap -sV -p873 ftp.cn.debian.org
[snip]
873/tcp open  rsync   (protocol version 30)

werner@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 :.

--
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
Reply | Threaded
Open this post in threaded view
|

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

Hongyi Zhao
On Tue, 14 Apr 2015 13:28:26 +0000, Hongyi Zhao wrote:

>> but I wouldn't be surprised if some of the filter rules don't work on
>> the older rsync.

I've done a further test, and it doesn't support your point of view.

Even I connect to a server with protocol version 30, it will still fails
to list anything if the rsync tree is not directly under the top-level of
the server, see the following for detail:

werner@debian:~$ nmap -sV -p873 ftp.fsn.hu
[snip]
873/tcp open  rsync   (protocol version 30)

$ 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.fsn.hu::linux/debian/

receiving file list ...
0 files to consider

sent 277 bytes  received 7 bytes  6.84 bytes/sec
total size is 0  speedup is 0.00 (DRY RUN)

So, it seems that the issue is not caused by the protocol version only.  
Could someone please give some hints on this issue?

Regards

>
> Let we stay here to expect for the experiences from others similar to my
> case ;-)
>
> Regards





--
.: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.

--
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