Page 10 of 22 FirstFirst ... 8910111220 ... LastLast
Results 91 to 100 of 211

Thread: Full Server Backup and Restore of “open source version”

  1. #91
    czaveri's Avatar
    czaveri is offline Former Zimbran
    Join Date
    Feb 2006
    Location
    Pune, India
    Posts
    294
    Rep Power
    9

    Default

    Hi Dirk,

    Thanks for your really brave efforts

    You can install the Perl modules like this:

    Code:
    perl -MCPAN -e 'install Some::Module'
    (where Some::Module is the name of the missing module)

    In your case, currently, it is Proc::ProcessTable, so the command will be:

    Code:
    perl -MCPAN -e 'install Proc::ProcessTable'
    If you have not installed Perl modules using cpan earlier, you will come across an interactive session wherein you will be asked a few simple questions. Once you answer these questions, cpan will download the required module and install it on your system.

    After Proc::ProcessTable is installed, you should try to run the script again when, if any other module is missing, it will show a similar error as you got - with the name of missing module.

    Once all modules are installed, this script should run.

    EDIT: To check if the module exists, do this:

    Code:
    perl -e 'use Some::Module'
    If it gives out nothing. The module exists.
    If the module does not exist, it will give out the same kind of error, you got above.

    All the best and thanks,
    Last edited by czaveri; 09-20-2006 at 08:01 AM.
    Regards,

    Chintan Zaveri
    (Yet another ZIMBRAN!)

    "Dhundhne par Bhagwan bhi ..."

  2. #92
    czaveri's Avatar
    czaveri is offline Former Zimbran
    Join Date
    Feb 2006
    Location
    Pune, India
    Posts
    294
    Rep Power
    9

    Default Semi-Hot Backup

    Here is a code that works! But restoration is still not worked out.

    Comments?

    Notes:
    1. I am currently dumping LDAP data in XML files, so could be ok for few accounts (perhaps <100-150) but am considering the change to using SQLite.
    2. I am currently stopping and starting LDAP for backing it up, and looking for other alternatives. Suggestions? (I am aware of slapcat, but that would also require ldap stopped).
    3. Am I backing up the correct directory for LDAP?
    4. I am assuming that if I stop LDAP, no accounts can be created at that time. If no accounts are created, no entries are made in the 'zimbra' database. At the time when LDAP is stopped, I backup 'zimbra' database. (Not the 'mailbox$id' databases). So, I believe, the data in LDAP will be in sync with data in 'zimbra' database. Am I right/wrong in assuming so?

    Thanks,

    P.S. Rename the file extension from "txt" to "pl".
    Attached Files Attached Files
    Last edited by czaveri; 09-20-2006 at 11:49 AM. Reason: I had left my email address in the email address field - removed it
    Regards,

    Chintan Zaveri
    (Yet another ZIMBRAN!)

    "Dhundhne par Bhagwan bhi ..."

  3. #93
    Dirk's Avatar
    Dirk is offline Moderator
    Join Date
    May 2006
    Location
    England.
    Posts
    927
    Rep Power
    10

    Default

    Right, it took a while to get the install to work, it kept complaining about the program CC not being installed. Eventually though, I got it all sorted and installed the needed modules, so now when the script executes, the help text is displayed. Cool. Time to test

    Command executed with /opt/zimbra/zimbraColdBackup --confirm
    it's in progress now and may take a while as this system is a little slow, I assume I should file a copy of the zimbra folder in /backup if it's worked correctly, and an email from the system telling me the same.

    I'll post back with the results.

  4. #94
    Dirk's Avatar
    Dirk is offline Moderator
    Join Date
    May 2006
    Location
    England.
    Posts
    927
    Rep Power
    10

    Default

    Looks to be a sucess
    I didnt get the email notification though, and yes, I did set the entries at the top of the script to provide the address to send to and the send yes/no flag. Though I'm not sure how the script can send a message if the zimbra services are stopped.

    On the whole though, it looks great. I'll set up a task to run this every few days and job done. Thanks for your efforts on this Czaveri, I look forward to the next version!

  5. #95
    czaveri's Avatar
    czaveri is offline Former Zimbran
    Join Date
    Feb 2006
    Location
    Pune, India
    Posts
    294
    Rep Power
    9

    Default

    Thanks Dirk,

    If it works for you, you can also try an experiment with the Restoration.

    su - zimbra -c 'zmcontrol stop'
    ( wait for 10 - 15 seconds)
    kill -9 `ps -U zimbra|grep [0-9]|awk '{print $1}'` > /dev/null
    (It would be better if you can simply kill with the kill command directly - the above command must be used only if kill won't kill)
    mv /opt/zimbra /opt/zimbra_orig
    mv /backup/the_backed_up_directory_name /opt/zimbra
    su - zimbra -c 'zmcontrol start'
    Last edited by czaveri; 09-20-2006 at 12:43 PM.
    Regards,

    Chintan Zaveri
    (Yet another ZIMBRAN!)

    "Dhundhne par Bhagwan bhi ..."

  6. #96
    czaveri's Avatar
    czaveri is offline Former Zimbran
    Join Date
    Feb 2006
    Location
    Pune, India
    Posts
    294
    Rep Power
    9

    Default

    I am really glad it worked!

    You should get a notification in another 5 mins. (The script uses Mail::Mailer module, which in turn, uses 'sendmail' on your system to send email. If it cannot deliver immediately - it will try again after sometime).

    Please let me know if it won't arrive.

    Thanks and regards,
    Last edited by czaveri; 09-20-2006 at 01:18 PM.
    Regards,

    Chintan Zaveri
    (Yet another ZIMBRAN!)

    "Dhundhne par Bhagwan bhi ..."

  7. #97
    Dirk's Avatar
    Dirk is offline Moderator
    Join Date
    May 2006
    Location
    England.
    Posts
    927
    Rep Power
    10

    Default

    The report email never did arrive. I'll be checking this script out on another installation shortly and see how that goes. In the meantime, which logfile, if any, may this have hit so I can see what happened?

  8. #98
    kechols is offline Senior Member
    Join Date
    Jun 2006
    Posts
    72
    Rep Power
    9

    Default

    I'm guessing it may not ever arrive due to /usr/sbin/sendmail being linked to /opt/zimbra/postfix/sbin/sendmail this is on a SuseEL install. And due to zimbra running SMTP asking sendmail to send it could cause problems since port 25 will be in use when sendmail tries to deliver the message to zimbra.
    The only other way around this I can see is restart zimbra, sleep 5 -10 minutes then issue the mail command.
    I could be entirely wrong on this (and it wouldn't surprise me if i were...) so take it with a grain of salt.

  9. #99
    czaveri's Avatar
    czaveri is offline Former Zimbran
    Join Date
    Feb 2006
    Location
    Pune, India
    Posts
    294
    Rep Power
    9

    Default

    Hello Dirk,

    I am sorry, couldn't reply earlier, I was on a short vacation last few days...

    Sendmail writes logs in /var/log/maillog.

    I wasn't aware, that the system sendmail binary is linked to /opt/zimbra/postfix/sbin/sendmail on a SuSE EL system.

    (For me it works perfect on a CentOS 4.x)

    What kechols says, could be one option, ...

    I will play with this for sometime and come back - with some idea.

    Sincerely,
    Regards,

    Chintan Zaveri
    (Yet another ZIMBRAN!)

    "Dhundhne par Bhagwan bhi ..."

  10. #100
    Shurik is offline Member
    Join Date
    Aug 2006
    Posts
    12
    Rep Power
    9

    Default solid backup procedure

    Has anyone figured out a solid way to backup open source zimbra w. out shutting the services down? we would really like to use zimbra, but due to a high volume of incoming emails at night, we can't afford to shut it down for backup because it will take at least 2 hours of down time. Please help me out w. that if you have a solution that you deployed in to production.
    Or... is there a way to shut it down for backup and still have incoming emails get trapped somewhere for delivery?
    Thank you.
    Last edited by Shurik; 09-27-2006 at 01:29 PM.

Page 10 of 22 FirstFirst ... 8910111220 ... LastLast

LinkBacks (?)

  1. 11-14-2007, 01:09 AM
  2. 08-13-2007, 04:01 AM
  3. 07-31-2007, 09:37 AM
  4. 06-08-2007, 10:09 AM
  5. 05-31-2007, 01:44 PM

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. mailbox backup & restore on open source version
    By Artturi in forum Administrators
    Replies: 3
    Last Post: 07-30-2010, 04:26 PM
  2. Restore single account failed from full backup
    By fmodola in forum Administrators
    Replies: 4
    Last Post: 06-20-2007, 05:27 AM
  3. 3 testing: LDAP: 389 Failed when restore zimbra
    By victorLeong in forum Administrators
    Replies: 15
    Last Post: 05-24-2007, 06:45 AM
  4. copying only last full backup to store offsite
    By riccadus in forum Administrators
    Replies: 0
    Last Post: 01-11-2007, 01:29 AM
  5. Zimbra Full Backup and Restore???
    By jgao in forum Administrators
    Replies: 3
    Last Post: 01-19-2006, 01:34 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
  •