Zimbra data files
I ran into a huge problem with file system and my fsck killed everything, but I managed to find zimbra files in lost+found.
I've Installed a new ubuntu 12 with zimbra on it, and all i need to know is what data files should I move in it from lost+found to have my mail, briefcase, settings, etc. back ?
Could you provide details like what zimbra version are you using and what steps landed you in this problem and what you are trying to achieve.
So the problem was with the /opt/zimbra/data/ldap/mdb/db/data.mdb file, as I could get its sparse file.
ls -lh /opt/zimbra/data/ldap/mdb/db/data.mdb gives 80G
du -sh /opt/zimbra/data/ldap/mdb/db/data.mdb gives 744K
The problem caused rsync, when it was trying to copy this file to the same file system which hadn't spare 80G on it.
So now to safely backup zimbra with rsync first you need to:
cp --sparse=always /opt/zimbra/data/ldap/mdb/db/data.mdb /opt/zimbra.bak/zimbra/data/ldap/mdb/db/
and after the sparse data.mdb file was created in backup you can call:
rsync -aSHK --delete /opt/zimbra /opt/zimbra.bak
This will make rsync sync only 744K but not 80G.
About restoring backup from zimbra 8.0.0 on ubuntu 10.04 to ubuntu 12.04:
1. Install and prepare system
2. Download fresh zimbra for ubuntu 12.04
3. Install zimbra
4. Delete or rename /opt/zimbra
5. Move your backup to /opt/zimbra
6. Run zimbra install again to update bins, libs, etc...
Hope this helps if anyone will have similar problems.