[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: occasional error on ftp.cz.debian.org



Josip Rodin wrote:
You can optimize that further, by doing a two stage sync.
More exactly, like this:

  rsync --recursive --times --links --hard-links \
        --exclude "Packages*" --exclude "Sources*" \
        --exclude "Release*" --exclude "ls-lR*" \
        --verbose --stats \
        $FROM $TO > $LOGFILE 2>&1

  rsync --recursive --times --links --hard-links --max-delete=40000 \
        --delete --delete-after \
        --exclude "Archive-Update-in-Progress-${HOSTNAME}" \
        --exclude "project/trace/${HOSTNAME}" \
        --verbose --stats \
        $FROM $TO > $LOGFILE.2nd 2>&1

Why do you still use two stage rsync? AFAIK the same effect can be reached with options like --delete-after --delay-updates in one stage.

--
Olleg Samoylov

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


Reply to: