Page 23 of 66 FirstFirst ... 13212223242533 ... LastLast
Results 221 to 230 of 659

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

  1. #221
    Join Date
    Jun 2009
    Posts
    195
    Rep Power
    6

    Default

    Error Message installing version 8
    cat: /opt/zimbra/backup.week: Is a directory
    Required directory /tmp/fakebackup/ not found!

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

    Default

    Quote Originally Posted by borngunners View Post
    Error Message installing version 8
    cat: /opt/zimbra/backup.week: Is a directory
    Required directory /tmp/fakebackup/ not found!
    Hi,

    Have you checked that /tmp/fakebackup exists ?
    Please do a:
    ls -l /tmp/fakebackup
    To verify that the directory exists.

    Cheers
    Heinzg
    Motions of a day at work -

  3. #223
    Join Date
    Jan 2010
    Posts
    4
    Rep Power
    5

    Default

    Thanks your information.
    I am new in zimbra open source edition .
    I download zmbak_v.0.8.sh.gz and run full backup today. It looks great and will test diff backup in coming days.

    I am also learning recover procedure. Refer to dar command line,

    Is it using DAR to extract the backup location and then copy back to zimbra location??

    sorry I am not good in scripting.

    Thanks your help

  4. #224
    Join Date
    Oct 2009
    Posts
    7
    Rep Power
    6

    Default

    Hello

    I will try it with my 6.0.4 OSS/Debian 5.0.3 64bits but I will have a problem because a use 2 ISCSI partition witch are :

    /opt/zimbra for the system
    /opt/zimbra_store for the index and mail

    So how can I use the script ? 2 scripts for the 2 paths ?

    Thanks

  5. #225
    Join Date
    Oct 2009
    Posts
    7
    Rep Power
    6

    Default

    Oups !

    I find the solution => backup all /opt dir It's the most simple

    But I must modify the script, only these 2 lines ?

    Line 649 : nice -19 $RSYNC_BIN $RSYNC_OPTS $ZM_HOME $SYNC_DIR
    Line 690 : $RSYNC_BIN $RSYNC_OPTS $ZM_HOME $SYNC_DIR

    Is it correct ?
    Last edited by nicolas.scaut; 01-27-2010 at 06:32 AM.

  6. #226
    Join Date
    Jan 2008
    Location
    Germany
    Posts
    83
    Rep Power
    7

    Default

    Quote Originally Posted by nicolas.scaut View Post
    Oups !

    I find the solution => backup all /opt dir It's the most simple

    But I must modify the script, only these 2 lines ?

    Line 649 : nice -19 $RSYNC_BIN $RSYNC_OPTS $ZM_HOME $SYNC_DIR
    Line 690 : $RSYNC_BIN $RSYNC_OPTS $ZM_HOME $SYNC_DIR

    Is it correct ?
    Please See Below - nicolas.scaut is right about the edit. As I wrote zimbra home would be broken!
    This could warrant an script update for this use case...


    Hi,

    I am not sure why you wana change the above lines.
    All you have to do is set the correct root dir in the config section:

    Code:
    ZM_HOME=/opt/zimbra/    # where zimbra lives
    to say ->
    Code:
    ZM_HOME=/opt/    # where zimbra lives
    This is at line 71 of zmbak_v.0.8.sh script.

    If you other stuff installed under /opt please see the dar man page for option "-P --prune" to exclude the other unwanted dirs.
    Then you will have to add this to lines 750, 756, 770, 776 lines start with:
    Code:
    nice -19 $DAR_BIN
    like so:
    Code:
    nice -19 $DAR_BIN -P some_dir -P other_dir -s $ARCHIVESIZE -z$COMPRESS
    Cheers
    Heinzg
    Last edited by heinzg; 02-01-2010 at 10:32 AM. Reason: wrong info given
    Motions of a day at work -

  7. #227
    Join Date
    Oct 2009
    Posts
    7
    Rep Power
    6

    Default

    Hello

    Sure that It will not work because the script must use a lot of command that are in the folder : ZM_HOMEbin/

    I do a test with my solution and it seems to work

  8. #228
    Join Date
    Jan 2008
    Location
    Germany
    Posts
    83
    Rep Power
    7

    Default

    Hi nicolas.scaut,

    Yes you are right!
    Oh Dear me :-( i am sorry for the miss leading info

    I will update my post.

    Cheers
    Heinzg
    Motions of a day at work -

  9. #229
    Join Date
    Nov 2009
    Location
    France
    Posts
    21
    Rep Power
    5

    Default

    hello all,

    thank you for the script! I discovered it few days ago, because I use NE and OSS zimbras. I parsed quickly the code and played a little bit with backups.

    I have some remarks:
    - you could replace ps -u $ZM_USER | awk '{print $1}' | grep -v PID
    by a simple pgrep -u $ZM_USER
    idem for kill / pkill
    - no need to check openssh-server because it is required by zimbra when you install it
    - is it possible to mkdir /tmp/fakebackup if not exist
    - when I installed it the first time, install was not successful because of the "exit" when you choose to not install mailx. I was not on ubuntu and I press "n" to
    Code:
    echo "!! Only say yes if you are running Ubuntu!!"
    	echo
    	echo -n "install "y" or "n": "
    thank you again

  10. #230
    Join Date
    Apr 2009
    Posts
    25
    Rep Power
    6

    Default

    Hey, nice script. However run into a bit of a problem:

    Running CentOS 5.4 Zimbra 6.1.0

    [root@testzimbra backup]# ./zmback.sh -f
    ============================
    Fri Feb 12 09:10:55 MST 2010
    Performing FULL backup
    ============================
    Required directory /tmp/fakebackup/ not found!
    Null message body; hope that's ok
    [root@testzimbra backup]# vi zmback.sh
    [root@testzimbra backup]# mkdir /tmp/fakebackup
    [root@testzimbra backup]# vi zmback.sh
    [root@testzimbra backup]# ./zmback.sh -f
    ============================
    Fri Feb 12 09:11:37 MST 2010
    Performing FULL backup
    ============================
    Required directory /Backup/zimbra_dars/ not found!
    Null message body; hope that's ok
    [root@testzimbra backup]# mkdir /Backup/zimbra_dars
    mkdir: cannot create directory `/Backup/zimbra_dars': No such file or directory
    [root@testzimbra backup]# mkdir /backup/zimbra_dars
    [root@testzimbra backup]# vi zmback.sh
    [root@testzimbra backup]# mkdir /backup/burn
    [root@testzimbra backup]# ./zmback.sh -f
    ============================
    Fri Feb 12 09:12:24 MST 2010
    Performing FULL backup
    ============================
    full Backup started at: Fri Feb 12 09:12:24 MST 2010
    No old backups found
    Setting date & version Marker into /opt/zimbra/DATE_VERSION.txt
    Doing a hotsync of /opt/zimbra/ to /tmp/fakebackup/
    Disabling the Zimbra crontab...
    Stopping the Zimbra server...

    Host testzimbra.domain.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.
    Doing a fast cold sync...
    Reinstating Zimbra's crontab...
    Starting Zimbra...
    Host testzimbra.domain.com
    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.
    Service down time was - Hr:0 Min:6 Sec:43
    Running A hack... This one to check and start Stats subsystem
    Hack not needed Stats seems to be running fine...
    Writing a full backup: 06_ZimbraBackup_20100212_FULL
    into: /backup/zimbra_dars/ with file sizes of max: 4395M
    Saving Unencrtyped Archive...
    nice: invalid option -- s
    Try `nice --help' for more information.
    Dar had a problem!
    Null message body; hope that's ok
    [root@testzimbra backup]#

    Don't know what to do with that "nice: invalid option -- s"
    Any ideas?
    Thanks.

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
  •