Bacula-users

Re: [Bacula-users] Restore from dead client

2014-09-07 05:40:16
Subject: Re: [Bacula-users] Restore from dead client
From: Kern Sibbald <kern AT sibbald DOT com>
To: Kenny Noe <knoe501 AT gmail DOT com>, Dan Langille <dan AT langille DOT org>, "bacula-users AT lists.sourceforge DOT net" <Bacula-users AT lists.sourceforge DOT net>
Date: Sun, 07 Sep 2014 11:35:28 +0200
On 09/07/2014 02:38 AM, Kenny Noe wrote:
> Dan,
>
> Appreciate the reply....   Yes this is exactly what I want to do.
> However when I try to just do a "simple" restore, the job finishes
> with the error previously given.
>
> Any suggestions to do this would be appreciated.

Working with pipes or fifos is tricky, and the message about interrupted
system call (or something along that line) indicates that your the
conditions to make the pipe/fifo work are not properly setup.

I recommend simplifying things.

Best regards,
Kern

>
> Thanks    --Kenny
>
> On Sat, Sep 6, 2014 at 5:51 PM, Dan Langille <dan AT langille DOT org> wrote:
>> On Sep 5, 2014, at 5:48 PM, Kenny Noe <knoe501 AT gmail DOT com> wrote:
>>
>> Birre,
>>
>> Thanks for the reply.   I guess this is where I get lost...
>>
>>
>>
>> The fifo is reading a file that was created in the pre-process called
>> mail.tar.  The mail.tar is made from the following directories /opt/zimbra
>> and /var/mail/zimbra.  This is where the Zimbra files and mailstore were
>> kept.
>>
>> This pre-process is a script that has this :
>>
>> MailBackup.bash
>> #!/bin/bash
>>
>> exec >/dev/null
>>
>> MKDIR="/bin/mkdir"
>> MKFIFO="/usr/bin/mkfifo"
>> RM="/bin/rm"
>> TAR="/bin/tar"
>>
>> DEFCODE=0
>> DUMPBASE="/data/backups"
>>
>> errCode=${DEFCODE}
>> mailDir="/var/mail/zimbra"
>> zimbraDir="/opt/zimbra"
>>
>> Main()
>>    {
>>    service zimbra stop
>>
>>    RunMailRestore
>>
>>    service zimbra start
>>
>>    ExitScript ${errCode}
>>    }
>>
>> RunMailRestore()
>>    {
>>    EXTENSION=".tar"
>>
>>    dumpDir="${DUMPBASE}/mail"
>>    fifoDir="${dumpDir}/fifo"
>>
>>    RebuildFifoDir
>>
>>    ${MKFIFO} ${fifoDir}/mail${EXTENSION}
>>
>>    ${TAR} -xpf ${fifoDir}/mail${EXTENSION} 2>&1 </dev/null &
>>    }
>>
>> RebuildFifoDir()
>>    {
>>    if [ -d ${fifoDir} ]
>>    then
>>       ${RM} -rf ${fifoDir}
>>    fi
>>
>>    ${MKDIR} -p ${fifoDir}
>>    }
>>
>> ExitScript()
>>    {
>>    exit ${1}
>>    }
>>
>> Main
>>
>> The restore script simply does a tar xpf instead of a tar cpf.
>>
>>
>> Perhaps instead of doing that, just restore the data, and then do the tar
>> xpf later.
> ------------------------------------------------------------------------------
> Slashdot TV.  
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>


------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users