Bacula-users

Re: [Bacula-users] [Bacula-devel] Command "bacula-sd -t" not works as expected

2017-02-25 16:35:31
Subject: Re: [Bacula-users] [Bacula-devel] Command "bacula-sd -t" not works as expected
From: Dan Langille <dan AT langille DOT org>
To: Wanderlei Huttel <wanderleihuttel AT gmail DOT com>
Date: Sat, 25 Feb 2017 16:34:17 -0500
This is more suited to the bacula-users mailing list
-- 
Dan Langille - BSDCan / PGCon
dan AT langille DOT org


On Feb 24, 2017, at 2:32 PM, Wanderlei Huttel <wanderleihuttel AT gmail DOT com> wrote:

Hello Kern

But in my simulations I changed the bacula-sd.conf and left some errors, and when I run bacula-sd -t no error appears.



Storage {
  Name = bacula-sd
  SDPort = 9103
  WorkingDirectory = "/etc/bacula/working"
  Pid Directory = "/etc/bacula/working"
  Maximum Concurrent Jobs = 50
  Heartbeat Interval = 300 seconds 
  Unknown Option = XXX   # Test purpose
}

Director {
  Name = bacula-dir
  Password = "sd-yyOtDzDVl7VMwKSVu60TMU6MfaBslQddd1xEYWpqDNnLogQxi0EBNFZG3ao70qQ5"
#}   ### Remove this "{" # Test purpose


Autochanger {
  Name = "FileChgr"
  Device = FileChgr-Dev1, FileChgr-Dev2, FileChgr-Dev3
  Changer Command = ""
  Changer Device = /dev/null
}

Device {
  Name = "FileChgr-Dev1"
  DriveIndex = 0
  Media Type = File
  Archive Device = "/backup"
  LabelMedia = yes;                   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
  Maximum Concurrent Jobs = 5
}

Device {
  Name = "FileChgr-Dev2"
  DriveIndex = 1
  Media Type = File
  Archive Device = "/backup"
  LabelMedia = yes;                   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
  Maximum Concurrent Jobs = 5
}


Device {
  Name = "FileChgr-Dev3"
  DriveIndex = 2
  Media Type = File
  Archive Device = "/backup"
  LabelMedia = yes;                   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
  Maximum Concurrent Jobs = 5
}

Messages {
  Name = Standard
  director = bacula-dir = all
}


Best Regards

Wanderlei Hüttel

2017-02-24 16:21 GMT-03:00 Kern Sibbald <kern AT sibbald DOT com>:
Both bacula-dir -t   and bacula-sd -t are perfectly good commands.  They will produce output only if they run into a problem such as not finding the appropriate .conf file.


On 02/24/2017 05:09 PM, Wanderlei Huttel wrote:
Hello 

I've made some tests and let something wrong in the file bacula-sd.conf and try to run the command "bacula-sd -t".

I expected an error like "bacula-dir -t" but nothing happened.

Only bacula-dir has this option or is a bug?



Best regards

Wanderlei Hüttel


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot


_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot_______________________________________________
Bacula-devel mailing list
Bacula-devel AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Bacula-users] [Bacula-devel] Command "bacula-sd -t" not works as expected, Dan Langille <=