Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
 
Go Back   Zimbra - Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra - Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Display Modes
  #81 (permalink)  
Old 07-28-2008, 05:07 AM
Senior Member
 
Posts: 62
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?
Reply With Quote
  #82 (permalink)  
Old 07-28-2008, 09:15 AM
Advanced Member
 
Posts: 244
Default

How well will the script work with Fedora 7?

dj
Reply With Quote
  #83 (permalink)  
Old 07-28-2008, 09:23 AM
Active Member
 
Posts: 49
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
Reply With Quote
  #84 (permalink)  
Old 07-29-2008, 02:57 AM
Active Member
 
Posts: 49
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??
Reply With Quote
  #85 (permalink)  
Old 07-29-2008, 10:06 AM
Senior Member
 
Posts: 66
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 -
Reply With Quote
  #86 (permalink)  
Old 07-30-2008, 03:02 AM
Active Member
 
Posts: 49
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.
Reply With Quote
  #87 (permalink)  
Old 07-30-2008, 12:23 PM
Senior Member
 
Posts: 66
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:
Quote:
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 -
Reply With Quote
  #88 (permalink)  
Old 07-31-2008, 08:17 AM
Active Member
 
Posts: 49
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.
Reply With Quote
  #89 (permalink)  
Old 08-04-2008, 01:45 AM
Intermediate Member
 
Posts: 19
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
Reply With Quote
  #90 (permalink)  
Old 08-04-2008, 04:40 AM
Zimbra Consultant & Moderator
 
Posts: 11,518
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
Reply With Quote
Reply


Thread Tools
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0