Talk:HOWTO Local Rsync Mirror

From Gentoo Linux Wiki

Jump to: navigation, search

Nice how-to, I got mine all set up perfectly. However, could you show how to use cron to have the server do an emerge sync ever week?

30-aug-04: added packages/ to exclusion list. -- IvanSavcic

Contents

[edit] RSYNCOPTS and /etc/conf.d/rsyncd

Thanks a lot flybynite, you made it really easy.

Just one thing, to stick with the Gentoo init script convention, the rsyncd options should really be in /etc/conf.d/rsyncd

This file already contains RSYNC_OPTS, commented out. If you uncomment it and stick the options in there they will be picked up by start-stop-daemon.

Note the underscore, if you do this you'll have to change it in the init script.

it a wery good howto-do But where cane I find a howto-do Source mirror? I have learn a lot whit this how to do.

[edit] What's needed?

I'm not sure how many of these files are needed, at what Gentoo sets up by default, could someone look into this? MighMoS 15:30, 29 Apr 2005 (GMT)

[edit] rsyncd.conf

/etc/rsyncd.conf should be /etc/rsync/rsyncd.conf

I think too it's better, but rsyncd by default reads /etc/rsyncd.conf. So I've added the conf.d part. --knefas 07:41, 22 August 2005 (GMT)

[edit] permissions on the motd file

What permissions need to be set to the /etc/rsync and the /etc/rsync/rysncd.motd file for the motd file to work? -- byteshack

you have to uncomment the motd line in the rsyncd.conf. maybe this should be the default. you shouldnt copy-paste anything from the wiki, without knowing what you do.. read every line :P --Ribx 14:57, 21 December 2005 (GMT)


[edit] SERVER OUT OF DATE

in /usr/portage/metadata there are some time related files timestamp, timestamp.x and timestamp.chk if you are certain you rsync server's tree is up to date and your clients are getting the above message delete those files from the clients copy of the tree and try again. You might also check to see if time on the client is correct. I had to recreate the files after deleting them. Just use touch {filename}

[edit] Gentoo Documentation Now up to date

This part in the first section of the document:

"The howto at rsync is for OFFICIAL public mirrors! It can confuse a user wanting a LOCAL LAN mirror! "

is no longer accurate, as well as other warnings. A good local howto is now avaliable at http://www.gentoo.org/doc/en/rsync.xml in the gentoo documentation.

--66.253.36.140 23:55, 22 May 2006 (UTC)

Agreed. Gentoo Wiki shouldn't duplicate official Gentoo docs.

However, is it worth keeping the iptables section and pointer to HOWTO_Download_Cache_for_LAN-Http-Replicator ?

Aross 04:40, 20 June 2006 (UTC)

[edit] Sharing Packages?

Can we share packagesby leaving out packages/ from the exclude line, assuming the server builds packages with settings compatible with all the workstations?

70.66.55.112

Personal tools