script rsync to sincronize
BlueT
bluet at ubuntu.org.tw
Fri Oct 24 17:26:46 BST 2008
#!/bin/bash
RSYNCSOURCE=rsync://archive.ubuntu.com/ubuntu
BASEDIR=/home/ftp/ubuntu/
rsync -avz --progress --recursive --times --links --hard-links \
--stats \
--exclude "Packages*" --exclude "Sources*" \
--exclude "Release*" \
${RSYNCSOURCE} ${BASEDIR}
rsync -avz --recursive --times --links --hard-links \
--stats --delete --delete-after \
--exclude "project/trace/${HOSTNAME}" \
${RSYNCSOURCE} ${BASEDIR}
Ted Cabeen wrote:
> Install the debmirror package. It takes care of everything. Here's my
> command-line for updating/syncing the mirror (hardy/gutsy only):
>
> debmirror -h mirror.example.com --method=rsync -r :ubuntu -d gutsy -d
> hardy -d gutsy-backports -d gutsy-proposed -d gutsy-security -d
> gutsy-updates -d hardy-backports -d hardy-proposed -d hardy-security -d
> hardy-updates
> --section=main,multiverse,restricted,universe,main/debian-installer
> --arch=i386,amd64 --rsync-options="-aILq --partial --bwlimit=3000"
> --ignore-small-errors /path/to/your/ftp/directory
>
> --Ted
>
> Tiago Santos wrote:
>
>> Hello
>>
>> I'm building a Ubuntu mirror but i'm new with rsync. Can anyone tell me
>> the script to use to sync the mirror?
>>
>> Thanks
>>
>>
>
>
More information about the ubuntu-mirrors
mailing list