zimbra single mail id restore
info@kaybouvet.com
for backup
mkdir info
/opt/zimbra/bin/zmmailbox -z -m info@kaybouvet.com getRestURL '/?fmt=tgz' > info@kaybouvet.com.tgz
Restoration for a single account
/opt/zimbra/bin/zmmailbox -z -m info@kaybouvet.com postRestURL "//?fmt=tgz&resolve=skip" info@kaybouvet.com.tgz
cpkulkarni@kaybouvet.com
for email in `cat /mnt/cpkulkarni/emails.txt`; do /opt/zimbra/bin/zmmailbox -z -m $email getRestURL '/?fmt=tgz' > $email.tgz ; echo $email ; done
for i in `cat /mnt/cpkulkarni/emails.txt`; do /opt/zimbra/bin/zmmailbox -z -m $i postRestURL "/?fmt=tgz&resolve=skip" /mnt/cpkulkarni/$i.tgz ; echo "$i -- finished "; done
Comments
Post a Comment