Page 4 of 66 FirstFirst ... 234561454 ... LastLast
Results 31 to 40 of 659

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

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

    Red face

    Hi John!

    this is nothing serious... only a version difference between the ssh-keygen application on ubuntu 6.06 and 7.10.
    On 7.10 ssh-keygen by default creates a RSA2 key whereas on 6.06 it still wants the user to decide between RSA1, DSA or RSA2.

    I would go with the option rsa or dsa, but not with rsa1.
    the script has been updated with this option added to the #--- SSH REMOTE DR COPY ---# section.

    The answer to your question "will my backup file be copied to my remote backup server ?" when we have the ssh key generated and copied to the remote host and you have the DR COPY option set to yes. It will 'copy' the newly created archive and the corresponding md5 file to your remote server.

    heinzg

    P.S. I found another small bug in this part of the script (yes I fixed it...) Cheers
    Motions of a day at work -

  2. #32
    Join Date
    Dec 2007
    Location
    Belgium
    Posts
    85
    Rep Power
    7

    Default

    Heinzg,

    Thanks for the update. But where can I find the new script. When I look in WIKI I don't see any changes to the script!!!

    Greets
    John

  3. #33
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by jayel View Post
    Heinzg,

    Thanks for the update. But where can I find the new script. When I look in WIKI I don't see any changes to the script!!!
    There's a link to the current working version in the first post on this thread, hasn't that been updated?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  4. #34
    Join Date
    Dec 2007
    Location
    Belgium
    Posts
    85
    Rep Power
    7

    Default

    No Bill,

    The script is still the same : ssh-keygen (with no paramaters).

    Greets
    John

  5. #35
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by jayel View Post
    No Bill,

    The script is still the same : ssh-keygen (with no paramaters).

    Greets
    John
    Ah OK, I guess Heinzg will get round to it - good script isn't it?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  6. #36
    Join Date
    Dec 2007
    Location
    Belgium
    Posts
    85
    Rep Power
    7

    Default

    Yes,
    I like automatic scripts like that. last sunday my mailserver didn't work anymore after a upgrade, and my backup was not completed. So now I want a script that makes a backup on a remote disk.
    And Heinz had the solution.

    Indeed very nice scripting

    greets John

  7. #37
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by jayel View Post
    Yes,
    I like automatic scripts like that. last sunday my mailserver didn't work anymore after a upgrade, and my backup was not completed. So now I want a script that makes a backup on a remote disk.
    And Heinz had the solution.

    Indeed very nice scripting

    greets John
    You should find that your NE backup runs fine now that you've upgraded the RAM on your server. I'd suggest you use those for backup as they will give you more flexibility, if you still have problems with your backup routines then please file a support case so we can look at what's happening.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

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

    Default

    Hi!

    I have checked the download link and the current script there.

    I have also updated the wiki page, it now shows the latest script.
    P.S. I would like to put a link on the wiki page to the script download, but I am hit with the old SPAM rule. Can a wiki admin please add the link??

    Here is a direct link to it -> LINK

    Cheers
    heinzg
    Last edited by heinzg; 04-02-2008 at 07:58 AM. Reason: updated wiki
    Motions of a day at work -

  9. #39
    Join Date
    Mar 2008
    Posts
    10
    Rep Power
    7

    Default

    Hi,

    Thanks for the script!

    Just one comment: If the script is not run with the log redirection anytime then the log file is empty always and then the mail feature fails because the cat $LOG string is missing.
    Also mailing fails if the $EMAILCC field is empty. (since -c -s)

    Cheers.
    R.

  10. #40
    Join Date
    Apr 2008
    Location
    Dubai, UAE
    Posts
    25
    Rep Power
    7

    Default

    Quote Originally Posted by Raiky View Post

    Just one comment: If the script is not run with the log redirection anytime then the log file is empty always and then the mail feature fails because the cat $LOG string is missing. Also mailing fails if the $EMAILCC field is empty. (since -c -s)

    R.
    I'm having a couple of minor problems getting the script working 100% on a CentOS 5.x server and i'm wondering if this is what I'm seeing? (although I don't fully understand the above statement). I get the following error at the end of a FULL backup when the backup log is mailed.

    the following is visible in the shell:

    ./zmbac.sh: line 901: /opt/zimbra-backup-current/Backuplist-21-April-2008.txt.gz: Permission denied

    I *do* get an email from root with the log attached. In the email I get an additional line of information:

    /opt/zmbac.sh: line 901: /opt/zimbra-backup-dar/Backuplist-21-April-2008.txt.gz: Permission denied
    /usr/sbin/sendmail: No such file or directory

    Line 901 in the script (copied verbatim off the osoffice website) is:

    (cat $LOG; $UUENCODE "$ARCHIVEDIR"Backuplist-"$BACKUPDATE".txt.gz "$ARCHIVEDIR"Backuplist-"$BACKUPDATE".txt.gz) | mail -c $EMAILCC \
    -s "Zimbra Full Backup Log on `hostname --fqdn`" $EMAIL

    I've done some limited experimentation. In my filesystem I've linked /usr/bin/sendmail to /opt/zimbra/postfix/sbin/sendmail .. but it makes no difference. I've also removed/reinstalled the mailx package using Yum and I've tried altering ownership of /bin/mail from root:mail to root:root and giving it 755 permissions:

    [root@zim opt]# whereis mail
    mail: /bin/mail /etc/mail.rc /etc/mail /usr/lib/mail.tildehelp /usr/lib/mail.help /usr/share/man/man1/mail.1.gz

    [root@zim zimbra-backup-current]# ls -l /bin/mail
    -rwxr-xr-x 1 root root 82996 Jan 7 2007 /bin/mail

    but still it chucks the error..

    Any ideas? .. the script is otherwise awesome and I'm planning to use it to back up my Zimbra OSE installation to an NFS mounted location so the data is automatically stored off-box without the complication of an SCP transfer.

    Christian

    ps: I'd also like to make the following script enhancement suggestions:

    a) Email confirmation of successful DIFF backup, at the moment this is only done for FULL backups

    b) Option to specify the number of weeks to keep FULL backups in the TOO_MEDIA_DIR to prevent filling the backup-target filesystem

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
  •