Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-09-2010, 01:37 AM
Special Member
 
Posts: 119
Default [SOLVED] Multiple folder created in migration time (postRestURL)

I am using postRestURL method of restoring, My script is pasted below.

While i am restoring mails, Inbox , sent and all folders created repeated times, If number of mails in a folder exceeds 500 mails na, it will create inbox!1 , then if inbox!1 is full with 500 mails, its again create inbox!2 its going on. The same for all folders (sent,etc.,).

How can I fix this problem,

Script :

Code:
#!/bin/bash
ZHOME=/opt/zimbra
#!/bin/bash
ZHOME=/opt/zimbra
ZBACKUP=$ZHOME/backup/mailbox
#ZBACKUP=/opt/backup_restore/mailbox
ZCONFD=$ZHOME/conf
DATE=`date +"%a"`
#ZDUMPDIR=$ZBACKUP/$DATE
ZDUMPDIR=$ZBACKUP
ZMBOX=/opt/zimbra/bin/zmmailbox
if [ ! -d $ZDUMPDIR ]; then
echo "Backups do not exist !"
exit 255;
fi
for mbox in `zmprov -l gaa`
do
#       echo " Restoring files from backup $mbox ..."
#echo "$mbox"

if [ "$mbox" == "test@test.com" ]
then
  echo " Restoring files from backup $mbox ..."
  $ZMBOX -z -m $mbox postRestURL "//?fmt=zip&resolve=skip" $ZDUMPDIR/$mbox.zip
fi

#$ZMBOX -z -m $mbox postRestURL "//?fmt=zip&resolve=reset" $ZDUMPDIR/$mbox.zip
done

Please guide us ...

Thanks ...

Last edited by jayarajmohan; 12-09-2010 at 08:43 PM..
Reply With Quote
  #2 (permalink)  
Old 12-09-2010, 05:25 AM
Special Member
 
Posts: 119
Default

Is anybody face this problem, ?

Repeated creation of inbox as inbox!1, inbox!2, etc., sent!1, sent!2, etc., If any of this folder exceeds 500 mails, it will be created one more folder as next number.

I am using the above script for restoring the mails. please gude us to solve this ? we should be keep all mails in same folder as such in existing server.
Reply With Quote
  #3 (permalink)  
Old 12-09-2010, 05:38 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

Quote:
Originally Posted by jayarajmohan View Post
Is anybody face this problem, ?
I would guess not but 4hrs is rather a short time to wait for an answer. I'll also move this to the correct forum as it's nothing to do with Migration and you other question was nothing to do with Zimbra Desktop (I've also moved that).

Quote:
Originally Posted by jayarajmohan View Post
I am using the above script for restoring the mails. please gude us to solve this ? we should be keep all mails in same folder as such in existing server.
You haven't given much detail about what you did to backup your server nor where you're getting the email from when you do the 'restore'. Why are you doing it this way, are you following some backup method provided in the forums?
__________________
Regards


Bill
Reply With Quote
  #4 (permalink)  
Old 12-09-2010, 06:02 AM
Special Member
 
Posts: 119
Default

Backing up and restoring Zimbra (Open Source Version) - Zimbra :: Wiki

This steps i have followed for backup and restore.

Let me know your answer please
Reply With Quote
  #5 (permalink)  
Old 12-09-2010, 09:22 PM
Special Member
 
Posts: 119
Default

Now I found problem is in backup itself.

I have extract my backup folder. In that as well, many folder created named as inbox, inbox!1, inbox!1!1 , inbox!2 , etc.,

I was used zip format for backup, now i changed to tgz format. again the same problem.

What will be solution for this ?

after unzip that folder :

Briefcase Contacts.meta HMIS Junk.meta Openbravo - Training python.meta Tasks
Briefcase.meta Conversations HMIS.meta KGiSL Metropolis Openbravo - Training.meta resources Tasks.meta
Calendar Conversations.meta Inbox KGiSL Metropolis.meta OpenLDAP resources.meta Trash.meta
Calendar.meta Drafts Inbox!1 MAK Controls OpenLDAP.meta Rewards USER_ROOT.meta
Campus management System Drafts.meta Inbox!1!1 MAK Controls.meta pacs Rewards.meta zimbra
Campus management System.meta Electrical Inbox!1.meta Moodle pacs.meta ROOT.meta zimbra.meta
Chats Electrical.meta Inbox!2 Moodle.meta pending request Sent
Chats.meta Emailed Contacts Inbox!2.meta MRD pending request.meta Sent.meta
coimbatore corporation Emailed Contacts.meta Inbox.meta MRD.meta Persional sudhin
coimbatore corporation.meta ERP-OpenBravo jayarajmohan@central.kgisl.com.tgz Notebook Persional.meta sudhin.meta
Contacts ERP-OpenBravo.meta jayarajmohan@central.kgisl.com.zip Notebook.meta python Tags.meta

Thanks ..
Reply With Quote
  #6 (permalink)  
Old 12-14-2010, 12:55 AM
Special Member
 
Posts: 119
Default

hi phoenix,

Any response from zimbra team for this problem ?
Reply With Quote
  #7 (permalink)  
Old 12-21-2010, 10:49 PM
Special Member
 
Posts: 119
Default

We wrote a cell script to solve this problem. We moved all unwanted folder like inbox!1 and !2 to actual inbox folder. then delete unwanted folders. Again we zip the folder then its cleared

Thanks..
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.