Page 4 of 7 FirstFirst ... 23456 ... LastLast
Results 31 to 40 of 65

Thread: Simple backup script for OSE version

  1. #31
    sanane is offline Intermediate Member
    Join Date
    Mar 2008
    Location
    Turkey/Bursa
    Posts
    20
    Rep Power
    7

    Default how to restore

    hi, I'm new in Zimbra.
    How can I restore Zimbra after using your script?
    thanks...

  2. #32
    ArcaneMagus's Avatar
    ArcaneMagus is offline Moderator
    Join Date
    Feb 2007
    Location
    Portland, OR
    Posts
    1,147
    Rep Power
    10

    Default

    Quote Originally Posted by sanane View Post
    hi, I'm new in Zimbra.
    How can I restore Zimbra after using your script?
    thanks...
    Open Source Edition Backup Procedure - Zimbra :: Wiki

  3. #33
    soulskater's Avatar
    soulskater is offline Active Member
    Join Date
    Jan 2008
    Location
    Sweden
    Posts
    47
    Rep Power
    7

    Default

    I have actually followed the one ArcaneMagus points to with good results.

    Since my diff at the moment basically is a full backup just follow the wiki and you should get your server up and running again.

    But beware i'm about to change the diff backup in near future and that puts more demand on how backups are done, but this i will tell and show on my blog when i have updated the script.

    Good luck and don't give up if you cannot get the restore to work the first time, sometime it doesn't work directly, but have faith.

    /Marcus
    Systems Specialist
    openSUSE Ambassador in Sweden
    Visit my blogs at www.osource.se

  4. #34
    soulskater's Avatar
    soulskater is offline Active Member
    Join Date
    Jan 2008
    Location
    Sweden
    Posts
    47
    Rep Power
    7

    Default

    Hi

    I just want to inform you that i have released a new version of this script with quite a few improvements, especially on the differential backup options.

    You can find the latest version of this script here: oSource.se Development

    Thanks to all of you that have been using my script in the past and i hope that this new version will fit into your open source agenda.
    Systems Specialist
    openSUSE Ambassador in Sweden
    Visit my blogs at www.osource.se

  5. #35
    Himanshu is offline Advanced Member
    Join Date
    Jan 2008
    Posts
    217
    Rep Power
    7

    Default

    Quote Originally Posted by soulskater View Post
    Hi

    I just want to inform you that i have released a new version of this script with quite a few improvements, especially on the differential backup options.

    You can find the latest version of this script here: oSource.se Development

    Thanks to all of you that have been using my script in the past and i hope that this new version will fit into your open source agenda.
    Running this Script Gave Me

    ./oZimbraBackup.sh
    : bad interpreter: No such file or directory

  6. #36
    soulskater's Avatar
    soulskater is offline Active Member
    Join Date
    Jan 2008
    Location
    Sweden
    Posts
    47
    Rep Power
    7

    Default

    Hi.

    Thanks for your reply, this is fixed now so if you download it again it should work for you.

    Somehow gedit keeps on changing the format of the file to a windows line break format.

    I will check with the gedit guys about this behavior.

    Sorry for the inconvenience this have caused.
    Systems Specialist
    openSUSE Ambassador in Sweden
    Visit my blogs at www.osource.se

  7. #37
    Himanshu is offline Advanced Member
    Join Date
    Jan 2008
    Posts
    217
    Rep Power
    7

    Default

    Ok . Thanks...

  8. #38
    secnix is offline Active Member
    Join Date
    Mar 2009
    Posts
    28
    Rep Power
    6

    Default

    Hi,

    I tried to run the script on ZCS 6.0.12 (CentOS 5.3 i386), the script ran well, but the logger service didn't start until I manually run the command zmcontrol start again. It happened with both full and diff backup.

    Code:
    [zimbra@mail backup]$ zmcontrol status
    Host mail.test.com
            antispam                Running
            antivirus               Running
            ldap                    Running
            logger                  Stopped
                    zmlogswatchctl is not running
            mailbox                 Running
            memcached               Running
            mta                     Running
            snmp                    Stopped
                    zmswatch is not running.
            spell                   Running
            stats                   Running
    [zimbra@mail backup]$ zmcontrol start
    Host mail.test.com
            Starting logger...Done.
            Starting mailbox...Done.
            Starting memcached...Done.
            Starting antispam...Done.
            Starting antivirus...Done.
            Starting snmp...Done.
            Starting spell...Done.
            Starting mta...Done.
            Starting stats...Done.
    And here's the backup log file:
    Code:
    -------------------------------------------------------
    Backup Started: 2011-04-13 13:01:11 Type: --full
    2011-04-13 13:07:33 - Zimbra services stopping...
    Host mail.test.com
    	Stopping stats...Done.
    	Stopping mta...Done.
    	Stopping spell...Done.
    	Stopping snmp...Done.
    	Stopping archiving...Done.
    	Stopping antivirus...Done.
    	Stopping antispam...Done.
    	Stopping imapproxy...Done.
    	Stopping memcached...Done.
    	Stopping mailbox...Done.
    	Stopping logger...Done.
    	Stopping ldap...Done.
    2011-04-13 13:08:25 - Zimbra services stopped.
    2011-04-13 13:09:02 - Zimbra services starting...
    Host mail.test.com
    	Starting ldap...Done.
    	Starting logger...Failed.
    Starting logswatch...failed.
    
    
    	Starting mailbox...Done.
    	Starting memcached...Done.
    	Starting antispam...Done.
    	Starting antivirus...Done.
    	Starting snmp...Failed.
    Starting swatch...failed.
    
    
    	Starting spell...Done.
    	Starting mta...Done.
    	Starting stats...Done.
    2011-04-13 13:13:07 - Zimbra services started.
    Backup Finished: 2011-04-13 13:18:52 Type: --full
    -------------------------------------------------------
    Code:
    -------------------------------------------------------
    Backup Started: 2011-04-13 14:40:01 Type: --diff
    2011-04-13 14:41:09 - Zimbra services stopping...
    Host mail.test.com
    	Stopping stats...Done.
    	Stopping mta...Done.
    	Stopping spell...Done.
    	Stopping snmp...Done.
    	Stopping archiving...Done.
    	Stopping antivirus...Done.
    	Stopping antispam...Done.
    	Stopping imapproxy...Done.
    	Stopping memcached...Done.
    	Stopping mailbox...Done.
    	Stopping logger...Done.
    	Stopping ldap...Done.
    2011-04-13 14:41:54 - Zimbra services stopped.
    2011-04-13 14:42:31 - Zimbra services starting...
    Host mail.test.com
    	Starting ldap...Done.
    	Starting logger...Failed.
    Starting logswatch...failed.
    
    
    	Starting mailbox...Done.
    	Starting memcached...Done.
    	Starting antispam...Done.
    	Starting antivirus...Done.
    	Starting snmp...Done.
    	Starting spell...Done.
    	Starting mta...Done.
    	Starting stats...Done.
    Host mail.test.com
    	Starting logger...Failed.
    Starting logswatch...failed.
    
    
    	Starting mailbox...Done.
    	Starting memcached...Done.
    	Starting antispam...Done.
    	Starting antivirus...Done.
    	Starting snmp...Done.
    	Starting spell...Done.
    	Starting mta...Done.
    	Starting stats...Done.
    2011-04-13 14:48:44 - Zimbra services started.
    Backup Finished: 2011-04-13 14:49:23 Type: --diff
    -------------------------------------------------------
    Please help.

    Thanks,
    SN

  9. #39
    secnix is offline Active Member
    Join Date
    Mar 2009
    Posts
    28
    Rep Power
    6

    Default

    Hi,

    The script works now when I modify the zimbra start function below
    Code:
    zimbra_start() {
    if [ "$2" = "--no-start" ]
    then
      # If --no-start is set ignore starting Zimbra
      echo "`date "+%Y-%m-%d %H:%M:%S"` - Zimbra services not starting, --no-start is set." >> $ZimLogFile
      echo "Zimbra services not starting, --no-start is set."
    else
     # Starting Zimbra
     if [ $ZimLogEnable = 'yes' ]
      then
       # Sending task start time to log
       echo "`date "+%Y-%m-%d %H:%M:%S"` - Zimbra services starting..." >> $ZimLogFile
       
       # Starting Zimbra
       sudo -u zimbra /opt/zimbra/bin/zmcontrol start  >> $ZimLogFile
       
       # Send task stop time to log
       echo "`date "+%Y-%m-%d %H:%M:%S"` - Zimbra services started." >> $ZimLogFile
    
      else
    
       # Starting Zimbra
       sudo -u zimbra /opt/zimbra/bin/zmcontrol start
    
      fi
    fi
    }
    I replace all the command
    Code:
    sudo -u zimbra /opt/zimbra/bin/zmcontrol start
    with the command
    Code:
    su zimbra -c "zmcontrol start"
    and now the logger service can start successfully after the backup occurs. I'm not sure why, because I'm not good at Linux :P. But it works for me although both commands do look the same .

    Thanks anyway,
    SN

  10. #40
    soulskater's Avatar
    soulskater is offline Active Member
    Join Date
    Jan 2008
    Location
    Sweden
    Posts
    47
    Rep Power
    7

    Default

    Hi

    Thanks for your reply, it seems strange that the script didn't work out of the box for you and ľm glad you found a way to make it work.

    I will look into this.

Page 4 of 7 FirstFirst ... 23456 ... LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 658
    Last Post: 04-04-2014, 09:01 AM
  2. Zimbra Backup Script ... Small Problem
    By frankb in forum Administrators
    Replies: 12
    Last Post: 07-14-2008, 08:40 AM
  3. Debian - Upgrade from 4.5.6
    By magikman in forum Installation
    Replies: 1
    Last Post: 01-19-2008, 12:59 PM
  4. Backup script issues
    By SSS in forum Administrators
    Replies: 18
    Last Post: 12-03-2007, 09:56 AM
  5. 4.0.4 to 4.5.6 upgrade failed in network edition
    By chenthil in forum Administrators
    Replies: 1
    Last Post: 08-27-2007, 09:36 AM

Posting Permissions

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