Results 1 to 7 of 7

Thread: [SOLVED] Multiple folder created in migration time (postRestURL)

  1. #1
    jayarajmohan is offline Special Member
    Join Date
    Nov 2008
    Location
    Coimbatore,Tamil Nadu, India.
    Posts
    131
    Rep Power
    6

    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 09:43 PM.

  2. #2
    jayarajmohan is offline Special Member
    Join Date
    Nov 2008
    Location
    Coimbatore,Tamil Nadu, India.
    Posts
    131
    Rep Power
    6

    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.

  3. #3
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,501
    Rep Power
    57

    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


    Acompli: A new adventure for Co-Founder KevinH.

  4. #4
    jayarajmohan is offline Special Member
    Join Date
    Nov 2008
    Location
    Coimbatore,Tamil Nadu, India.
    Posts
    131
    Rep Power
    6

    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

  5. #5
    jayarajmohan is offline Special Member
    Join Date
    Nov 2008
    Location
    Coimbatore,Tamil Nadu, India.
    Posts
    131
    Rep Power
    6

    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 ..

  6. #6
    jayarajmohan is offline Special Member
    Join Date
    Nov 2008
    Location
    Coimbatore,Tamil Nadu, India.
    Posts
    131
    Rep Power
    6

    Default

    hi phoenix,

    Any response from zimbra team for this problem ?

  7. #7
    jayarajmohan is offline Special Member
    Join Date
    Nov 2008
    Location
    Coimbatore,Tamil Nadu, India.
    Posts
    131
    Rep Power
    6

    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..

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Outlook sync client
    By KevinH in forum Zimbra Connector for Outlook
    Replies: 600
    Last Post: 02-28-2011, 08:56 AM
  2. .pst migration issues
    By jimklein in forum Migration
    Replies: 13
    Last Post: 02-16-2009, 01:55 AM
  3. can't you help me
    By iwan siahaan in forum Administrators
    Replies: 6
    Last Post: 12-17-2007, 06:53 PM
  4. Replies: 3
    Last Post: 08-11-2007, 12:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •