Bacula-users

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

2014-04-15 08:39:27
Subject: Re: [Bacula-users] mount command error does not cancel backup
From: le dahut <le.dahut AT laposte DOT net>
To: "Ana Emília M. Arruda" <emiliaarruda AT gmail DOT com>
Date: Tue, 15 Apr 2014 14:35:08 +0200
Ok, so this is not an issue for me since SD does not run on the same 
machine than DIR and FD.

Thank you anyway.



Le 14/04/2014 21:49, Ana Emília M. Arruda a écrit :
> Sorry Klass,
>
> I forgot to tell you that the "Run Script" directive you should put in
> the job resource definition.
>
> Regards,
> Ana
>
>
> On Mon, Apr 14, 2014 at 1:30 PM, Ana Emília M. Arruda
> <emiliaarruda AT gmail DOT com <mailto:emiliaarruda AT gmail DOT com>> wrote:
>
>     Hi Klaas,
>
>     I don´t know if there is a better solution, but I think you can call
>     the mount script inside a "run script" like:
>
>     RunScript{
>          RunsWhen=  Before
>          FailJobOnError=  Yes
>          Command=  "sudo /sbin/baculamount.py --mount"
>     }
>
>     (from http://wiki.bacula.org/doku.php?id=bacula_manual:the_job_resource)
>
>     Regards,
>     Ana
>
>
>     On Mon, Apr 14, 2014 at 6:44 AM, le dahut <le.dahut AT laposte DOT net
>     <mailto:le.dahut AT laposte DOT net>> wrote:
>
>         Hello,
>
>         Bacula 5.2.5-0ubuntu6.2 (on 12.04 LTS)
>
>         In bacula-sd.conf I have :
>             Name = FileStorage
>             LabelMedia = yes
>             Automatic Mount = yes
>             Archive Device = /mnt/backup
>             Media Type = File
>             Device type = File
>             Mount Point = /mnt/backup
>             Mount Command = "sudo /sbin/baculamount.py --mount"
>             Unmount Command = "sudo /sbin/baculamount.py --umount"
>             Maximum Open Wait = 60
>             Requires Mount = yes
>             Random Access = yes
>             Removable Media = yes
>             Always Open = no
>
>         But even if "sudo /sbin/baculamount.py --mount" makes an error
>         and exits
>         with code 1, backup is not cancelled/marked as error but still
>         happens.
>
>
>         Why ?
>         Is there a way to make backup NOT happen if "mount command" has
>         failed ?
>
>
>         Thanks,
>         Klaas
>
>
>         
> ------------------------------------------------------------------------------
>         Learn Graph Databases - Download FREE O'Reilly Book
>         "Graph Databases" is the definitive new guide to graph databases
>         and their
>         applications. Written by three acclaimed leaders in the field,
>         this first edition is now available. Download your free book today!
>         http://p.sf.net/sfu/NeoTech
>         _______________________________________________
>         Bacula-users mailing list
>         Bacula-users AT lists.sourceforge DOT net
>         <mailto:Bacula-users AT lists.sourceforge DOT net>
>         https://lists.sourceforge.net/lists/listinfo/bacula-users
>
>
>
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/NeoTech
>
>
>
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users