for email in `cat /opt/zimbra/backup/new.txt`; do zmmailbox -z -m $email -t 0 getRestURL -u "https://127.0.0.1" '/?fmt=tgz' > $email.tgz |& tee -a export.log ; echo $email |& tee -a export.log ; done
for i in `cat /opt/zimbra/backup/user.txt`; do zmmailbox -z -m $i postRestURL -u "https://127.0.0.1" "/?fmt=tgz&resolve=skip" $i.tgz |& tee -a import.log ; echo "$i -- finished" |& tee -a import.log ; done
But, when I used zmmailbox to import mailbox on the new mail server, /opt/zimbra/store has size very high than /opt/zimbra/store of the old mail server. Here is more information:
The old mail server:
Code: Select all
[root@mail zimbra]# du -h --max-depth=1 |sort -rh
937G .
693G ./store
167G ./backup
52G ./data
8.2G ./db
6.9G ./index
6.0G ./log
2.5G ./zmstat
985M ./redolog
634M ./common
569M ./jetty_base
294M ./logger
107M ./lib
16M ./zimlets-deployed
8.2M ./conf
4.0M ./zimlets
2.5M ./docs
2.2M ./libexec
1.2M ./ssl
880K ./extensions-extra
604K ./bin
304K ./.saveconfig
12K ./.ssh
8.0K ./contrib
0 ./fbqueue
0 ./.cache
The New Mail Server:
Code: Select all
2.0T ./store
2.0T .
6.9G ./db
5.5G ./index
709M ./common
657M ./data
620M ./jetty_base
398M ./log
354M ./logger
246M ./lib
147M ./zmstat
65M ./keyview-10.13.0.0
25M ./zimlets-deployed
8.0M ./conf
3.4M ./zimlets
2.7M ./docs
2.4M ./libexec
1.9M ./zimlets-network
880K ./extensions-extra
712K ./bin
368K ./backup
188K ./redolog
180K ./ssl
112K ./convertd
44K ./extensions-network-extra
16K ./.ssh
8.0K ./contrib
0 ./.saveconfig
0 ./fbqueue
0 ./.cache
I checked size of each mailbox user on both server. It's the same.
Already delete cache of zmmailbox with zmprov fc all
Can anyone help me? what problem here? May it a bug of Zimbra?