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
  #121 (permalink)  
Old 03-11-2009, 03:29 PM
Loyal Member
 
Posts: 83
Default

Quote:
Originally Posted by 163828045 View Post
Hello,
My thanks to the author for sharing this script with us, is very handy.
I have installed it in ubuntu 8.04 LTS after executing the command
./zmbac.sh -f
Everything goes fine except for the last part when stuck in
Archive 10_Zimbra_Backup_11-March-2009_FULL requires a password:

Any ideias?
Thanks for your help.

Hi,

Can you post the output of the script, I might spot something...
did you run the INSTALL option? this looks like you are wanting to crypt the archive but don't have a passwd file for it yet.

cheers
heinzg
__________________
Motions of a day at work -
Reply With Quote
  #122 (permalink)  
Old 03-11-2009, 03:45 PM
Loyal Member
 
Posts: 83
Wink Call For Enhancement Requests

I see there are quite a few people still using this script, and there are some bugs that need killing, and the code need a lot of cleaning, and spring is in the air (well almost anyway...) !!

So here it is - CALL FOR ENHANCEMENT REQUESTS !!

Anyone need something that the script don't do at the moment?

Anyone going to share there fixes, to rid the script of a bug or two?

Cheers
heinzg
__________________
Motions of a day at work -
Reply With Quote
  #123 (permalink)  
Old 03-12-2009, 05:58 AM
Member
 
Posts: 11
Default

Hello,
Thanks for your fast reply.
I have used the --INSTALL option
Here is the log
Quote:
./zmbac.sh -f

Full Backup started at: 11:27

No old backups found

Setting date & version Marker into /opt/zimbra/DATE_VERSION.txt

Doing a hotsync of /opt/zimbra/ to /srv/backup/sync/
sync went ok

Stopping the Zimbra server

Deactivated zimbra's cronjobs

Host xxx.xxx.xxx
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 mailbox...Done
Stopping logger...Done
Stopping ldap...Done

Zimbra server has stopped

kill any left over zimbra procs
Nothing to kill

Doing a fast cold sync...
sync went ok

Reinstated zimbra's cronjobs

Host xxx.xxx.xxx
Starting ldap...Done.
Starting logger...Done.
Starting mailbox...Done.
Starting antispam...Done.
Starting antivirus...Done.
Starting snmp...Done.
Starting spell...Done.
Starting mta...Done.
Starting stats...Done.

Zimbra has started

Service down time was - Hr:0 Min:2 Sec:44

Running A hack... This one to check and start Stats subsystem
Hack not needed Stats seems to be running fine...

All services are running


Writing a full backup called:
10_Zimbra_Backup_12-March-2009_FULL
in: /srv/backup/dars/ with file sizes of max: 4395M
I have checked the file in /etc/zmbac/ with the name noread and its empty.

Thanks for your help.

Last edited by 163828045; 03-14-2009 at 05:14 AM..
Reply With Quote
  #124 (permalink)  
Old 03-12-2009, 12:49 PM
Loyal Member
 
Posts: 83
Default

Quote:
Originally Posted by 163828045 View Post
Hello,
Thanks for your fast reply.
I have used the --INSTALL option
Here is the log


I have checked the file in /etc/zmbac/ with the name noread and its empty.

Thanks for your help.
Hi,

In the install part of the script there is a option to generate that password for you in that file.

In fact all you have to do is to put a password in that file... then it should work.
All the install part does is creates a password in the following manner:
Code:
~$ openssl rand -base64 48 [ enter ]
rrPxLgnMhuq0OU8YrQiqSR42m5X3CVPNZiKnP+MVE2UhVwq22UO65jzvN6MWbNe5
The easy one liner to do this would be (this is with defaults in script settings):
Code:
openssl rand -base64 48 -out /etc/zmbac/noread
Hope that helps you out !
__________________
Motions of a day at work -
Reply With Quote
  #125 (permalink)  
Old 03-12-2009, 07:46 PM
Intermediate Member
 
Posts: 22
Default

Thanks for sharing this script. It's rather big comparing with others, but very useful and well commented.
Reply With Quote
  #126 (permalink)  
Old 03-13-2009, 08:17 AM
Member
 
Posts: 11
Default

Quote:
Originally Posted by heinzg View Post
Hi,

In the install part of the script there is a option to generate that password for you in that file.

In fact all you have to do is to put a password in that file... then it should work.
All the install part does is creates a password in the following manner:
Code:
~$ openssl rand -base64 48 [ enter ]
rrPxLgnMhuq0OU8YrQiqSR42m5X3CVPNZiKnP+MVE2UhVwq22UO65jzvN6MWbNe5
The easy one liner to do this would be (this is with defaults in script settings):
Code:
openssl rand -base64 48 -out /etc/zmbac/noread
Hope that helps you out !
Thanks a lot for you help, worked like a charm.
Reply With Quote
  #127 (permalink)  
Old 03-13-2009, 05:18 PM
Member
 
Posts: 11
Default

Hello once again,
At the end of backup i got this error,
./zmbac.sh: line 890: /srv/backup/dars/Backuplist-13-March-2009.txt.gz: Permission denied

Can this be related to email sending?

Thanks
Reply With Quote
  #128 (permalink)  
Old 03-16-2009, 10:54 PM
Active Member
 
Posts: 25
Default

re: Call for enhancements

a) Backup management e.g. keep 'x' days/weeks of backup files then auto-delete
b) Backup options e.g. nightly full backup. Many of us have small installs where this is perfectly feasible
c) Optional daily 'success' reports (for the paranoid)
d) Weekly summary report
e) Target storage location info in report e.g. available disk% free
f) Report alert if available target space is less than x% free
g) Support for CentOS install as well as Ubuntu
h) Official version control.. put some #comments at the top of the script
i) Restore options!
j) Status indications in the report, e.g. step 1 / 6 complete (v. useful when running a manual full backup from the command line)
k) Simplify the script - FULL and DIFF sections are essentially the same, use a variable to differentiate which option instead of giving me double the opportunity to stuff-up custom tweaks
l) Post the new script to a new thread, this one's getting a bit long!

I'm happy to test changes if you need willing victims.

Christian
Reply With Quote
  #129 (permalink)  
Old 03-25-2009, 03:07 AM
Intermediate Member
 
Posts: 15
Default how to restore?

Hi

How do I use the backup if it needed? (which method to restore?)

/Jesper Vels
Reply With Quote
  #130 (permalink)  
Old 03-25-2009, 10:33 AM
Loyal Member
 
Posts: 83
Default

Cheers for the suggestions, I will get down to coding asap!
__________________
Motions of a day at work -
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.