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
  #31 (permalink)  
Old 08-21-2008, 12:38 AM
Intermediate Member
 
Posts: 20
Default how to restore

hi, I'm new in Zimbra.
How can I restore Zimbra after using your script?
thanks...
Reply With Quote
  #32 (permalink)  
Old 08-21-2008, 08:55 AM
Moderator
 
Posts: 1,147
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
Reply With Quote
  #33 (permalink)  
Old 08-24-2008, 10:43 AM
Active Member
 
Posts: 47
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
Reply With Quote
  #34 (permalink)  
Old 06-15-2010, 10:15 AM
Active Member
 
Posts: 47
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
Reply With Quote
  #35 (permalink)  
Old 06-15-2010, 02:50 PM
Special Member
 
Posts: 139
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
Reply With Quote
  #36 (permalink)  
Old 06-16-2010, 02:20 AM
Active Member
 
Posts: 47
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
Reply With Quote
  #37 (permalink)  
Old 06-16-2010, 03:35 AM
Special Member
 
Posts: 139
Default

Ok . Thanks...
Reply With Quote
  #38 (permalink)  
Old 04-13-2011, 03:12 PM
Active Member
 
Posts: 28
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
Reply With Quote
  #39 (permalink)  
Old 04-13-2011, 04:44 PM
Active Member
 
Posts: 28
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
Reply With Quote
  #40 (permalink)  
Old 04-16-2011, 01:37 PM
Active Member
 
Posts: 47
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.
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.