On 09/19/2010 02:02 PM, Nathan Wayde wrote:
On 19/09/10 17:26, Matthew Gyurgyik wrote:
[...] As I posted on the forum... How hard is it to run rsync and look at the man page for rsync? rsync is the *only* command that is needed to create a local mirror.
We want to discourage this behavior as much as possible and it is really quite trivial to setup a mirror.
Setup a local mirror 1. rsync to local dir (look at the developer's wiki for mirrors and the proper rysnc arguments) 2. Set up webserver to serve local dir (if on a lan) 3. Set local mirror url in mirrorlist 4. Alternatively use Server = file:///mnt/media/mirror/$repo/os/x86_64 in pacman.conf or mirrorlist
That is all that has to be done.
If one is going to be creating a local mirror, he/she should really have this basic knowledge.
This elitist attitude is what pisses me off most about the Arch community but I must admit that you sir just took it to the next level. I'll answer your question anyway. It's pretty easy to create a local mirror. But in your haste to show off your holyness you forgot that the issue isn't about creating a mirror, it's about doing it properly without causing issues for upstream. Your idea about throwing an rsync command at is does things like sync the entire mirror(as-is recommended in the NewMirrors wiki) which I'm sure isn't what you actually want if you're going to create a local mirror and this will undoubtedly just waste bandwidth for the mirror, after-all, if it's the packages you want then why would you go and sync the ISOs or even the sources?
Now, I've stated my personal use-case and I' sure other have similar and other use-cases for having a local mirror, so I guess you have no argument against it other than it's something else that isn't useful to you so should be available to anyone else...
Now, If you think it's a good idea to keep trolling as opposed to go and read what the actual issues are then please continue you are free to do so.
You can use the --exclude-from=/path/to/excludefile.txt rsync argument - it exclude directories that you don't need. I have updated the wiki to include some basic information on setting up a local mirror. I believe it provides enough information to help someone set up local mirror while still holding them accountable for a certain amount of knowledge. Please take a look at it and improve it where you see fit. Since I have no need for a local mirror I might be over looking something. http://wiki.archlinux.org/index.php/Local_Mirror If you don't like the attitude don't use arch. Arch isn't here to babysit you and hold your hand. This is truly what sets arch apart. The users who have been here for 4-5+ years know exactly what I'm talking about. However, I digress as this isn't the time or place to discuss this.