[CentOS-mirror] Rsyncing problem

Wed Mar 28 04:56:09 UTC 2018
Anssi Johansson <avij at centosproject.org>

Onet 24/7 kirjoitti 28.3.2018 klo 6.39:
> rsync://mirrors.vonline.vn/centos/ /var/www/html/centos/
> -bash: rsync://mirrors.vonline.vn/centos/ 
> : No such file or directory
> 
> hellp me

Well, there are two problems here. The first one which gave you the "no 
such file or directory" error message is that you forgot the rsync 
command from the beginning. You should have used "rsync 
rsync://mirrors..." instead.

The second one is that vonline.vn does not provide rsync. You would get 
a "connection timed out" error message with that URL. Please see 
https://www.centos.org/download/mirrors/ and see which mirrors have a 
URL in the rsync column.

For example, this should work:
rsync -vaHz --progress --partial rsync://mirrors.viethosting.com/centos/ 
/var/www/html/centos/

This will show the progress as files are transferred. Add/remove other 
rsync flags to taste. The --delete flag should be used in your final 
script to also remove files if they are no longer available upstream. 
The -H flag that preserves hard links is important to save bandwidth and 
disk space. That flag should always be present.