How can I rsync this site successfully for updating my local rpm packages

Tony Dietrich td at transoft-adsl.demon.co.uk
Tue Feb 21 17:53:17 UTC 2006


On Tuesday 21 February 2006 15:44, Barry Yu wrote:
> I been trying to synchronize my /mnt/ms/fc4update folder with one of the
> sites in Fedora download mirror list but no luck, command I used is ; rsync
> --partial --timeout=300 -vprt --exclude debug/ \
>   rsync://ftp.ndlug.nd.edu/fedora-linux-core/updates/4 /mnt/ms/fc4update
>
>  And the result is like this;
>
>  receiving file list ... done
>  rsync: stat "/mnt/ms/fc4update/4/SRPMS" failed: No such file or directory
> (2) 4/SRPMS/
>  rsync: mkstemp "/mnt/ms/fc4update/4/SRPMS/.GFS-6.1.0-3.src.rpm.gxL1aQ"
> failed: No such file or directory (2) rsync: mkstemp
> "/mnt/ms/fc4update/4/SRPMS/.GFS-kernel-2.6.11.8-20050601.152643.FC4.14.src.
>rpm.P33hHe" failed: No such file or directory (2) rsync: mkstemp
> "/mnt/ms/fc4update/4/SRPMS/.GFS-kernel-2.6.11.8-20050601.152643.FC4.20.src.
>rpm.nUAxpF" failed: No such file or directory (2) rsync: mkstemp
> "/mnt/ms/fc4update/4/SRPMS/.HelixPlayer-1.0.6-1.fc4.2.src.rpm.djwbx8"
> failed: No such file or directory (2) (And many more like above, I have to
> press Ctrl+c to abort and got 2 lines like below) rsync error: received
> SIGUSR1 or SIGINT (code 20) at rsync.c(179) rsync error: received SIGUSR1
> or SIGINT (code 20) at rsync.c(179)
>
>  Am I doing anything wrong in the rsync command? How can I mirror a site
> for my local folder of rpm packages successfully? Thanks


If you are just trying to get the Updates, then the correct command is

rsync --partial --timeout=300  -vprt --exclude=debug/ \ 
rsync://ftp.ndlug.nd.edu/fedora-linux-core-updates/4/i386/\
/mnt/ms/fc4update/

Note the different source directory, and the terminating '/' on the URL's for 
both the source and destination directories.

Your command was picking up the entire directory for Fedora Base, including 
all the different versions.


-- 
Tony
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20060221/a229c77c/attachment-0001.sig>


More information about the fedora-list mailing list