Hongyi Zhao
2015-Apr-14 06:20 UTC
Two same rsync commands give different results on two debian mirrors.
Hi all, See the following commands: ___________________________ $ rsync -rmnv -f +_README -f -_* ftp.is.co.za::mirror/ftp.debian.org/ ftp.us.debian.org/debian [snipped] receiving file list ... done sent 23 bytes received 9 bytes 1.42 bytes/sec total size is 0 speedup is 0.00 (DRY RUN) $ rsync -rmnv -f +_README -f -_* ftp.cn.debian.org::debian [snipped] receiving file list ... done drwxr-xr-x 4,096 2015/04/14 11:34:19 . -rw-rw-r-- 1,370 2015/01/10 18:21:28 README sent 47 bytes received 1,389 bytes 574.40 bytes/sec total size is 1,370 speedup is 0.95 (DRY RUN) _________________________ Why the same rsync commands give different results on the above two debian mirrors? The first one failed to find anything even the README exists, while the second one succeed for the job. Any hints on this issue? Regards -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.
Paul Slootman
2015-Apr-14 07:32 UTC
Two same rsync commands give different results on two debian mirrors.
On Tue 14 Apr 2015, Hongyi Zhao wrote:> > See the following commands: > > ___________________________ > > $ rsync -rmnv -f +_README -f -_* ftp.is.co.za::mirror/ftp.debian.org/ > ftp.us.debian.org/debian > > [snipped] > > receiving file list ... done > > sent 23 bytes received 9 bytes 1.42 bytes/sec > total size is 0 speedup is 0.00 (DRY RUN) > > $ rsync -rmnv -f +_README -f -_* ftp.cn.debian.org::debian > > [snipped] > > receiving file list ... done > drwxr-xr-x 4,096 2015/04/14 11:34:19 . > -rw-rw-r-- 1,370 2015/01/10 18:21:28 README > > sent 47 bytes received 1,389 bytes 574.40 bytes/sec > total size is 1,370 speedup is 0.95 (DRY RUN) > _________________________ > > Why the same rsync commands give different results on the above two debian > mirrors? The first one failed to find anything even the README exists, > while the second one succeed for the job.The contents of those locations is entirely different, which becomes obvious if you simply run: $ rsync ftp.is.co.za::mirror/ftp.debian.org/ $ rsync ftp.cn.debian.org::debian If you want the same tree, use ftp.is.co.za::mirror/ftp.debian.org/ftp.us.debian.org/debian/ for the first location. Paul
Hongyi Zhao
2015-Apr-14 09:24 UTC
Two same rsync commands give different results on two debian mirrors.
On Tue, 14 Apr 2015 09:32:10 +0200, Paul Slootman wrote:> On Tue 14 Apr 2015, Hongyi Zhao wrote: >> >> See the following commands: >> >> ___________________________ >> >> $ rsync -rmnv -f +_README -f -_* ftp.is.co.za::mirror/ftp.debian.org/ >> ftp.us.debian.org/debianPlease see the above line including the part of line-wrapping. I've used the correct rsync tree just as you have noted in the following.>> >> [snipped] >> >> receiving file list ... done >> >> sent 23 bytes received 9 bytes 1.42 bytes/sec total size is 0 >> speedup is 0.00 (DRY RUN) >> >> $ rsync -rmnv -f +_README -f -_* ftp.cn.debian.org::debian >> >> [snipped] >> >> receiving file list ... done drwxr-xr-x 4,096 2015/04/14 >> 11:34:19 . >> -rw-rw-r-- 1,370 2015/01/10 18:21:28 README >> >> sent 47 bytes received 1,389 bytes 574.40 bytes/sec total size is >> 1,370 speedup is 0.95 (DRY RUN) >> _________________________ >> >> Why the same rsync commands give different results on the above two >> debian mirrors? The first one failed to find anything even the README >> exists, while the second one succeed for the job. > > The contents of those locations is entirely different, which becomes > obvious if you simply run: > > $ rsync ftp.is.co.za::mirror/ftp.debian.org/ > $ rsync ftp.cn.debian.org::debian > > If you want the same tree, use > ftp.is.co.za::mirror/ftp.debian.org/ftp.us.debian.org/debian/ for the > first location.No, I've tried this tree in my above post. Why do you said I have used a wrong rsync direcory tree. See my above notes for detail. In fact, the issue I meet is as follows, see the following for detail: 1- If I append the `/' in the end of the tree, I'll succeed: werner at debian:~$ rsync -rmnv -f +_README -f -_* ftp.is.co.za::mirror/ ftp.debian.org/ftp.us.debian.org/debian/ [snipped] receiving file list ... done drwxr-xr-x 4,096 2015/04/13 11:18:19 . -rw-rw-r-- 1,370 2015/01/10 18:21:28 README sent 130 bytes received 886 bytes 96.76 bytes/sec total size is 1,370 speedup is 1.35 (DRY RUN) 2- If I don't use the `/' in the end of the tree, the rsync will fail to retrieve anything: werner at debian:~$ rsync -rmnv -f +_README -f -_* ftp.is.co.za::mirror/ ftp.debian.org/ftp.us.debian.org/debian [snipped] receiving file list ... done sent 23 bytes received 9 bytes 7.11 bytes/sec total size is 0 speedup is 0.00 (DRY RUN) But for the case when use of the following rsync server, both case will succeed: werner at debian:~$ rsync -rmnv -f +_README -f -_* ftp.cn.debian.org::debian [snipped] receiving file list ... done drwxr-xr-x 4,096 2015/04/14 11:34:19 . -rw-rw-r-- 1,370 2015/01/10 18:21:28 README sent 47 bytes received 1,389 bytes 319.11 bytes/sec total size is 1,370 speedup is 0.95 (DRY RUN) werner at debian:~$ rsync -rmnv -f +_README -f -_* ftp.cn.debian.org::debian/ [snipped] receiving file list ... done drwxr-xr-x 4,096 2015/04/14 11:34:19 . -rw-rw-r-- 1,370 2015/01/10 18:21:28 README sent 47 bytes received 1,389 bytes 574.40 bytes/sec total size is 1,370 speedup is 0.95 (DRY RUN) Any hints on this issue? Regards> > > Paul-- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.
Possibly Parallel Threads
- Two same rsync commands give different results on two debian mirrors.
- Two same rsync commands give different results on two debian mirrors.
- Rsync a directory via a linked name.
- The complicated filter rule used by me worked for one Debian mirror and not for the other.
- Finding specific files/directories from a remote rsync server.