View previous topic :: View next topic |
Author |
Message |
garnie Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 09 Jan 2004 Posts: 108 Location: Vinderup, Denmark
|
Posted: Wed Jan 12, 2005 11:55 am Post subject: Debian mirror on gentoo ?? |
|
|
Hey
I need to set a debian mirror up on my gentoo server it is already running an fully operational gentoo mirror, but setting this debian mirror up really sucks. The script form debian.org i could not get to work.
Then i tried to make it look like the gentoo script . . that wont work either
so i am quiet lost right now and it have to be done today by the end of work!
so i relly hope some one can help me
//Garnie |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
expat_iain Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 09 Jan 2004 Posts: 361 Location: Malta GC
|
Posted: Wed Jan 12, 2005 12:02 pm Post subject: |
|
|
Have you tried:
Code: | /usr/bin/rsync -auv --delete distro.ibiblio.org::distros/debian/ /local/path/ |
Post your current method of syncing and where/how it's failing.
Regs.
Iain. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
garnie Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 09 Jan 2004 Posts: 108 Location: Vinderup, Denmark
|
Posted: Wed Jan 12, 2005 12:49 pm Post subject: |
|
|
This is what's running now and not working
Code: |
#!/bin/bash
source /etc/rsync/debian-mirror.conf
echo "Started update at" `date` >> $0.log 2>&1
logger -t rsync "re-rsyncing the debian tree"
${RSYNC} ${OPTS} ${SRC} ${DST} >> $0.log 2>&1
echo "End: "`date` >> $0.log 2>&1
|
Code: |
# Gentoo source mirror config
RSYNC="/usr/bin/rsync"
OPTS="--quiet --recursive --links --perms --times --devices --delete --timeout=300"
SRC="rsync://ftp.dk.debian.org/debian/"
DST="/mirror/debian/"
|
Thats that |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
expat_iain Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 09 Jan 2004 Posts: 361 Location: Malta GC
|
Posted: Wed Jan 12, 2005 1:07 pm Post subject: |
|
|
Still not much help without the errors you are getting.
In any case, if you want to create a mirror, just run the following: Code: | /usr/bin/rsync -auv --delete distro.ibiblio.org::distros/debian/ /mirror/debian/ |
You can drop that into your /etc/crontab.
Regs.
Iain. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
garnie Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 09 Jan 2004 Posts: 108 Location: Vinderup, Denmark
|
Posted: Thu Jan 13, 2005 7:10 am Post subject: |
|
|
Will that also keep it up to date ?? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
expat_iain Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 09 Jan 2004 Posts: 361 Location: Malta GC
|
Posted: Thu Jan 13, 2005 8:04 am Post subject: |
|
|
garnie wrote: | Will that also keep it up to date ?? |
If you place a line in your /etc/crontab to run once per day, yes.
Regs.
Iain. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
garnie Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 09 Jan 2004 Posts: 108 Location: Vinderup, Denmark
|
Posted: Thu Jan 13, 2005 9:29 am Post subject: |
|
|
hmm it came with an error when i ran it
Code: | dists/sid/main/installer-hppa/20041118/doc/manual/en/
dists/sid/main/installer-hppa/20041118/doc/manual/es/
dists/sid/main/installer-hppa/20041118/doc/manual/fr/
dists/sid/main/installer-hppa/20041118/doc/manual/ja/
dists/sarge/Contents-powerpc.gz
dists/sarge/Contents-sparc.gz
rsync: read error: Connection reset by peer
rsync error: error in rsync protocol data stream (code 12) at io.c(201)
rsync: connection unexpectedly closed (3045229 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(189)
|
sounds weird . . the rsync for the gentoo mirror i running smoothly and perfect ![Confused :?](images/smiles/icon_confused.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|