Re: copying entirely repos

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



yordy said the following on 12/14/2007 10:33 AM Pacific Time:
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?


1) Find a mirror that supports rsync: http://mirrors.fedoraproject.org/publiclist

2) See what is there: rsync -av rsync://mirror.hiwaay.net
or sometimes it is easier to view by navigating the http:// version of the repo, in this case http://mirror.hiwaay.net/pub/fedora/linux/

3) Make a local copy
rsync -av --progress rsync://mirror.hiwaay.net/fedora-linux/updates/8/x86_64/ /my/local/repodir

If you want your local repo to continue to look EXACTLY like the mirror
rsync -av --progress --delete rsync://mirror.hiwaay.net/fedora-linux/updates/8/x86_64/ /my/local/repodir

WARNING: speaking from experience, it is easy to get burned by the --delete argument. Be careful where you use it as you are telling rsync to make the specified target directory look exactly like the source and it will delete *any* files that it has to in order to achieve this. Thus, if you have added files of your own, etc. to the target they will get blown away.

One way to avoid getting in trouble is to add the -n option first to make sure it is doing what you want to do.

John

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux