Page 66 of 66 FirstFirst ... 1656646566
Results 651 to 659 of 659

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

  1. #651
    Join Date
    Mar 2009
    Posts
    91
    Rep Power
    6

    Default

    That was the case in my situation. I am by far not an expert, so I can't tell you what *will* happen in your case.

    Quote Originally Posted by kkimmell View Post
    So an install of bsd-mailx with whatever dependencies Ubuntu grabs will get me a working copy of mailx that in no way effects Zimbra's functionality nor the ability of the server to send and receive emails through Zimbra?

    Thanks,
    KK

  2. #652
    Join Date
    Jan 2008
    Location
    Rio de Janeiro, Brasil
    Posts
    6
    Rep Power
    7

    Default

    Quote Originally Posted by kkimmell View Post
    So an install of bsd-mailx with whatever dependencies Ubuntu grabs will get me a working copy of mailx that in no way effects Zimbra's functionality nor the ability of the server to send and receive emails through Zimbra?

    Thanks,
    KK
    I've been using a utility called ssmtp since the days of Debian Etch (4.0). I know it is in the EPEL repository for CentOS 6. Don't know if it exists for Ubuntu, but I can assure that it works flawlessly with this backup script!

  3. #653
    Join Date
    Jun 2009
    Posts
    10
    Rep Power
    6

    Default How you solve this problem?

    Quote Originally Posted by raid3868 View Post
    Hi tks,

    I have solve the problem and is very easy after all.

    very thanks.
    How you solve this problem?
    Thanks

  4. #654
    Join Date
    Feb 2014
    Posts
    2
    Rep Power
    1

    Default

    Hey everyone,

    i'm hoping my question isn't wrong in place here.

    So far I'm running a Zimbra Open Source v8.0.5 and downloaded the backup script. I modified the parameters at the top and when trying to run the script I get the following error:
    zmbak_v.0.8.sh: 138: [: Illegal number:
    zmbak_v.0.8.sh: 158: zmbak_v.0.8.sh: Syntax error: "(" unexpected

    When editing with nano:

    (137) ROOT_UID=0
    (138) if [ "$UID" -ne "$ROOT_UID" ]
    (139) then
    (140) echo "Run script as "root"."
    (141) echo ""
    (142)exit 1
    (143)fi

    and

    (155) STATPIDBASE="$ZM_HOME""zmstat/pid/" # Location of Zimbra's PID files
    (156) touch $LOG # Create log file
    (157) HOSTNAME=`hostname --fqdn` # Set hostname
    (158) STARTTIME=(`date +%s`) # Script Timer start

    I did a bit of shell scripting but can't spot the problem. Can anyone help me?

    Thanks in advance

  5. #655
    Join Date
    May 2007
    Location
    Zimbra
    Posts
    1,285
    Rep Power
    10

    Default

    Ubuntu defaults "sh" to /bin/dash which generally doesn't work with bash scripts. You may need to adjust it to use /bin/bash.
    Quanah Gibson-Mount
    Server Architect
    Zimbra, Inc
    --------------------
    Zimbra :: the leader in open source messaging and collaboration

  6. #656
    Join Date
    Feb 2014
    Posts
    2
    Rep Power
    1

    Default

    I'm already using bin/bash as my default shell...

  7. #657
    Join Date
    Mar 2009
    Posts
    91
    Rep Power
    6

    Default

    Quote Originally Posted by Mr.Twister View Post
    New version.

    # VERSION: .0.8.2 , proposed 2014-01-28 AVV
    #
    # - fixed bug with collecting to media
    Found another bug. Took me forever to find out why collecting to media wasn't working:

    if [ "$TMC_Enabled" = "yes" ]

    should be:

    if [ "$TMC_Enable" = "yes" ]

  8. #658
    Join Date
    Mar 2014
    Posts
    1
    Rep Power
    1

    Default

    Quote Originally Posted by raid3868 View Post
    Hi tks,

    I have solve the problem and is very easy after all.

    very thanks.
    I think the problem is solved just by checking the /etc/hosts entry and the IP address. If they do not match, you will receive this error.

  9. #659
    Join Date
    Apr 2014
    Posts
    1
    Rep Power
    1

    Default

    Have you been able to get this resolved?

    I am having the same issue where the cold rsync takes from 2 to 30 minutes.


    BillB



    Quote Originally Posted by kazooless View Post
    I recently upgraded from v6 to 8.06 and am having major performance issues. I've narrowed them down to running this backup (which I've been using for years now). I've updated my script to Mr. Twister's (immediately preceding this reply) zmbak_v.0.8.1.sh.txt and it helped a bit. However, when the rsync runs, even on the differential, it is taking an hour now when it used to take 2 to 3 minutes. This morning, after the diff job kicked off at 3am, it is still running 5 hours later and I can't even ssh in or get to the console. The hard drive is churning and I can still ping, so I am afraid to do a hard reset.

    I am not sure what to look at next. Is there a switch I can turn on in the script to make the logging more verbose? I am definitely skipping the mdb's in the initial copy.

    Thanks,

    kazooless

    LOG FILE:

Similar Threads

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