Re: Syncing the mirrors

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



This order can be accomplished by first running rsync without the delete flag.
Then rsync over the DB.
Then re-run the original rsync with --delete or --delete-after.
You could also google for 'atomic rsync'
First hit is http://www.opensource.apple.com/source/rsync/rsync-35.2/rsync/support/atomic-rsync

As for push mirroring, http://www.debian.org/mirror/push_server is a
decent example
An identity file with
no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty,command="/path/to/mirror/script",from="IPADDRESS"
&"
Is fairly decent..

---
Lee Burton
lburton@xxxxxxxx
301 910 0246



On Tue, Feb 2, 2010 at 12:53, Damjan Georgievski <gdamjan@xxxxxxxxx> wrote:
>>> There's also the problem that some mirrors (most of the ones I've
>>> tried) sync the package database before syncing all the packages.
>>
>> Actually, syncing the db last is not going to improve things: if some
>> packages get deleted, they won't be found when updating against the
>> old db.
>
> - download new packages
> - update db
> - delete old packages
>
>
>
>
>
>
> --
> damjan
>


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux