script rsync to sincronize
BlueT
bluet at ubuntu.org.tw
Wed Oct 29 18:28:16 GMT 2008
Hello again, Tiago.
I run http://ftp.ubuntu-tw.org
and http://apt.ubuntu-tw.org
For my rsync scripts, are like the following.
_ubuntu-cd_ (releases):
#### Start ####
#!/bin/bash
RSYNCSOURCE=rsync://releases.ubuntu.com/releases
BASEDIR=/home/ftp/ubuntu-cd/
rsync -av --recursive --times --links --hard-links \
--stats --progress \
--exclude "Packages*" --exclude "Sources*" \
--exclude "Release*" --exclude "*dapper*" \
--exclude "*edgy*" --exclude "*breezy*"\
${RSYNCSOURCE} ${BASEDIR}
rsync -av --recursive --times --links --hard-links \
--stats --delete --delete-after --progress \
--exclude "project/trace/${HOSTNAME}" \
${RSYNCSOURCE} ${BASEDIR}
#### End ####
_cdimage_ (DVD and else):
#### Start ####
#!/bin/bash
RSYNCSOURCE=rsync://cdimage.ubuntu.com/cdimage
BASEDIR=/home/ftp/cdimage/
date;
rsync -av --recursive --times --links --hard-links \
--stats --progress \
--exclude "Packages*" --exclude "Sources*" \
--exclude "Release*" --exclude "*dapper*" \
--exclude "*edgy*" --exclude "*feisty*" \
--exclude "*breezy*" --exclude "*daily*" \
--exclude "dvd" --exclude "source" \
--exclude "livecd-base" \
${RSYNCSOURCE} ${BASEDIR}
date;
rsync -av --recursive --times --links --hard-links \
--stats --delete --delete-after --progress \
--exclude "project/trace/${HOSTNAME}" \
--exclude "*dapper*" --exclude "*edgy*" \
--exclude "*feisty*" --exclude "*breezy*" \
--exclude "*daily*" --exclude "dvd" \
--exclude "source" --exclude "livecd-base" \
${RSYNCSOURCE} ${BASEDIR}
date;
#### End ####
Best wishes,
BlueT, leader/founder/sponsor of Ubuntu at Taiwan.
http://www.ubuntu-tw.org
Tiago Santos wrote:
> Hello.
>
> I'm using the BlueT script. Thanks to all for the help on this but now i
> have another problem. The archive mirror is running and updating and is
> waiting to become a official mirror. Now i want to create a cd mirror to
> but i don't how to sync. I've been searching on the wiki but can't find
> anything. Sorry to be so annoying but i'm new on the usage of rsync.
>
> Thanks in advance
>
> Tiago Santos
>
>
>
More information about the ubuntu-mirrors
mailing list