On Wednesday, December 2, 2015 16:20 CET, Zhang Huangbin <[email protected]> 
wrote:
 
> On Nov 26, 2015, at 5:55 PM, Zhang Huangbin <[email protected]> wrote:
>
> SOGo yum repo is very slow in mainland China, anyway i can mirror it for 
> faster access? e.g. rsync.

Dear developers,

Seriously, any idea how i can easily mirror SOGo yum/apt repositories?

----
Zhang Huangbin, founder of iRedMail project: http://www.iredmail.org/
Time zone: GMT+8 (China/Beijing).
--
[email protected]
https://inverse.ca/sogo/listsHi Zhang

have you tried wget?

something like this, however you "might" need to ask permission before you 
start downloading the entire repository using wget since it can take its toll 
on the server

cd local-repo/
wget --tries=2 -r -m --no-parent --reject "*.html*" 
http://inverse.ca/downloads/SOGo/RHEL5/
wget --tries=2 -r -m --no-parent --reject "*.html*" 
http://inverse.ca/downloads/SOGo/RHEL6/
wget --tries=2 -r -m --no-parent --reject "*.html*" 
http://inverse.ca/downloads/SOGo/RHEL7/
   
  -t,  --tries=NUMBER       set number of retries to NUMBER (0 unlimits).
  -r,  --recursive                specify recursive download.
  -m,  --mirror                   shortcut for -N -r -l inf --no-remove-listing.
  -np, --no-parent              don't ascend to the parent directory.
 
  --reject "*.html*"             don't save html files..



in case of robots.txt restrictions use

    wget -e robots=off -r  .....
    
  -e,  --execute=COMMAND   execute a `.wgetrc'-style command.

--
Hilsen/Regards
Christian Jensen
-- 
[email protected]
https://inverse.ca/sogo/lists

Reply via email to