我打算将IMAP邮箱从Exchange 2013迁移到拥有超过10k用户的Cyrus。 我打算使用imapsync作为这个工具。
[root@centos65]# imapsync --version 1.644
我正在testing5个用户和134个邮件(大多数是明文+一个9MB附件)。
首先,我试着用下面的命令:
while read user pwd1 pwd2 do /usr/bin/imapsync \ --host1 exchange_svr \ --password1 "$pwd1" --user1 $user@domain \ --authmech1 "PLAIN" \ --host2 cyrus_svr --user2 $user@domain \ --ssl1 --subscribeall \ --authmech2 "PLAIN" \ --password2 "$pwd2" done < input
结束时间是1min 57sec 。
希望加快使用一些选项:
... /usr/bin/imapsync \ --nofoldersizes --nofoldersizesatend --buffersize 49152000 --usecache --idatefromheader \ ## <-- add these options --host1 exchange_svr \ ...
结束时间是1min 49sec秒,没有1min 49sec 。
我的input文件:
[email protected] pwd1 pwd2 [email protected] pwd1 pwd2 [email protected] pwd1 pwd2 [email protected] pwd1 pwd2 [email protected] pwd1 pwd2
我testing过运行多个脚本,每个脚本通过它处理一些文件夹(使用--exclude或--include ),但不是更快(实际上花了2分钟)。
你们有没有最好的做法与这样的用户/邮箱这个工具? 有什么build议让我做得更好?
有关imapsync文档中的大量迁移的常见问题: http ://imapsync.lamiral.info/FAQ.d/FAQ.Massive.txt
问:我必须使用400 TB的磁盘空间迁移500k用户。 我如何继续?
问:如何确定当前imapsync进程中的瓶颈?