Ran the script with encryption turned off and it ran without a hitch. Encryption isn't strictly necessary, but I'm curious about what it is in these scripts that prevents that.
The problem is happening here:
The "Unknown argument : &" is likely related to the gzip'ing of the filelist, which follows the creation of the filelist. The "&&" in the code performs the next command if the first command is successful. The first command is probably not successful because of some issue with the encryption key, e.g. it was never set on install. Did you enter the encryption password during the install? It will never even ask you for the encryption password if you have it set to CRYPT="no" (the default) during install. The script should check for the key before attempting to decrypt, which I'd call a bug. You can manually set the encryption key if you like.Code:if [ "$CRYPT" = "yes" ] then KEY=`cat "$PASSDIR""$PASSFILE"` if [ "$FILTERLIST" = "yes" ] then nice -19 $DAR_BIN -K bf:$KEY -l "$ARCHIVEDIR""$ARCHIVENAME" -Q | grep -v "\[ \] \[-----\]" \ > "$ARCHIVEDIR""$ARCHIVENAME".txt && gzip -9 "$ARCHIVEDIR""$ARCHIVENAME".txt else nice -19 $DAR_BIN -K bf:$KEY -l "$ARCHIVEDIR""$ARCHIVENAME" -Q \ > "$ARCHIVEDIR""$ARCHIVENAME".txt && gzip -9 "$ARCHIVEDIR""$ARCHIVENAME".txt fi else
Last edited by LaFong; 02-11-2012 at 10:58 PM.
I don't recall the script asking for an encryption passphrase when I installed it the first time. I bounced back to a pre-install condition to try to go through the process again to make sure I didn't miss something (I did).
That leads me first to a question about the install process, so I'd like to back up a bit if that's ok.
When I run zmbak --INSTALL, the script wants to install mailx, using mta-dummy, and it points to a Zimbra forums post on installing mailx without postfix. Testing the instructions in that post (which are for Ubuntu 6.06; I'm on 10.04):
This is where I ran into some other difficulties previously. Big problems. (I broke postfix. Told ya I wasn't a sysadmin. I'm learning everything the hard way.) So: Does it matter which of these packages I install? Or is the crucial step editing /etc/mail.rc, as mentioned in the other post to which I referred? (I know I neglected that part last time... #facepalm)Code:aptitude --safe-resolver --show-why install mailx Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done "mailx" is a virtual package provided by: mailutils heirloom-mailx bsd-mailx You must choose one to install.
Now, encryption: Let's assume I get the mailx dependency satisfied successfully and install the script again. If the script doesn't prompt me for an encryption passphrase, how do I go about setting the key manually?
Last edited by mailman1175; 02-12-2012 at 10:34 AM.
By the way guys; just wanted to know if anybody has every tried ZMBKPOSE script with OS version? They claim it does a Hot backup and Restore is it really possible or can that be possible with this script?
Do let me know if any body has ever tried this before, I would love to hear the experiences before I try this in production environment.
here is the Link
HOT Backup and HOT Restore - Zimbra :: Wiki
I'm not sure which one is better...probably the one which presents less hassle. I'd guess mailutils. The script relies on mail(x), which in turn relies on sendmail, so both steps are necessary.So: Does it matter which of these packages I install? Or is the crucial step editing /etc/mail.rc, as mentioned in the other post to which I referred?
Set the PASSDIR and PASSFILE variables in the script as desired, then create password file. By default, the "noread" file is saved in the /etc/zmbak.sh directory. The commands below assume you are using the defaults. You must match the script with the names used below.Now, encryption: Let's assume I get the mailx dependency satisfied successfully and install the script again. If the script doesn't prompt me for an encryption passphrase, how do I go about setting the key manually?
Code:mkdir -vp -m 600 /etc/zmbak.sh touch /etc/zmbak.sh/noread chmod 600 /etc/zmbak.sh/noread echo mypassword > /etc/zmbak.sh/noread
The script in this thread can also do per-user backup and restore, http://www.zimbra.com/forums/adminis...ost186403.html. I have tested on my small server, but not on a large multi-store-volume server.
Has any body tries with tar -zcvf instead on dar on CentOS or RHEL? Does any one have the updated version?
There are currently 1 users browsing this thread. (0 members and 1 guests)