Page 9 of 66 FirstFirst ... 78910111959 ... LastLast
Results 81 to 90 of 659

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

  1. #81
    Join Date
    Jun 2008
    Posts
    62
    Rep Power
    7

    Default

    hi pals

    i have little bit knowledge in shell script.

    i want to run this script with out changing

    what is the backup location and file names.

    how to restore in future?

  2. #82
    Join Date
    Sep 2007
    Location
    Richmond, Ky
    Posts
    281
    Rep Power
    8

    Default

    How well will the script work with Fedora 7?

    dj

  3. #83
    Join Date
    Mar 2007
    Location
    London, UK
    Posts
    50
    Rep Power
    8

    Default

    Quote Originally Posted by dljordaneku View Post
    How well will the script work with Fedora 7?

    dj
    That's what I'm using it with. A full backup seems to work fine although the checksum creation gave the error I put in my last post. I'll know if the differentials work ok after today

  4. #84
    Join Date
    Mar 2007
    Location
    London, UK
    Posts
    50
    Rep Power
    8

    Default

    So this morning I come in and the follow was in /var/log/zim_backup.log

    Code:
          Diff Backup started at: 03:00
    /usr/local/bin/zmbac.sh: line 996: [: /opt/backup/zimbra_dars/30_Zimbra_Backup_28-July-2008_FULL: binary operator expected
    and /opt/backup/zimbra_dars/Backuplist-29-July-2008.txt shows

    Code:
    Aborting program. User refused to continue while asking: /opt/backup/zimbra_dars/30_Zimbra_Backup_29-July-2008_DIFF.1.dar is required for further operation, please provide the file.
    Any ideas??

  5. #85
    Join Date
    Jan 2008
    Location
    Germany
    Posts
    83
    Rep Power
    7

    Default

    Quote Originally Posted by The Fold View Post
    So this morning I come in and the follow was in /var/log/zim_backup.log

    Code:
          Diff Backup started at: 03:00
    /usr/local/bin/zmbac.sh: line 996: [: /opt/backup/zimbra_dars/30_Zimbra_Backup_28-July-2008_FULL: binary operator expected
    and /opt/backup/zimbra_dars/Backuplist-29-July-2008.txt shows

    Code:
    Aborting program. User refused to continue while asking: /opt/backup/zimbra_dars/30_Zimbra_Backup_29-July-2008_DIFF.1.dar is required for further operation, please provide the file.
    Any ideas??
    Hi there The Fold,

    post me the config section of the script.
    did you run the script with the install option?
    you on Fedora, where did you get dar from & what version?
    what is wrong with the md5checksum?

    I don't wana get your hopes up, I will do my best but Fedora7 is not really supported by me... to many odd thing in them oldhat boxes

    Cheers
    heinzg
    Motions of a day at work -

  6. #86
    Join Date
    Mar 2007
    Location
    London, UK
    Posts
    50
    Rep Power
    8

    Default

    Quote Originally Posted by heinzg View Post
    Hi there The Fold,

    post me the config section of the script.
    did you run the script with the install option?
    you on Fedora, where did you get dar from & what version?
    what is wrong with the md5checksum?

    I don't wana get your hopes up, I will do my best but Fedora7 is not really supported by me... to many odd thing in them oldhat boxes

    Cheers
    heinzg

    Hi heinz, thanks for taking a look.

    Here is the config section of the script. I did run the script with the install option.


    Code:
    #------- CONFIG -------#
    # Edit this part of the script to fit your needs.
    #
    
    #--- Directories ---#
    # Please add the trailing "/" to directories!
    ZM_HOME=/opt/zimbra/
    SYNC_DIR=/opt/fakebackup/
    ARCHIVEDIR=/opt/backup/zimbra_dars/
    TOO_MEDIA_DIR=/opt/backup/burn/
    
    #
    #--- PROGRAM OPTIONS ---#
    RSYNC_OPTS="-aHK --delete --exclude=*.pid"
    
    #
    #--- ARCHIVE NAMES ---#
    BACKUPNAME="Zimbra_Backup"
    BACKUPTYPE_F="FULL"     # name prefix to sort between full and diff backups
    BACKUPTYPE_D="DIFF"
    BACKUPDATE=`date +%d-%B-%Y`
    
    #
    #--- ARCHIVE SIZE ---#
    # storage media size
    ARCHIVESIZE="4395M"
    COMPRESS="9"            # valid answers are 1 - 9 ( 9 = best )
    
    CRYPT="yes"             # valid answers are "yes" or "no"
    PASSDIR=/etc/zmbac/
    PASSFILE="noread"
    
    #
    #--- EMAIL ADDRESS ---#
    EMAIL="thefold@mycompany.co.uk"
    EMAILCC=""
    LOG="/var/log/zim_backup.log"
    
    #--- SSH REMOTE DR COPY ---#
    # This option will secure copy you archives to a remote server via 'scp'
    DRCP="yes"              # valid answers are "yes" or "no"
    SSHUSER="root"
    SSHKEY="rsa"     # recommended answers are "rsa" or "dsa" but "rsa1" is also valid.
    REMOTEHOST="server2"
    REMOTEDIR="/sambashares/backup/zimbra/"
    Here is the info from dar, which I installed using the command 'yum install dar' as is the standard way on Fedora.

    Code:
     dar version 2.3.4, Copyright (C) 2002-2052 Denis Corbin
       Long options support       : YES
    
     Using libdar 4.3.0 built with compilation time options:
       Libz compression (gzip)    : YES
       Libbz2 compression (bzip2) : YES
       Strong encryption          : YES
       Extended Attributes support: NO
       Large files support (> 2GB): YES
       ext2fs NODUMP flag support : YES
       Special allocation scheme  : YES
       Integer size used          : unlimited
       Thread safe support        : YES
    
     compiled the Jul  4 2007 with GNUC version 4.1.2 20070502 (Red Hat 4.1.2-12)
     dar is part of the Disk ARchive suite (Release 2.3.4)
     dar comes with ABSOLUTELY NO WARRANTY; for details
     type `dar -W'. This is free software, and you are welcome
     to redistribute it under certain conditions; type `dar -L | more'
     for details.

    I'm not sure what the problem is with the md5checksum, as if I run the process manually it works fine. Just that the part of the script that said it had the error is where it is performing that function.

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

    Default

    Hi there!

    One thing i can point out is that you should put an email address in the CC field e.g. also use "thefold@mycompany.co.uk".

    Your version of dar is some what newer than my prod version, and there might be some options or format changes in the syntex.... who knows, I would need access to that version of the sw to debug:
    dar version 2.2.4, Copyright (C) 2002-2052 Denis Corbin
    Long options support : YES

    Using libdar 3.1.1 built with compilation time options:
    Libz compression (gzip) : YES
    Libbz2 compression (bzip2) : YES
    Strong encryption : YES
    Extended Attributes support: YES
    Large files support (> 2GB): YES
    ext2fs NODUMP flag support : YES
    Special allocation scheme : YES
    Integer size used : unlimited
    Thread safe support : YES

    compiled the Dec 19 2005 with GNUC version 4.0.3 20051204 (prerelease) (Ubuntu 4.0.2-5ubuntu2)
    dar is part of the Disk ARchive suite (Release 2.2.4)
    One more question, does /bin/sh point to dash or bash ?
    Best it should point to bash!

    Cheers
    heinz
    Motions of a day at work -

  8. #88
    Join Date
    Mar 2007
    Location
    London, UK
    Posts
    50
    Rep Power
    8

    Default

    Quote Originally Posted by heinzg View Post
    Hi there!

    One thing i can point out is that you should put an email address in the CC field e.g. also use "thefold@mycompany.co.uk".

    Your version of dar is some what newer than my prod version, and there might be some options or format changes in the syntex.... who knows, I would need access to that version of the sw to debug:


    One more question, does /bin/sh point to dash or bash ?
    Best it should point to bash!

    Cheers
    heinz
    /bin/sh point to bash

    I had some progress with this, I have managed to solve the problems where I was previously getting the error:

    Code:
        Diff Backup started at: 03:00
    /usr/local/bin/zmbac.sh: line 996: [: /opt/backup/zimbra_dars/30_Zimbra_Backup_28-July-2008_FULL: binary operator expected
    by changing the line (996) from

    Code:
    elif [ $CURRENTFULL ]
    to
    Code:
    elif [ "$CURRENTFULL" ]
    However I'm still getting the error

    Code:
    Writing a diff backup called:
                    30_Zimbra_Backup_31-July-2008_DIFF
    in: /opt/backup/zimbra_dars/ with file sizes of max: 4395M
    Archive is Encrypted
    Aborting program. User refused to continue while asking: /opt/backup/zimbra_dars/30_Zimbra_Backup_28-July-2008_FULL
    /opt/backup/zimbra_dars/30_Zimbra_Backup_28-July-2008_FULL
    /opt/backup/zimbra_dars/30_Zimbra_Backup_28-July-2008_FULL.1.dar is required for further operation, please provide the file.
    
    Dar had a problem!
    Which as you said is a dar problem. I will try disabling the encryption for the time being as trying to enter the key on the commandline doesn't seem to work for me.

  9. #89
    Join Date
    Jun 2008
    Posts
    19
    Rep Power
    7

    Default How to restore dar backup

    Hi

    Can any one post the command to restore DAR backup file file1.dar with encryption command option. Iam using open source backup script to take backup.

    Rajesh.S

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

    Default

    Quote Originally Posted by rajesh.s View Post
    Can any one post the command to restore DAR backup file file1.dar with encryption command option. Iam using open source backup script to take backup.
    I assume the script you're using is the one from this thread? This is a more appropriate place for your question.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

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
  •