[Bacula-users] Bacula ACL

2022-01-11 Thread Shaligram Bhagat, Yateen (Nokia - IN/Bangalore)
Hi All,

We have backup being taken for filesets of different users (users co-located on 
a single Linux host as well as individual user with his/her private Linux host)

At the moment any user can restore other user's data through bconsole/BAT
How can we put some kind of ACL's to ensure that a given user has restore 
access only to his/her fileset?

We have Bacula 9.4.4 on Centos.

Thanks,
Yateen Bhagat
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Tape library problem

2022-01-11 Thread Jose Alberto
This error also occurs, when you have a tape library with n + 1 Drive, but
in the SD you only declare the 2nd or 3rd and not the main one.

Apparently for Bacula, the library needs to always have the Drive that it
considers main declared, usually Index 0.

On Tue, Jan 11, 2022 at 12:14 PM Tomasz Świderski 
wrote:

> I find config error, in bacula-dir.conf is Media Type = LTO-8, in
> bacula-sd.conf is Media Type = LTO8
>
> Thanks
> W dniu 2022-01-11 o 16:27, Heitor Faria pisze:
>
> The baculi documentation discourages the use of LabelMedia = yes with
> libraries
>
> https://www.bacula.org/11.0.x-manuals/en/main/Basic_Volume_Management.html
>
> And I never undestood why...
>
> Rgds.
> --
>
> MSc Heitor Faria (Miami/USA)
> Bacula LATAM CIO
> mobile1: + 1 909 655-8971
> mobile2: + 55 61 98268-4220
> [image: linkedin icon]
> 
> [image: logo] 
> América Latina
> bacula.lat | bacula.com.br 
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>


-- 
#
#   Sistema Operativo: Debian  #
#Caracas, Venezuela  #
#
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Tape library problem

2022-01-11 Thread Tomasz Świderski
I find config error, in bacula-dir.conf is Media Type = LTO-8, in  
bacula-sd.conf is Media Type = LTO8


Thanks

W dniu 2022-01-11 o 16:27, Heitor Faria pisze:


The baculi documentation discourages the use of LabelMedia = yes
with libraries

https://www.bacula.org/11.0.x-manuals/en/main/Basic_Volume_Management.html

And I never undestood why...

Rgds.
--

MSc Heitor Faria (Miami/USA)
Bacula LATAM CIO
mobile1: + 1 909 655-8971
mobile2: + 55 61 98268-4220
linkedin icon 


logo 
América Latina
bacula.lat  | bacula.com.br 

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Tape library problem

2022-01-11 Thread Heitor Faria
> The baculi documentation discourages the use of LabelMedia = yes with 
> libraries

> [ https://www.bacula.org/11.0.x-manuals/en/main/Basic_Volume_Management.html |
> https://www.bacula.org/11.0.x-manuals/en/main/Basic_Volume_Management.html ]

And I never undestood why... 

Rgds. 
-- 

MSc Heitor Faria (Miami/USA) 
Bacula LATAM CIO 

mobile1: + 1 909 655-8971 
mobile2: + 55 61 98268-4220 
[ https://www.linkedin.com/in/msc-heitor-faria-5ba51b3 ] 
[ http://www.bacula.com.br/ ] 

América Latina 
[ http://bacula.lat/ | bacula.lat ] | [ http://www.bacula.com.br/ | 
bacula.com.br ] 
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Tape library problem

2022-01-11 Thread Tomasz Świderski
The baculi documentation discourages the use of LabelMedia = yes with 
libraries


https://www.bacula.org/11.0.x-manuals/en/main/Basic_Volume_Management.html

W dniu 2022-01-11 o 15:59, Pedro Oliveira pisze:


Hi Tomasz,

Please could you change the following option on your device in your 
BEE Storage Daemon Server Configuration file


The second change that is necessary to make automatic labeling work is 
to give the Storage daemon permission to automatically label Volumes. 
Do so by adding*LabelMedia = yes*to the Device resource as follows:


Device {
  Name = Drive0
  Media Type = LTO8
  Drive Index = 0
  Archive Device = /dev/nst0    # Normal archive device
  Autochanger = yes
  LabelMedia = yes
  RandomAccess = no
  AutomaticMount = yes
  AlwaysOpen = yes
  RemovableMedia = yes
  Maximum Changer Wait = 600
  Maximum Rewind Wait = 600
  Maximum Open Wait = 600
  Maximum Concurrent Jobs = 2
}

and check if the issue, persists. Please note that you need to restarr 
your Bacula SD service.


Best Regards

Pedro




Às 14:33 de 11/01/22, Tomasz Świderski escreveu:
Set up a library of tapes in Bacula. I have a problem when I want to 
label in bconsole.

* label barcode
3306 Issuing autochanger "slots" command.
Device "LibraryHP0" has 8 slots.
3306 Issuing autochanger "list" command.
The following Volumes will be labeled:
Volume slot
==
   1 270011L8
   2 270012L8
   3 .
Sending label command for Volume "270011L8" Slot 1 ...
3999 Device "LibraryHP0" not found or could not be opened.
Label command failed for Volume 270011L8.

I've done the tests recommended in the documentation before 
(mtx-changer, mt). They all work. In bconsole, I can properly execute 
commands on the library: update slots, mount, un mount, status slots. 
Unfortunately, the label and label barcode ends with an error as 
mentioned above.

My configuration snippets:

The library and bacula-sd is installed on a different host than 
bacula-dir


bacula-sd.conf

Autochanger {
  Name = LibraryHP0
  Device = Drive0
  Changer Device = /dev/sg5
  Changer Command = "/opt/bacula/scripts/mtx-changer %c %o %S %a %d"
}

Device {
  Name = Drive0
  Media Type = LTO8
  Drive Index = 0
  Archive Device = /dev/nst0    # Normal archive device
  Autochanger = yes
  LabelMedia = no
  RandomAccess = no
  AutomaticMount = yes
  AlwaysOpen = yes
  RemovableMedia = yes
  Maximum Changer Wait = 600
  Maximum Rewind Wait = 600
  Maximum Open Wait = 600
  Maximum Concurrent Jobs = 2
}

bacula-dir.conf

Autochanger {
  Name = k-bacula3-sd-LibraryHP
  Address = 192.168.1.100
  SDPort = 9103
  Password = ""
  Device = LibraryHP0
  Media Type = LTO-8
  Maximum Concurrent Jobs = 10
  Autochanger = k-bacula3-sd-LibraryHP
}


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Tape library problem

2022-01-11 Thread Tomasz Świderski

Unfortunately, the error is the same

W dniu 2022-01-11 o 15:59, Pedro Oliveira pisze:


Hi Tomasz,

Please could you change the following option on your device in your 
BEE Storage Daemon Server Configuration file


The second change that is necessary to make automatic labeling work is 
to give the Storage daemon permission to automatically label Volumes. 
Do so by adding*LabelMedia = yes*to the Device resource as follows:


Device {
  Name = Drive0
  Media Type = LTO8
  Drive Index = 0
  Archive Device = /dev/nst0    # Normal archive device
  Autochanger = yes
  LabelMedia = yes
  RandomAccess = no
  AutomaticMount = yes
  AlwaysOpen = yes
  RemovableMedia = yes
  Maximum Changer Wait = 600
  Maximum Rewind Wait = 600
  Maximum Open Wait = 600
  Maximum Concurrent Jobs = 2
}

and check if the issue, persists. Please note that you need to restarr 
your Bacula SD service.


Best Regards

Pedro




Às 14:33 de 11/01/22, Tomasz Świderski escreveu:
Set up a library of tapes in Bacula. I have a problem when I want to 
label in bconsole.

* label barcode
3306 Issuing autochanger "slots" command.
Device "LibraryHP0" has 8 slots.
3306 Issuing autochanger "list" command.
The following Volumes will be labeled:
Volume slot
==
   1 270011L8
   2 270012L8
   3 .
Sending label command for Volume "270011L8" Slot 1 ...
3999 Device "LibraryHP0" not found or could not be opened.
Label command failed for Volume 270011L8.

I've done the tests recommended in the documentation before 
(mtx-changer, mt). They all work. In bconsole, I can properly execute 
commands on the library: update slots, mount, un mount, status slots. 
Unfortunately, the label and label barcode ends with an error as 
mentioned above.

My configuration snippets:

The library and bacula-sd is installed on a different host than 
bacula-dir


bacula-sd.conf

Autochanger {
  Name = LibraryHP0
  Device = Drive0
  Changer Device = /dev/sg5
  Changer Command = "/opt/bacula/scripts/mtx-changer %c %o %S %a %d"
}

Device {
  Name = Drive0
  Media Type = LTO8
  Drive Index = 0
  Archive Device = /dev/nst0    # Normal archive device
  Autochanger = yes
  LabelMedia = no
  RandomAccess = no
  AutomaticMount = yes
  AlwaysOpen = yes
  RemovableMedia = yes
  Maximum Changer Wait = 600
  Maximum Rewind Wait = 600
  Maximum Open Wait = 600
  Maximum Concurrent Jobs = 2
}

bacula-dir.conf

Autochanger {
  Name = k-bacula3-sd-LibraryHP
  Address = 192.168.1.100
  SDPort = 9103
  Password = ""
  Device = LibraryHP0
  Media Type = LTO-8
  Maximum Concurrent Jobs = 10
  Autochanger = k-bacula3-sd-LibraryHP
}


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Tape library problem

2022-01-11 Thread Tomasz Świderski
Set up a library of tapes in Bacula. I have a problem when I want to 
label in bconsole.

* label barcode
3306 Issuing autochanger "slots" command.
Device "LibraryHP0" has 8 slots.
3306 Issuing autochanger "list" command.
The following Volumes will be labeled:
Volume slot
==
   1 270011L8
   2 270012L8
   3 .
Sending label command for Volume "270011L8" Slot 1 ...
3999 Device "LibraryHP0" not found or could not be opened.
Label command failed for Volume 270011L8.

I've done the tests recommended in the documentation before 
(mtx-changer, mt). They all work. In bconsole, I can properly execute 
commands on the library: update slots, mount, un mount, status slots. 
Unfortunately, the label and label barcode ends with an error as 
mentioned above.

My configuration snippets:

The library and bacula-sd is installed on a different host than bacula-dir

bacula-sd.conf

Autochanger {
  Name = LibraryHP0
  Device = Drive0
  Changer Device = /dev/sg5
  Changer Command = "/opt/bacula/scripts/mtx-changer %c %o %S %a %d"
}

Device {
  Name = Drive0
  Media Type = LTO8
  Drive Index = 0
  Archive Device = /dev/nst0    # Normal archive device
  Autochanger = yes
  LabelMedia = no
  RandomAccess = no
  AutomaticMount = yes
  AlwaysOpen = yes
  RemovableMedia = yes
  Maximum Changer Wait = 600
  Maximum Rewind Wait = 600
  Maximum Open Wait = 600
  Maximum Concurrent Jobs = 2
}

bacula-dir.conf

Autochanger {
  Name = k-bacula3-sd-LibraryHP
  Address = 192.168.1.100
  SDPort = 9103
  Password = ""
  Device = LibraryHP0
  Media Type = LTO-8
  Maximum Concurrent Jobs = 10
  Autochanger = k-bacula3-sd-LibraryHP
}


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users