[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-fr] Incremental backup et interruption faute de LTO

2022-01-11 Thread Samuel Zaslavsky
Bonjour Lionel,

Merci pour votre message et désolé pour cette réponse tardive.

Quelques éléments de réponse :

> Ce qui me choque dans votre post  c'est que vous avez une stratégie de
> rotation de bande uniquement basée sur de l'incrémentiel? Cela maximise le
> nombre de LTO à l'infini.

Oui ... et non.
Le schéma est excessivement simple. J'ai des NAS avec des téraoctets de
vidéos, avec des nouvelles arrivées tous les jours ou presque. Je vous tout
sauvegarder. Rien n'expire. rien ne doit disparaître. Donc pas de rotation !
 Effectivement, tout est incrémentiel, ad vitam.
Du coup, je ne sais pas si le reste de votre post me concerne vraiment, ou
bien je n'ai pas tout compris ?
Ceci dit, je me rends compte a vous lire qu'une sauvegarde tous les soirs
n'est peut-être pas optimal pour mon cas. Je pense passer à une fois par
semaine, ou tous les 15 jours.
En cas de gros crash, l'impact serait très limité, et cela simplifiera sans
doute mes process...

Quoiqu'il en soit, merci encore pour votre aide !

Samuel




Le jeu. 23 déc. 2021 à 11:43, Lionel PLASSE  a écrit :

> Bonjour,
>
> Je viens de voire le message en m'inscrivant , j'utilise bacula depuis a
> peine 2 années sans grands soucis.
>
> Ce qui me choque dans votre post  c'est que vous avez une stratégie de
> rotation de bande uniquement basée sur de l'incrémentiel? Cela maximise le
> nombre de LTO à l'infini.
>
> Il existe des schémas de rotation de sauvegarde performant et qui
> minimiserais le nombre de LTO.  (Ex INCR day / DIFF Weekly / FULL Montly)
> Ainsi toutes les semaines les INCR peuvent être purgés et tous les mois
> l'ensemble INCR et DIFF.
> Il suffit de bloquer les jobs sur 3 mois pour les full pour n'avoir que 3
> LTO FULL 5 LTO DIFF et 5 LTO INCR pour avoir une persistance de 3 mois des
> sauvegardes (pour faire vite.)
>
> L'incrémentiel marque dans la base de données les fichiers backés du job.
> Donc la suivante incrémentielle, même s'elle était en attente, ne
> sauvegardera que les nouveaux fichiers depuis le dernier incrémentiel donc
> rien si elle est relancée juste après (sauf erreur de ma part bacula
> demande d'abord le volume et fait ensuite la liste des fichiers à backer) .
>
> Je pense que vous avez plutôt intérêt à jouer sur les périodes de
> rétentions des job et de configurer un auto purge en fonction d'un schéma
> de rotation minimisant un nombre de LTO.
> Faire de l'incrémentiel tous les jours complique le travail de
> restauration puisqu'il faudra passé en revue toutes les LTO pour obtenir un
> FULL resto
>
> Votre solution est peut-être  déjà trouvée.
> Mais le mailing fr n'est pas très vivant alors si ça peut donner du grain
> à moudre
>
>
>
> ___
> Bacula-users-fr mailing list
> Bacula-users-fr@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users-fr
>
___
Bacula-users-fr mailing list
Bacula-users-fr@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users-fr


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