Bacula-users

Re: [Bacula-users] mount command error does not cancel backup

2014-04-23 10:47:23
Subject: Re: [Bacula-users] mount command error does not cancel backup
From: Téïcée Bacula <baculafr AT teicee DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 23 Apr 2014 16:44:48 +0200

Le 23/04/2014 16:05, le dahut a écrit :
> 23/04/2014 15:07, Téïcée Bacula wrote :
>> Hello Klaas
>>
>>>> Sorry to insist but am I the only one who've noticed that ?
>>
>> Notice what? The mount command used in a device don't fail the job? Well
>> I never needed it.
>> Having the detail of your mount operation would probably help a bit or
>> at least knowing in  which context you are trying to do this. In other
>> words: what put you in this situation? What are your *real* needs?
>> It seems to me your problem is "elsewhere".
> 
> My problem is that when, for a random reason, SD cannot mount the backup
> device, backup still occurs.
> 
> DIR, SD and FD are on a different machine. One or more firewall(s) may
> be installed between each daemon, therefore using only Bacula network
> communication system is mandatory (no SSH or else).
> 
> 
> Backup device is an SMB/CIFS share or an external USB drive.
> 
> Command :
>  /sbin/baculamount.py --mount
> mounts the support, if mount succeeds it exits with 0, if mount
> encounters an error, it exits with 1.
> 
> 
> The goal is to use Bacula with its own functionalities/tools, eventually
> contribute by testing and fixing bugs like this
If you think this is a bug, you should open a ticket into the bacula bug
database.

(I've already
> contributed to ACLs management some years ago, it's in the list
> archives). But I would like to avoid making workarounds.

I noticed you authorized automatic labeling in your drive. If you don't
then Bacula won't be able to find a volume and then will not perform the
backup if the NFS/USB drive is not mounted.
This should solve your issue.

Another way:
If you use two jobs to run your backup you would also have something:

a) Schedule a job on the FD ( SD side ) to mount your disk. You may use
Bacula features such re-run failed jobs before giving up definitely
A Run Script after will enable your backup if the run before is successful

b) The job backing up your data is in an "enabled = no" state and won't
be schedule but if you enable it ( this is the purpose of the Run After
above) and don't forget to disable it after the job is completed.

Yes, this is a bit capillary-towed :) (en français dans le texte) but...
this is the only thing my mind can produce today  :D

Greg.

/snip/
-- 
Vous cherchez une formation Bacula en France et en français ? Alors
contactez Matthieu au 02 72 34 13 20 / commercial AT teicee DOT com pour vous
inscrire à la formation "Administrator I" des 3, 4 et 5 juin à Paris La
Défense.
Pour plus d'information:
http://www.teicee.com/informatique/sauvegarde-donnees/bacula-la-solution-open-source-de-sauvegarde-reseau/formation-administrateur-bacula.html

------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users