Disable user login for a few seconds ?

Reindl Harald h.reindl at thelounge.net
Fri Jul 4 10:02:03 UTC 2014



Am 04.07.2014 11:46, schrieb Florent B:
> Thank you very much Robert.
> 
> I also had a look at "dsync" tool. But I think it handles only mails
> directory, and not all user's home (my users's home contains indexes,
> Maildir and sieve directories)

rsync --force --delete-after --devices --specials -tPrlpogEAX /home/ root at new:/home/
stop services
rsync --force --delete-after --devices --specials -tPrlpogEAX /home/ root at new:/home/
start services

you have nearly zero downtime because rsync at the second
run only transfers changed / new files and building the filelist
is also much faster due OS caches




-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 246 bytes
Desc: OpenPGP digital signature
URL: <http://dovecot.org/pipermail/dovecot/attachments/20140704/5e116043/attachment.sig>


More information about the dovecot mailing list