Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Debian mirror on gentoo ??
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
garnie
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jan 2004
Posts: 108
Location: Vinderup, Denmark

PostPosted: Wed Jan 12, 2005 11:55 am    Post subject: Debian mirror on gentoo ?? Reply with quote

Hey

I need to set a debian mirror up on my gentoo server :oops: 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
View user's profile Send private message
expat_iain
Guru
Guru


Joined: 09 Jan 2004
Posts: 361
Location: Malta GC

PostPosted: Wed Jan 12, 2005 12:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
garnie
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jan 2004
Posts: 108
Location: Vinderup, Denmark

PostPosted: Wed Jan 12, 2005 12:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
expat_iain
Guru
Guru


Joined: 09 Jan 2004
Posts: 361
Location: Malta GC

PostPosted: Wed Jan 12, 2005 1:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
garnie
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jan 2004
Posts: 108
Location: Vinderup, Denmark

PostPosted: Thu Jan 13, 2005 7:10 am    Post subject: Reply with quote

Will that also keep it up to date ??
Back to top
View user's profile Send private message
expat_iain
Guru
Guru


Joined: 09 Jan 2004
Posts: 361
Location: Malta GC

PostPosted: Thu Jan 13, 2005 8:04 am    Post subject: Reply with quote

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
View user's profile Send private message
garnie
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jan 2004
Posts: 108
Location: Vinderup, Denmark

PostPosted: Thu Jan 13, 2005 9:29 am    Post subject: Reply with quote

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 :?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum