Page 13 of 66 FirstFirst ... 311121314152363 ... LastLast
Results 121 to 130 of 659

Thread: [SOLVED] Yet Another Backup Script for Community Version

  1. #121
    Join Date
    Jan 2008
    Location
    Germany
    Posts
    83
    Rep Power
    7

    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 -

  2. #122
    Join Date
    Jan 2008
    Location
    Germany
    Posts
    83
    Rep Power
    7

    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 -

  3. #123
    Join Date
    Sep 2008
    Posts
    11
    Rep Power
    7

    Default

    Hello,
    Thanks for your fast reply.
    I have used the --INSTALL option
    Here is the log
    ./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 04:14 AM.

  4. #124
    Join Date
    Jan 2008
    Location
    Germany
    Posts
    83
    Rep Power
    7

    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 -

  5. #125
    Join Date
    Nov 2008
    Location
    RU
    Posts
    22
    Rep Power
    6

    Default

    Thanks for sharing this script. It's rather big comparing with others, but very useful and well commented.

  6. #126
    Join Date
    Sep 2008
    Posts
    11
    Rep Power
    7

    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.

  7. #127
    Join Date
    Sep 2008
    Posts
    11
    Rep Power
    7

    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

  8. #128
    Join Date
    Apr 2008
    Location
    Dubai, UAE
    Posts
    25
    Rep Power
    7

    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

  9. #129
    Join Date
    Jan 2006
    Posts
    15
    Rep Power
    9

    Default how to restore?

    Hi

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

    /Jesper Vels

  10. #130
    Join Date
    Jan 2008
    Location
    Germany
    Posts
    83
    Rep Power
    7

    Default

    Cheers for the suggestions, I will get down to coding asap!
    Motions of a day at work -

Similar Threads

  1. Zimbra Backup Script ... Small Problem
    By frankb in forum Administrators
    Replies: 12
    Last Post: 07-14-2008, 08:40 AM
  2. Debian - Upgrade from 4.5.6
    By magikman in forum Installation
    Replies: 1
    Last Post: 01-19-2008, 11:59 AM
  3. Backup script issues
    By SSS in forum Administrators
    Replies: 18
    Last Post: 12-03-2007, 08:56 AM
  4. 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
  5. [SOLVED] Simple backup question...
    By dameron in forum Administrators
    Replies: 3
    Last Post: 08-25-2007, 09:36 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
  •