copying entirely repos

Todd Denniston Todd.Denniston at ssa.crane.navy.mil
Mon Dec 17 20:11:58 UTC 2007


yordy wrote, On 12/17/2007 02:21 PM:
> i can't get rsync running, i'm behind a proxy server, export the http_proxy (yum connect to repos fine) server variable and run:
> 
> 1- [ytornes at localhost i386]$ rsync -av --list-only --partial --stats download.fedora.redhat.com:pub/fedora/linux/updates/8/i386 ./
>     ssh: connect to host download.fedora.redhat.com port 22: No route to host
>     rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
>     rsync error: unexplained error (code 255) at io.c(453) [receiver=2.6.9]
> 
> 2- [ytornes at localhost i386]$ rsync -av --list-only --partial --stats download.fedora.redhat.com::pub/fedora/linux/updates/8/i386 ./
>     rsync: failed to connect to download.fedora.redhat.com: Connection refused (111)
>     rsync error: error in socket IO (code 10) at clientserver.c(104) [receiver=2.6.9]
> 
> rsync don't support http or ftp protocols
> 
> any idea?
> 

man wget

wget -a mlog --progress=dot:mega -v --mirror --no-parent \
  http://download.fedora.redhat.com/pub/fedora/linux/updates/8/i386

wget also works with ftp.

I kind of prefer:
wget -a mlog --progress=dot:mega -nv --mirror --no-parent \
  --no-host-directories --cut-dirs=1 \
  ftp://download.fedora.redhat.com/pub/fedora/linux/updates/8/i386

so the files get placed in ./fedora/linux/updates/8/i386 instead of 
./download.fedora.redhat.com/pub/fedora/linux/updates/8/i386
which can make life easier if you later desire to switch to using a mirror 
that is closer too you (or just plain faster).

Also I could be wrong, but i get the impression that wget gets better info 
about the need to update a local file from ftp than it does from http, so I 
use ftp when possible.

> ----- Mensaje original ----
> De: Axel Thimm <Axel.Thimm at ATrpms.net>
> Para: yordy <ymedians at yahoo.es>; For users of Fedora <fedora-list at redhat.com>
> Enviado: domingo, 16 de diciembre, 2007 4:29:02
> Asunto: Re: copying entirely repos
> 
> On Fri, Dec 14, 2007 at 06:33:39PM +0000, yordy wrote:
>> hi, i need to make a local copy of some repos (atrpms, updates,
>> freshrpms, etc.). i move for one place to another and some time
>> don't have an internet connection, i want update my local copies
>> when i reach an internet connection. how can i do that?, mirroring
>> those repos?
> 
> I would recommend using rsync.


-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter




More information about the users mailing list