Here is what I do:
rsync everything
enter maintenance
rsync changes since first rsync
leave maintenance
The first rsync is syncing the mayor changes without locking the system. It can run a long time and that is fine.
But the second rsync should finish as quickly as possible and normally finds none or only a few changes. Yet since this are so many files it takes quite long.
Is there a trick I can use because I know I synced it just before?
Here the rsync flags I use:
rsync --partial --progress --delete --archive --verbose --compress --links --times
Best Answer
Some tips:
--numeric-ids
option to yourrsync
invocationfind <path> > /dev/null
some time before the maintenancersync
; this will preload the metadata caches on both nodes, greatly speeding uprsync
execution