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 >