Re: [Bacula-users] Multiple interfaces for storage daemon

2024-04-28 Thread Andrea Venturoli

On 4/27/24 11:16, Andrea Venturoli wrote:

Hello.

I'm deploying a completely new installation and I'm both facing some new 
problems to solve and using 15.x for the first time, so I'm not sure if 
I'm doing things wrong or if Bacula is misbehaving.

...


Thanks to all that answered.
I'll reply here collectively.



@Matlink

Why don't you have a single machine name, i.e. sd.mydomain.it, but resolving to 
a different IP address depending on the network you're in?


This LAN I inherited is a mess.
I thought about playing with DNS, but this is going to be unreliable.
E.g. there are machines which are joined to different AD domains which 
don't exist here (probably they were just physically transferred to this 
building and network cable plugged in, without any reconfiguration); 
they will insist in adding their own suffixes and I cannot reconfigure 
them properly now.




@Pedro

Please could you check the configuration directive fdstorageaddress in the 
client


This is probably what I should have used.
Thanks.



However, my most important question was: given I configured a single SD 
with three different HDD-based storage, is it normal that one of them 
can get stuck (with clients on the affected VLAN all "waiting on Storage 
"), while the others are working?


Is this a bug? I remeber I had something like this in the past (but with 
13.x and only two storages) and it worked.

Or is this NOT supposed to work?

 bye & Thanks
av.


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


[Bacula-users] bacula tray monitor

2024-04-28 Thread Stipe Tabak

Hello,
I'm configuring tray monitor to make client initiated backup.
But when I click Run and select the Director I get a pop up saying "The 
restricted console does not have access to Backup jobs".

Is this limitation of community version or configuration mistake.
Thanks.
Bye.
Stipe


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


Re: [Bacula-users] Multiple interfaces for storage daemon

2024-04-27 Thread Jose Alberto
FdStorageAddress: sd.a.mydomain.it;   (config on dir.conf)

My case:
LAN1 Server   192.168.5.0/24   (DIR, SD-TS3200-LAN1, FD-LAN1+N1)

LAN2 Server192.168.7.0/24  (SD-TS3200-LAN2, FD-LAN2+N1)

My SD  have 2 interfaces   192.168.5.5  (eth1)  and  192.168.7.5 (eth0)

On Server of LAN2. add client (dir)  FdStorageAddress:  192.168.7.5

The Traffic:   FD-LAN2   === SDrun  for  192.168.7.0/24

I have this strategy applied but point by point. Backup 3TB in less than 4
hours. RMAN-Oracle.

Example:  SD   10.20.5.4 FD:   10.20.5.5   (point to point).

I am currently evaluating   FCoE (Fibre Channel over Ethernet)

I understand that Bacula Enterprise does not even work with Fiber backup
(SCSI) like DataProtector does.

One option is to handle FC over TCPIP









On Sat, Apr 27, 2024 at 5:19 AM Andrea Venturoli  wrote:

> Hello.
>
> I'm deploying a completely new installation and I'm both facing some new
> problems to solve and using 15.x for the first time, so I'm not sure if
> I'm doing things wrong or if Bacula is misbehaving.
>
>
>
>
>
> First problem: clients are spread across three different VLANS.
> While I only have one storage daemon, listening on all interfaces,
> clients will need to contact it through different addresses.
> I.e.
> _ clients in VLAN 1 need to use sd.a.mydomain.it;
> _ clients in VLAN 2 need to use sd.b.mydomain.it;
> _ clients in VLAN 3 need to use sd.c.mydomain.it.
>
> I found no way of doing this without declaring three "Storage" resources
> in bacula-dir.conf.
> Is this the best way to do this? Or are there better alternatives?
>
> As a consequence of the above, I declared three "Device"s in bacula-sd
> (since this is an HD-based storage, I just made three different
> directories).
> Again, is this the best way to do this?
>
> It's more or less working, but the SD will often hang with one "Device"
> or two working and the third stuck (with clients on the affected VLAN
> all "waiting on Storage ").
> Is this a bug that I need to investigate or am I just using the SD in a
> way that it's not supposed to work?
>
> Should I let three different SD run?
> (This would somewhat complicate management, but I can't think of any
> stopper).
>
>
>
>
>
> Aside, I've always done backups in sequence (one at a time); alas the
> number of clients and amount of data in this installation require that I
> start doing them in parallel.
>
> If I understand correctly, doing multiple jobs in parallel on one SD
> means that data from different clients will be interleaved in a single
> volume.
> Is this correct?
> Since I'd like to have one job per volume, is there any way to have a
> single SD/device open multiple volumes at once?
>
> The above configuration (three Devices) allows me to do at least three
> jobs in parallel (one per VLAN) without interleaving data.
> However, is this supported or am I just asking for troubles?
>
>
>
>   bye & Thanks
> av.
>
>
> ___
> 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] Multiple interfaces for storage daemon

2024-04-27 Thread Matlink
Why don't you have a single machine name, i.e. sd.mydomain.it, but resolving to 
a different IP address depending on the network you're in?

Le 27 avril 2024 11:16:59 GMT+02:00, Andrea Venturoli  a 
écrit :
>Hello.
>
>I'm deploying a completely new installation and I'm both facing some new 
>problems to solve and using 15.x for the first time, so I'm not sure if I'm 
>doing things wrong or if Bacula is misbehaving.
>
>
>
>
>
>First problem: clients are spread across three different VLANS.
>While I only have one storage daemon, listening on all interfaces, clients 
>will need to contact it through different addresses.
>I.e.
>_ clients in VLAN 1 need to use sd.a.mydomain.it;
>_ clients in VLAN 2 need to use sd.b.mydomain.it;
>_ clients in VLAN 3 need to use sd.c.mydomain.it.
>
>I found no way of doing this without declaring three "Storage" resources in 
>bacula-dir.conf.
>Is this the best way to do this? Or are there better alternatives?
>
>As a consequence of the above, I declared three "Device"s in bacula-sd (since 
>this is an HD-based storage, I just made three different directories).
>Again, is this the best way to do this?
>
>It's more or less working, but the SD will often hang with one "Device" or two 
>working and the third stuck (with clients on the affected VLAN all "waiting on 
>Storage ").
>Is this a bug that I need to investigate or am I just using the SD in a way 
>that it's not supposed to work?
>
>Should I let three different SD run?
>(This would somewhat complicate management, but I can't think of any stopper).
>
>
>
>
>
>Aside, I've always done backups in sequence (one at a time); alas the number 
>of clients and amount of data in this installation require that I start doing 
>them in parallel.
>
>If I understand correctly, doing multiple jobs in parallel on one SD means 
>that data from different clients will be interleaved in a single volume.
>Is this correct?
>Since I'd like to have one job per volume, is there any way to have a single 
>SD/device open multiple volumes at once?
>
>The above configuration (three Devices) allows me to do at least three jobs in 
>parallel (one per VLAN) without interleaving data.
>However, is this supported or am I just asking for troubles?
>
>
>
> bye & Thanks
>   av.
>
>
>___
>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] Multiple interfaces for storage daemon

2024-04-27 Thread Pedro Oliveira
https://www.bacula.org/7.0.x-manuals/en/main/New_Features_in_7_0_0.html

Best Regards

Pedro

Create your WiseStamp email signature


[image: __tpx__]
‌


Pedro Oliveira  escreveu em sáb., 27/04/2024 às
10:24 :

> Please could you check the configuration directive fdstorageaddress in the
> client
>
> Create your WiseStamp email signature
> 
>
> [image: __tpx__]
> ‌
>
>
> Andrea Venturoli  escreveu em sáb., 27/04/2024 às 10:21 :
>
>> Hello.
>>
>> I'm deploying a completely new installation and I'm both facing some new
>> problems to solve and using 15.x for the first time, so I'm not sure if
>> I'm doing things wrong or if Bacula is misbehaving.
>>
>>
>>
>>
>>
>> First problem: clients are spread across three different VLANS.
>> While I only have one storage daemon, listening on all interfaces,
>> clients will need to contact it through different addresses.
>> I.e.
>> _ clients in VLAN 1 need to use sd.a.mydomain.it;
>> _ clients in VLAN 2 need to use sd.b.mydomain.it;
>> _ clients in VLAN 3 need to use sd.c.mydomain.it.
>>
>> I found no way of doing this without declaring three "Storage" resources
>> in bacula-dir.conf.
>> Is this the best way to do this? Or are there better alternatives?
>>
>> As a consequence of the above, I declared three "Device"s in bacula-sd
>> (since this is an HD-based storage, I just made three different
>> directories).
>> Again, is this the best way to do this?
>>
>> It's more or less working, but the SD will often hang with one "Device"
>> or two working and the third stuck (with clients on the affected VLAN
>> all "waiting on Storage ").
>> Is this a bug that I need to investigate or am I just using the SD in a
>> way that it's not supposed to work?
>>
>> Should I let three different SD run?
>> (This would somewhat complicate management, but I can't think of any
>> stopper).
>>
>>
>>
>>
>>
>> Aside, I've always done backups in sequence (one at a time); alas the
>> number of clients and amount of data in this installation require that I
>> start doing them in parallel.
>>
>> If I understand correctly, doing multiple jobs in parallel on one SD
>> means that data from different clients will be interleaved in a single
>> volume.
>> Is this correct?
>> Since I'd like to have one job per volume, is there any way to have a
>> single SD/device open multiple volumes at once?
>>
>> The above configuration (three Devices) allows me to do at least three
>> jobs in parallel (one per VLAN) without interleaving data.
>> However, is this supported or am I just asking for troubles?
>>
>>
>>
>>   bye & Thanks
>> av.
>>
>>
>> ___
>> 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] Multiple interfaces for storage daemon

2024-04-27 Thread Pedro Oliveira
Please could you check the configuration directive fdstorageaddress in the
client

Create your WiseStamp email signature


[image: __tpx__]
‌


Andrea Venturoli  escreveu em sáb., 27/04/2024 às 10:21 :

> Hello.
>
> I'm deploying a completely new installation and I'm both facing some new
> problems to solve and using 15.x for the first time, so I'm not sure if
> I'm doing things wrong or if Bacula is misbehaving.
>
>
>
>
>
> First problem: clients are spread across three different VLANS.
> While I only have one storage daemon, listening on all interfaces,
> clients will need to contact it through different addresses.
> I.e.
> _ clients in VLAN 1 need to use sd.a.mydomain.it;
> _ clients in VLAN 2 need to use sd.b.mydomain.it;
> _ clients in VLAN 3 need to use sd.c.mydomain.it.
>
> I found no way of doing this without declaring three "Storage" resources
> in bacula-dir.conf.
> Is this the best way to do this? Or are there better alternatives?
>
> As a consequence of the above, I declared three "Device"s in bacula-sd
> (since this is an HD-based storage, I just made three different
> directories).
> Again, is this the best way to do this?
>
> It's more or less working, but the SD will often hang with one "Device"
> or two working and the third stuck (with clients on the affected VLAN
> all "waiting on Storage ").
> Is this a bug that I need to investigate or am I just using the SD in a
> way that it's not supposed to work?
>
> Should I let three different SD run?
> (This would somewhat complicate management, but I can't think of any
> stopper).
>
>
>
>
>
> Aside, I've always done backups in sequence (one at a time); alas the
> number of clients and amount of data in this installation require that I
> start doing them in parallel.
>
> If I understand correctly, doing multiple jobs in parallel on one SD
> means that data from different clients will be interleaved in a single
> volume.
> Is this correct?
> Since I'd like to have one job per volume, is there any way to have a
> single SD/device open multiple volumes at once?
>
> The above configuration (three Devices) allows me to do at least three
> jobs in parallel (one per VLAN) without interleaving data.
> However, is this supported or am I just asking for troubles?
>
>
>
>   bye & Thanks
> av.
>
>
> ___
> 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] Multiple interfaces for storage daemon

2024-04-27 Thread Andrea Venturoli

Hello.

I'm deploying a completely new installation and I'm both facing some new 
problems to solve and using 15.x for the first time, so I'm not sure if 
I'm doing things wrong or if Bacula is misbehaving.






First problem: clients are spread across three different VLANS.
While I only have one storage daemon, listening on all interfaces, 
clients will need to contact it through different addresses.

I.e.
_ clients in VLAN 1 need to use sd.a.mydomain.it;
_ clients in VLAN 2 need to use sd.b.mydomain.it;
_ clients in VLAN 3 need to use sd.c.mydomain.it.

I found no way of doing this without declaring three "Storage" resources 
in bacula-dir.conf.

Is this the best way to do this? Or are there better alternatives?

As a consequence of the above, I declared three "Device"s in bacula-sd 
(since this is an HD-based storage, I just made three different 
directories).

Again, is this the best way to do this?

It's more or less working, but the SD will often hang with one "Device" 
or two working and the third stuck (with clients on the affected VLAN 
all "waiting on Storage ").
Is this a bug that I need to investigate or am I just using the SD in a 
way that it's not supposed to work?


Should I let three different SD run?
(This would somewhat complicate management, but I can't think of any 
stopper).






Aside, I've always done backups in sequence (one at a time); alas the 
number of clients and amount of data in this installation require that I 
start doing them in parallel.


If I understand correctly, doing multiple jobs in parallel on one SD 
means that data from different clients will be interleaved in a single 
volume.

Is this correct?
Since I'd like to have one job per volume, is there any way to have a 
single SD/device open multiple volumes at once?


The above configuration (three Devices) allows me to do at least three 
jobs in parallel (one per VLAN) without interleaving data.

However, is this supported or am I just asking for troubles?



 bye & Thanks
av.


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


Re: [Bacula-users] bacula-fd appearing to use wrong storage server

2024-04-26 Thread gaston.gloesener--- via Bacula-users
Thanks man 

You nailed it down. I did comment out this setting and it worked immediately. I 
did completely overlooked this before.

I have now removed it form all my client files and also the template that is 
used by my client auto-install script.

Many thanks,
Gaston

-Original Message-
From: Bill Arlofski via Bacula-users  
Sent: Friday, 26 April, 2024 00:24
To: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] bacula-fd appearing to use wrong storage server

On 4/25/24 3:55 PM, gaston.gloesener--- via Bacula-users wrote:
> Thanks for the rplies,
> 
> I include here some of the requested informations.
> 
> First abouth the "bconsole reload", yes I did not do, but I did restart the 
> director, the storage and file deamons several times after the config change. 
> Also because I did run them in forground with debug.

Hello Gaston,


I am re-sending this since the last one I sent I had included a screenshot 
which will not translate well for search engines, etc...

The problem had pointed out in the screenshot was that it looks like you are 
using the `FDStorageAddress` setting in this client. I believe this is causing 
your issue.:
8<> *show job=Backup-james1
> Job: name=Backup-james1 JobType=66 level=Incremental Priority=10 Enabled=1
>   MaxJobs=1 NumJobs=0 Resched=0 Times=0 Interval=1,800 Spool=0 
> WritePartAfterJob=1
>   Accurate=1
>--> Client: Name=james1-fd Enabled=1 Address=james1.home 
> FDport=9102 MaxJobs=
1 NumJobs=0
> JobRetention=6 months  FileRetention=2 months  AutoPrune=1

>   FDStorageAddress=bacula.home   
> <--- HERE

>--> Catalog: name=MyCatalog address=*None* DBport=0 db_name=bacula
>db_driver=PostgreSQL db_user=bacula MutliDBConn=0
>--> FileSet: name=Full Set IgnoreFileSetChanges=0
8<

If this is not it, we will look a little deeper. :)


Hope this helps,
Bill

--
Bill Arlofski
w...@protonmail.com




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


Re: [Bacula-users] bacula-fd appearing to use wrong storage server

2024-04-25 Thread Bill Arlofski via Bacula-users

On 4/25/24 3:55 PM, gaston.gloesener--- via Bacula-users wrote:

Thanks for the rplies,

I include here some of the requested informations.

First abouth the "bconsole reload", yes I did not do, but I did restart the 
director, the storage and file deamons several times after the config change. Also 
because I did run them in forground with debug.


Hello Gaston,


I am re-sending this since the last one I sent I had included a screenshot which will not translate well for search engines, 
etc...


The problem had pointed out in the screenshot was that it looks like you are using the `FDStorageAddress` setting in this 
client. I believe this is causing your issue.:

8<> *show job=Backup-james1

Job: name=Backup-james1 JobType=66 level=Incremental Priority=10 Enabled=1
  MaxJobs=1 NumJobs=0 Resched=0 Times=0 Interval=1,800 Spool=0 
WritePartAfterJob=1
  Accurate=1
   --> Client: Name=james1-fd Enabled=1 Address=james1.home FDport=9102 MaxJobs=

1 NumJobs=0

JobRetention=6 months  FileRetention=2 months  AutoPrune=1



  FDStorageAddress=bacula.home   
<--- HERE



   --> Catalog: name=MyCatalog address=*None* DBport=0 db_name=bacula
   db_driver=PostgreSQL db_user=bacula MutliDBConn=0
   --> FileSet: name=Full Set IgnoreFileSetChanges=0

8<

If this is not it, we will look a little deeper. :)


Hope this helps,
Bill

--
Bill Arlofski
w...@protonmail.com



signature.asc
Description: OpenPGP digital signature
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula-fd appearing to use wrong storage server

2024-04-25 Thread gaston.gloesener--- via Bacula-users
Thanks for the rplies,

I include here some of the requested informations.

First abouth the "bconsole reload", yes I did not do, but I did restart the 
director, the storage and file deamons several times after the config change. 
Also because I did run them in forground with debug.

*show job=Backup-james1
Job: name=Backup-james1 JobType=66 level=Incremental Priority=10 Enabled=1
 MaxJobs=1 NumJobs=0 Resched=0 Times=0 Interval=1,800 Spool=0 
WritePartAfterJob=1
 Accurate=1
  --> Client: Name=james1-fd Enabled=1 Address=james1.home FDport=9102 
MaxJobs=1 NumJobs=0
   JobRetention=6 months  FileRetention=2 months  AutoPrune=1
 FDStorageAddress=bacula.home
  --> Catalog: name=MyCatalog address=*None* DBport=0 db_name=bacula
  db_driver=PostgreSQL db_user=bacula MutliDBConn=0
  --> FileSet: name=Full Set IgnoreFileSetChanges=0
  O Z6MAKcXf
  X ext2
  X ext4
  X xfs
  X zfs
  X brtfs
  N
  I /
  N
  E /opt/bacula/working
  E /tmp
  E /proc
  E /tmp
  E /sys
  E /.journal
  E /.fsck
  E /dev
  E /media
  E /mnt
  N
  --> Schedule: Name=WeeklyCycle Enabled=1
  --> Run Level=Full
  hour=1
  mday=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 
26 27 28 29 30
  month=0 1 2 3 4 5 6 7 8 9 10 11
  wday=1
  wom=0
  woy=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 
52 53
  mins=0
  --> Run Level=Differential
  hour=1
  mday=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 
26 27 28 29 30
  month=0 1 2 3 4 5 6 7 8 9 10 11
  wday=1
  wom=1 2 3 4
  woy=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 
52 53
  mins=0
  --> Run Level=Incremental
  hour=1
  mday=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 
26 27 28 29 30
  month=0 1 2 3 4 5 6 7 8 9 10 11
  wday=0 2 3 4 5 6
  wom=0 1 2 3 4 5
  woy=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 
52 53
  mins=0
  --> WriteBootstrap=/opt/bacula/working/%c.bsr
  --> Autochanger: name=vTape1 address=bacula.home SDport=9103 MaxJobs=2 
NumJobs=0
  DeviceName=vChanger1 MediaType=vtape1 StorageId=3 Autochanger=1
  AC group=3 ShareStore=*none*
  --> Pool: name=Full-Backup-Pool PoolType=Backup
  use_cat=1 use_once=0 cat_files=1
  max_vols=0 auto_prune=1 VolRetention=3 months 11 days
  VolUse=0 secs recycle=1 LabelFormat=Full-
  CleaningPrefix=*None* LabelType=0
  RecyleOldest=0 PurgeOldest=0 ActionOnPurge=0
  MaxVolJobs=1 MaxVolFiles=0 MaxVolBytes=200
  MaxPoolBytes=0
  MigTime=0 secs MigHiBytes=0 MigLoBytes=0
  CacheRetention=0 secs
  JobRetention=0 secs FileRetention=0 secs
  Catalog=MyCatalog
  --> Autochanger: name=vTape1 address=bacula.home SDport=9103 MaxJobs=2 
NumJobs=0
  DeviceName=vChanger1 MediaType=vtape1 StorageId=3 Autochanger=1
  AC group=3 ShareStore=*none*
  --> FullBackupPool: name=james1-Full-Pool PoolType=Backup
  use_cat=1 use_once=0 cat_files=1
  max_vols=0 auto_prune=1 VolRetention=3 months 11 days
  VolUse=0 secs recycle=1 LabelFormat=james1-full-
  CleaningPrefix=*None* LabelType=0
  RecyleOldest=0 PurgeOldest=0 ActionOnPurge=0
  MaxVolJobs=1 MaxVolFiles=0 MaxVolBytes=200
  MaxPoolBytes=0
  MigTime=0 secs MigHiBytes=0 MigLoBytes=0
  CacheRetention=0 secs
  JobRetention=0 secs FileRetention=0 secs
  Catalog=MyCatalog
  --> Autochanger: name=vTape2 address=nas1.home SDport=9103 MaxJobs=2 NumJobs=0
  DeviceName=vChanger2 MediaType=vtape2 StorageId=5 Autochanger=1
  AC group=5 ShareStore=*none*
  --> IncrementalBackupPool: name=james1-Incr-Pool PoolType=Backup
  use_cat=1 use_once=0 cat_files=1
  max_vols=0 auto_prune=1 VolRetention=1 month 9 days
  VolUse=0 secs recycle=1 LabelFormat=james1-incr-
  CleaningPrefix=*None* LabelType=0
  RecyleOldest=0 PurgeOldest=0 ActionOnPurge=0
  MaxVolJobs=5 MaxVolFiles=0 MaxVolBytes=200
  MaxPoolBytes=0
  MigTime=0 secs MigHiBytes=0 MigLoBytes=0
  CacheRetention=0 secs
  JobRetention=0 secs FileRetention=0 secs
  Catalog=MyCatalog
  --> Autochanger: name=vTape2 address=nas1.home SDport=9103 MaxJobs=2 NumJobs=0
  DeviceName=vChanger2 MediaType=vtape2 StorageId=5 Autochanger=1
  AC group=5 ShareStore=*none*
  --> DifferentialBackupPool: name=james1-Diff-Pool PoolType=Backup
  use_cat=1 use_once=0 cat_files=1
  max_vols=0 auto_prune=1 VolRetention=3 months 11 days
  VolUse=0 secs recycle=1 LabelFormat=james1-diff-
  CleaningPrefix=*None* LabelType=0
  RecyleOldest=0 PurgeOldest=0 

Re: [Bacula-users] bacula-fd appearing to use wrong storage server

2024-04-25 Thread Bill Arlofski via Bacula-users

On 4/25/24 3:17 AM, gaston.gloesener--- via Bacula-users wrote:
>
Until now I did run bacula in a virtual machine running the director and storage deamon. The storage daemon was stroing data 
to files on a shared directory as the storage is on a NAS.


Now I have build bacula-sd for the NAS to avoid this duplicate transfer. I have configured one client to use the new storage 
but while it uses it, it claims to still contact the “old” storage daemon on the bacula node.


Hello Gaston,

A bconsole `show job=` will show what the Director knows about this job.

It is quite possible, and my guess that one of two possible things has happened:

#1: You forgot to issue the bconsole reload command
#2: The Director has reached its default configuration reload limit of 32 and 
is no longer reloading


You can check with:

* status director

...and look at the header line:

`Daemon started 24-Apr-24 18:55, conf reloaded 24-Apr-2024 18:55:27`

If the `conf reloaded` time is not recent, then you have hit #2 above and 
simply need to restart the Director.


Hope this helps,
Bill

--
Bill Arlofski
w...@protonmail.com



signature.asc
Description: OpenPGP digital signature
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula-fd appearing to use wrong storage server

2024-04-25 Thread Martin Simmons
It would be useful to see the bacula-dir.conf Job and Client resources for
this job and also the full job log.

__Martin


> On Thu, 25 Apr 2024 11:17:18 +0200, gaston gloesener--- via Bacula-users 
> said:
> 
> Until now I did run bacula in a virtual machine running the director and 
> storage deamon. The storage daemon was stroing data to files on a shared 
> directory as the storage is on a NAS.
>  
> Now I have build bacula-sd for the NAS to avoid this duplicate transfer. I 
> have configured one client to use the new storage but while it uses it, it 
> claims to still contact the “old” storage daemon on the bacula node.
>  
> Using bacula 13.0.4
>  
> Here is the storage definition in bacula-dir.conf (vTape1 is the original 1, 
> vTape2 the new one): 
> Storage {
>   Name = "vTape1"
>   SdPort = 9103
>   Address = "bacula.home "
>   Password = "…deleted…"
>   Device = "vChanger1"
>   MediaType = "vtape1"
>   Autochanger = "vTape1"
>   MaximumConcurrentJobs = 2
> }
> Storage {
>   Name = "vTape2"
>   SdPort = 9103
>   Address = "nas1.home "
>   Password = "…deleted…"
>   Device = "vChanger2"
>   MediaType = "vtape2"
>   Autochanger = "vTape2"
>   MaximumConcurrentJobs = 2
> }
>  
> The client pool definition looks now like:
>  
> Pool {
>   Name = "james1-Full-Pool"
>   Description = "Pool for client james1 full backups"
>   PoolType = "Backup"
>   LabelFormat = "james1-full-"
>   MaximumVolumeJobs = 1
>   MaximumVolumeBytes = 200
>   VolumeRetention = 8726400
>   Storage = "vTape2"
>   Catalog = "MyCatalog"
> }
>  
> I have tried a manual and the scheduled job with same result:
>  
> *(James1-fd says:
>  
> 25-Apr-2024 01:00:00 james1-fd: bsockcore.c:472-7062 OK connected to server  
> Storage daemon bacula.home:9103. socket=10.1.10.111.60144:10.1.200.12.9103 
> s=0x7fa01c01ac88
> 2
>  
> The full log:
>  
> 25-Apr-2024 01:00:00 james1-fd: bnet_server.c:235-0 Accept 
> socket=10.1.10.111.9102:10.1.200.12.45200 s=0x563bfba72728
> 25-Apr-2024 01:00:00 james1-fd: authenticate.c:67-0 authenticate dir: Hello 
> Director bacula-dir calling 10002 tlspsk=100
> 25-Apr-2024 01:00:00 james1-fd: authenticatebase.cc:365-0 TLSPSK Remote need 
> 100
> 25-Apr-2024 01:00:00 james1-fd: authenticate.c:90-0 *** No FD compression to 
> DIR
> 25-Apr-2024 01:00:00 james1-fd: authenticatebase.cc:335-0 TLSPSK Local need 
> 100
> 25-Apr-2024 01:00:00 james1-fd: authenticatebase.cc:563-0 TLSPSK Start PSK
> 25-Apr-2024 01:00:00 james1-fd: bnet.c:96-0 TLS server negotiation 
> established.
> 25-Apr-2024 01:00:00 james1-fd: cram-md5.c:68-0 send: auth cram-md5 challenge 
> <2032624038.1713999600@james1-fd> ssl=0
> 25-Apr-2024 01:00:00 james1-fd: cram-md5.c:156-0 sending resp to challenge: 
> L6/ZMB/xti+re9kmB4sR+D
> 25-Apr-2024 01:00:00 james1-fd: events.c:48-0 Events: code=FC0002 
> daemon=james1-fd ref=0x7fa01c00b0a8 type=connection source=bacula-dir 
> text=Director connection
> 25-Apr-2024 01:00:00 james1-fd: fd_plugins.c:1714-7062 Instantiate 
> plugin_ctx=563bfbb34378 JobId=7062
> 25-Apr-2024 01:00:00 james1-fd: fd_plugins.c:254-7062 plugin_ctx=563bfbb34378 
> JobId=7062
> 25-Apr-2024 01:00:00 james1-fd: fd_plugins.c:147-7062 name= len=0 
> plugin=bpipe-fd.so plen=5
> 25-Apr-2024 01:00:00 james1-fd: job.c:2499-7062 level_cmd: level = full  
> mtime_only=0
> 25-Apr-2024 01:00:00 james1-fd: fd_plugins.c:254-7062 plugin_ctx=563bfbb34378 
> JobId=7062
> 25-Apr-2024 01:00:00 james1-fd: fd_plugins.c:147-7062 name= len=0 
> plugin=bpipe-fd.so plen=5
> 25-Apr-2024 01:00:00 james1-fd: fd_plugins.c:254-7062 plugin_ctx=563bfbb34378 
> JobId=7062
> 25-Apr-2024 01:00:00 james1-fd: fd_plugins.c:147-7062 name= len=0 
> plugin=bpipe-fd.so plen=5
> 25-Apr-2024 01:00:00 james1-fd: bsockcore.c:472-7062 OK connected to server  
> Storage daemon bacula.home:9103. socket=10.1.10.111.60144:10.1.200.12.9103 
> s=0x7fa01c01ac88
> 25-Apr-2024 01:00:00 james1-fd: authenticatebase.cc:335-7062 TLSPSK Local 
> need 100
> 25-Apr-2024 01:00:05 james1-fd: hello.c:183-7062 Recv caps from SD failed. 
> ERR=Success
> 25-Apr-2024 01:00:05 james1-fd: hello.c:185-7062 Recv caps from SD failed. 
> ERR=Success
> 25-Apr-2024 01:00:05 james1-fd: events.c:48-7062 Events: code=FC0001 
> daemon=james1-fd ref=0x7fa01c00b0a8 type=connection source=bacula-dir 
> text=Director disconnection
> 25-Apr-2024 01:00:05 james1-fd: fd_plugins.c:1749-7062 Free instance 
> plugin_ctx=563bfbb34378 JobId=7062
>  
> The job log on the director confirms:
>  
> 2024-04-25 01:00:00 bacula-dir JobId 7062: Connected to Storage "vTape2" at 
> bacula.home:9103 with TLS
>  
> So correct storage but bad server. Note that vTape 2 has always been pointing 
> to nas1 (not bacula) and the director (as well as james1-fd and both storage 
> deamons) was restarted several times
>  
> The storage daemon on nas1 reports only a connection from the director, the 
> ip address of the client (10.1.10.111) is never seen:
>  
> 25-Apr-2024 01:00:00 nas1-sd: bnet_server.c:235-0 Accept 
> 

Re: [Bacula-users] VSS

2024-04-25 Thread Radosław Korzeniewski
Hello,

śr., 24 kwi 2024 o 10:21 Mehrdad Ravanbod 
napisał(a):

> Hi
>
> You right in saying that bacula can use VSS to do backups in Windows
> systems, however It is my understanding that the VSS backup file is put
> into a "volume" file which makes it not accesible to VSS tools. In a
> windows system u can do straight VSS backup which can then be read by VSS
> tools and chcked/restored, however this not practical when there are many
> clients even with automation via powershell or other form of scripting.
> having a backup system to easily check the state of backups and keeping
> track of them is abetter solution, which is why i am considering bacula
>
> As I said i am new to bacula, so it maybe that it is possible to do
> backups(VSS or otherwise) with bacula that does not use "Volume" files(I am
> backing up to disk, not a a tape drive)
>
So you are not referring to VSS, but any backup created by Bacula, right?
You are concerned that Bacula creates a Bacula Volume or Volumes, where all
backups are stored. Is this what you want to avoid?
It is not about VSS, but how Bacula stores its backups?

> So I guess this is what my questions is, is it possible to get Bacula to
> do backups with VSS(or even otherwise, simple file copying with or without
> compression/encryption) without using "Volume" files, i.e the backup files
> are saved as indiviual files and not all put together in a "volume" file.
>
A simple question is no. You can't create a fully working, platform
independent backup without using Volume files (which are basically archive
files like zip, tar, etc.). A single file backup includes multiple data
streams for this file: metadata, data, acl data, xattr data, resource
forks, encryption data, deduplication references, etc. Bacula Volume can
store all different backup streams in a single file you can copy elsewhere
having all data you require for full recovery. Even a billion files can be
saved in the single volume in the space efficient, optimal way.
OTOH, why do you need to avoid Bacula Volume? This volume is like tar or
zip, and people do your backups with it without complaints.

> The volume files seem to be there more for a tape based system, the
> concept is not really neded if you are backing up to disk
>
Not true. A single file (volume) has advantages on disks too: it is a
single directory entry, faster throughput on both write and read, space
efficient especially for small files, platform independent, support
multiple streams and distinct attributes for single file, easy and fast
copy to different location or machine, etc.
An advantage one could think of is that a restore from directory tree
archive could be faster for a multi-terabyte backup when you need to
restore a single small file. But Bacula keeps track of every file archived
in volume (some kind of indexing) and such restore takes almost no time as
Bacula can seek to the required location and read from there - for every
distinct file. So, no advantage at all.

best regards
-- 
Radosław Korzeniewski
rados...@korzeniewski.net
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] bacula-fd appearing to use wrong storage server

2024-04-25 Thread gaston.gloesener--- via Bacula-users
Until now I did run bacula in a virtual machine running the director and 
storage deamon. The storage daemon was stroing data to files on a shared 
directory as the storage is on a NAS.

 

Now I have build bacula-sd for the NAS to avoid this duplicate transfer. I have 
configured one client to use the new storage but while it uses it, it claims to 
still contact the “old” storage daemon on the bacula node.

 

Using bacula 13.0.4

 

Here is the storage definition in bacula-dir.conf (vTape1 is the original 1, 
vTape2 the new one): 

Storage {

  Name = "vTape1"

  SdPort = 9103

  Address = "bacula.home "

  Password = "…deleted…"

  Device = "vChanger1"

  MediaType = "vtape1"

  Autochanger = "vTape1"

  MaximumConcurrentJobs = 2

}

Storage {

  Name = "vTape2"

  SdPort = 9103

  Address = "nas1.home "

  Password = "…deleted…"

  Device = "vChanger2"

  MediaType = "vtape2"

  Autochanger = "vTape2"

  MaximumConcurrentJobs = 2

}

 

The client pool definition looks now like:

 

Pool {

  Name = "james1-Full-Pool"

  Description = "Pool for client james1 full backups"

  PoolType = "Backup"

  LabelFormat = "james1-full-"

  MaximumVolumeJobs = 1

  MaximumVolumeBytes = 200

  VolumeRetention = 8726400

  Storage = "vTape2"

  Catalog = "MyCatalog"

}

 

I have tried a manual and the scheduled job with same result:

 

James1-fd says:

 

25-Apr-2024 01:00:00 james1-fd: bsockcore.c:472-7062 OK connected to server  
Storage daemon bacula.home:9103. socket=10.1.10.111.60144:10.1.200.12.9103 
s=0x7fa01c01ac88

2

 

The full log:

 

25-Apr-2024 01:00:00 james1-fd: bnet_server.c:235-0 Accept 
socket=10.1.10.111.9102:10.1.200.12.45200 s=0x563bfba72728

25-Apr-2024 01:00:00 james1-fd: authenticate.c:67-0 authenticate dir: Hello 
Director bacula-dir calling 10002 tlspsk=100

25-Apr-2024 01:00:00 james1-fd: authenticatebase.cc:365-0 TLSPSK Remote need 100

25-Apr-2024 01:00:00 james1-fd: authenticate.c:90-0 *** No FD compression to DIR

25-Apr-2024 01:00:00 james1-fd: authenticatebase.cc:335-0 TLSPSK Local need 100

25-Apr-2024 01:00:00 james1-fd: authenticatebase.cc:563-0 TLSPSK Start PSK

25-Apr-2024 01:00:00 james1-fd: bnet.c:96-0 TLS server negotiation established.

25-Apr-2024 01:00:00 james1-fd: cram-md5.c:68-0 send: auth cram-md5 challenge 
<2032624038.1713999600@james1-fd> ssl=0

25-Apr-2024 01:00:00 james1-fd: cram-md5.c:156-0 sending resp to challenge: 
L6/ZMB/xti+re9kmB4sR+D

25-Apr-2024 01:00:00 james1-fd: events.c:48-0 Events: code=FC0002 
daemon=james1-fd ref=0x7fa01c00b0a8 type=connection source=bacula-dir 
text=Director connection

25-Apr-2024 01:00:00 james1-fd: fd_plugins.c:1714-7062 Instantiate 
plugin_ctx=563bfbb34378 JobId=7062

25-Apr-2024 01:00:00 james1-fd: fd_plugins.c:254-7062 plugin_ctx=563bfbb34378 
JobId=7062

25-Apr-2024 01:00:00 james1-fd: fd_plugins.c:147-7062 name= len=0 
plugin=bpipe-fd.so plen=5

25-Apr-2024 01:00:00 james1-fd: job.c:2499-7062 level_cmd: level = full  
mtime_only=0

25-Apr-2024 01:00:00 james1-fd: fd_plugins.c:254-7062 plugin_ctx=563bfbb34378 
JobId=7062

25-Apr-2024 01:00:00 james1-fd: fd_plugins.c:147-7062 name= len=0 
plugin=bpipe-fd.so plen=5

25-Apr-2024 01:00:00 james1-fd: fd_plugins.c:254-7062 plugin_ctx=563bfbb34378 
JobId=7062

25-Apr-2024 01:00:00 james1-fd: fd_plugins.c:147-7062 name= len=0 
plugin=bpipe-fd.so plen=5

25-Apr-2024 01:00:00 james1-fd: bsockcore.c:472-7062 OK connected to server  
Storage daemon bacula.home:9103. socket=10.1.10.111.60144:10.1.200.12.9103 
s=0x7fa01c01ac88

25-Apr-2024 01:00:00 james1-fd: authenticatebase.cc:335-7062 TLSPSK Local need 
100

25-Apr-2024 01:00:05 james1-fd: hello.c:183-7062 Recv caps from SD failed. 
ERR=Success

25-Apr-2024 01:00:05 james1-fd: hello.c:185-7062 Recv caps from SD failed. 
ERR=Success

25-Apr-2024 01:00:05 james1-fd: events.c:48-7062 Events: code=FC0001 
daemon=james1-fd ref=0x7fa01c00b0a8 type=connection source=bacula-dir 
text=Director disconnection

25-Apr-2024 01:00:05 james1-fd: fd_plugins.c:1749-7062 Free instance 
plugin_ctx=563bfbb34378 JobId=7062

 

The job log on the director confirms:

 

2024-04-25 01:00:00 bacula-dir JobId 7062: Connected to Storage "vTape2" at 
bacula.home:9103 with TLS

 

So correct storage but bad server. Note that vTape 2 has always been pointing 
to nas1 (not bacula) and the director (as well as james1-fd and both storage 
deamons) was restarted several times

 

The storage daemon on nas1 reports only a connection from the director, the ip 
address of the client (10.1.10.111) is never seen:

 

25-Apr-2024 01:00:00 nas1-sd: bnet_server.c:235-0 Accept 
socket=10.1.11.1.9103:10.1.200.12.40796 s=0x555d9b1de468

25-Apr-2024 01:00:00 nas1-sd: dircmd.c:195-0 Got a DIR connection at 
25-Apr-2024 01:00:00

25-Apr-2024 01:00:00 nas1-sd: authenticatebase.cc:365-0 TLSPSK Remote need 100

25-Apr-2024 01:00:00 nas1-sd: authenticatebase.cc:335-0 TLSPSK Local need 100

25-Apr-2024 01:00:00 nas1-sd: authenticatebase.cc:563-0 TLSPSK Start PSK


Re: [Bacula-users] VSS

2024-04-25 Thread Andrea Venturoli

On 4/24/24 10:21, Mehrdad Ravanbod wrote:

is it possible to get Bacula to 
do backups with VSS(or even otherwise, simple file copying with or 
without compression/encryption) without using "Volume" files, i.e the 
backup files are saved as indiviual files and not all put together in a 
"volume" file.


No.

 bye
av.


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


Re: [Bacula-users] Fix documentation on deduplication

2024-04-24 Thread Gary R. Schmidt

On 25/04/2024 00:47, Martin Simmons wrote:

On Wed, 24 Apr 2024 23:40:31 +1000, Gary R Schmidt said:


On 24/04/2024 22:33, Gary R. Schmidt wrote:

On 24/04/2024 21:30, Roberto Greiner wrote:


Em 24/04/2024 04:30, Radosław Korzeniewski escreveu:

Hello,

wt., 23 kwi 2024 o 13:33 Roberto Greiner 
napisał(a):


     Em 23/04/2024 04:34, Radosław Korzeniewski escreveu:

     Hello,

     śr., 17 kwi 2024 o 14:01 Roberto Greiner 
     napisał(a):


     The error is at the end of the page, where it says that you
     can see how
     much space is being used using 'df -h', but the problem is
     that df can't
     actually see the space gain from dedup, it shows how much
     would be used
     without dedup.


     This command (df -h) shows how much allocated and free space is
     available on the filesystem. So when you have a dedup ratio 20:1,
     and you wrote 20TB, then your df command shows 1TB allocated.


     But that is the exact problem I had. df did NOT show 1TB
     allocated. It indicated 20TB allocated (yes, in ZFS).

I have not used ZFS Dedup for a long time (I'm a ZFS user from the
first beta in Solaris), so I'm curious - if your zpool is 2TB in size
and you have a 20:1 dedup ratio with 20TB saved and 1TB allocated
then what df shows for you?
Something like this?
Size: 2TB
Used: 20TB
Avail: 1TB
Use%: 2000%


No, the values are quite different. I wrote 20tb to stay with the
example previously given. My actual numbers are:

df: 2,9TB used
zpool list: 862GB used, 3.4x dedup level.
Actual partition size: 7.2TB


You use zpool list to examine filespace.
Or zfs list.


On FreeBSD at least, zfs list will show the same as df (i.e. will include all
copies of the deduplicated data in the USED column).

I think the reason is that deduplication is done at the pool level, so there
is no single definition of which dataset owns each deduplicated block.  As a
result, the duplicates have to be counted multiple times.  This is different
from a cloned dataset, where the original dataset owns any blocks that are
shared.
That's correct, zfs list gives the logical filespace in use.  Sorry.


If you do "zfs get used,compressratio filesystem" then you can play with 
the values returned...


$ for i in `zfs list -r zpool | sed 1d | awk '{print $1}'`
do
zfs get used,compressratio $i | sed 1d
done
gives a list of very interesting numbers.  :-)

Cheers,
GaryB-)


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


Re: [Bacula-users] Fix documentation on deduplication

2024-04-24 Thread Martin Simmons
> On Wed, 24 Apr 2024 23:40:31 +1000, Gary R Schmidt said:
> 
> On 24/04/2024 22:33, Gary R. Schmidt wrote:
> > On 24/04/2024 21:30, Roberto Greiner wrote:
> >>
> >> Em 24/04/2024 04:30, Radosław Korzeniewski escreveu:
> >>> Hello,
> >>>
> >>> wt., 23 kwi 2024 o 13:33 Roberto Greiner  
> >>> napisał(a):
> >>>
> >>>
> >>>     Em 23/04/2024 04:34, Radosław Korzeniewski escreveu:
>      Hello,
> 
>      śr., 17 kwi 2024 o 14:01 Roberto Greiner 
>      napisał(a):
> 
> 
>      The error is at the end of the page, where it says that you
>      can see how
>      much space is being used using 'df -h', but the problem is
>      that df can't
>      actually see the space gain from dedup, it shows how much
>      would be used
>      without dedup.
> 
> 
>      This command (df -h) shows how much allocated and free space is
>      available on the filesystem. So when you have a dedup ratio 20:1,
>      and you wrote 20TB, then your df command shows 1TB allocated.
> >>>
> >>>     But that is the exact problem I had. df did NOT show 1TB
> >>>     allocated. It indicated 20TB allocated (yes, in ZFS).
> >>>
> >>> I have not used ZFS Dedup for a long time (I'm a ZFS user from the 
> >>> first beta in Solaris), so I'm curious - if your zpool is 2TB in size 
> >>> and you have a 20:1 dedup ratio with 20TB saved and 1TB allocated 
> >>> then what df shows for you?
> >>> Something like this?
> >>> Size: 2TB
> >>> Used: 20TB
> >>> Avail: 1TB
> >>> Use%: 2000%
> >>>
> >> No, the values are quite different. I wrote 20tb to stay with the 
> >> example previously given. My actual numbers are:
> >>
> >> df: 2,9TB used
> >> zpool list: 862GB used, 3.4x dedup level.
> >> Actual partition size: 7.2TB
> >>
> > You use zpool list to examine filespace.
> > Or zfs list.

On FreeBSD at least, zfs list will show the same as df (i.e. will include all
copies of the deduplicated data in the USED column).

I think the reason is that deduplication is done at the pool level, so there
is no single definition of which dataset owns each deduplicated block.  As a
result, the duplicates have to be counted multiple times.  This is different
from a cloned dataset, where the original dataset owns any blocks that are
shared.

__Martin


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


Re: [Bacula-users] Fix documentation on deduplication

2024-04-24 Thread Martin Simmons
> On Wed, 24 Apr 2024 09:30:15 +0200, Radosław Korzeniewski said:
> 
> Hello,
> 
> wt., 23 kwi 2024 o 13:33 Roberto Greiner  napisał(a):
> 
> >
> > Em 23/04/2024 04:34, Radosław Korzeniewski escreveu:
> >
> > Hello,
> >
> > śr., 17 kwi 2024 o 14:01 Roberto Greiner  napisał(a):
> >
> >>
> >> The error is at the end of the page, where it says that you can see how
> >> much space is being used using 'df -h', but the problem is that df can't
> >> actually see the space gain from dedup, it shows how much would be used
> >> without dedup.
> >>
> >>
> > This command (df -h) shows how much allocated and free space is available
> > on the filesystem. So when you have a dedup ratio 20:1, and you wrote 20TB,
> > then your df command shows 1TB allocated.
> >
> > But that is the exact problem I had. df did NOT show 1TB allocated. It
> > indicated 20TB allocated (yes, in ZFS).
> >
> I have not used ZFS Dedup for a long time (I'm a ZFS user from the first
> beta in Solaris), so I'm curious - if your zpool is 2TB in size and you
> have a 20:1 dedup ratio with 20TB saved and 1TB allocated then what df
> shows for you?
> Something like this?
> Size: 2TB
> Used: 20TB
> Avail: 1TB
> Use%: 2000%

No, the Size will say 21TB in that situation (on FreeBSD at least).

__Martin


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


Re: [Bacula-users] Fix documentation on deduplication

2024-04-24 Thread Gary R. Schmidt

On 24/04/2024 22:33, Gary R. Schmidt wrote:

On 24/04/2024 21:30, Roberto Greiner wrote:


Em 24/04/2024 04:30, Radosław Korzeniewski escreveu:

Hello,

wt., 23 kwi 2024 o 13:33 Roberto Greiner  
napisał(a):



    Em 23/04/2024 04:34, Radosław Korzeniewski escreveu:

    Hello,

    śr., 17 kwi 2024 o 14:01 Roberto Greiner 
    napisał(a):


    The error is at the end of the page, where it says that you
    can see how
    much space is being used using 'df -h', but the problem is
    that df can't
    actually see the space gain from dedup, it shows how much
    would be used
    without dedup.


    This command (df -h) shows how much allocated and free space is
    available on the filesystem. So when you have a dedup ratio 20:1,
    and you wrote 20TB, then your df command shows 1TB allocated.


    But that is the exact problem I had. df did NOT show 1TB
    allocated. It indicated 20TB allocated (yes, in ZFS).

I have not used ZFS Dedup for a long time (I'm a ZFS user from the 
first beta in Solaris), so I'm curious - if your zpool is 2TB in size 
and you have a 20:1 dedup ratio with 20TB saved and 1TB allocated 
then what df shows for you?

Something like this?
Size: 2TB
Used: 20TB
Avail: 1TB
Use%: 2000%

No, the values are quite different. I wrote 20tb to stay with the 
example previously given. My actual numbers are:


df: 2,9TB used
zpool list: 862GB used, 3.4x dedup level.
Actual partition size: 7.2TB


You use zpool list to examine filespace.
Or zfs list.



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


Re: [Bacula-users] Fix documentation on deduplication

2024-04-24 Thread Gary R. Schmidt

On 24/04/2024 21:30, Roberto Greiner wrote:


Em 24/04/2024 04:30, Radosław Korzeniewski escreveu:

Hello,

wt., 23 kwi 2024 o 13:33 Roberto Greiner  napisał(a):


Em 23/04/2024 04:34, Radosław Korzeniewski escreveu:

Hello,

śr., 17 kwi 2024 o 14:01 Roberto Greiner 
napisał(a):


The error is at the end of the page, where it says that you
can see how
much space is being used using 'df -h', but the problem is
that df can't
actually see the space gain from dedup, it shows how much
would be used
without dedup.


This command (df -h) shows how much allocated and free space is
available on the filesystem. So when you have a dedup ratio 20:1,
and you wrote 20TB, then your df command shows 1TB allocated.


But that is the exact problem I had. df did NOT show 1TB
allocated. It indicated 20TB allocated (yes, in ZFS).

I have not used ZFS Dedup for a long time (I'm a ZFS user from the 
first beta in Solaris), so I'm curious - if your zpool is 2TB in size 
and you have a 20:1 dedup ratio with 20TB saved and 1TB allocated then 
what df shows for you?

Something like this?
Size: 2TB
Used: 20TB
Avail: 1TB
Use%: 2000%

No, the values are quite different. I wrote 20tb to stay with the 
example previously given. My actual numbers are:


df: 2,9TB used
zpool list: 862GB used, 3.4x dedup level.
Actual partition size: 7.2TB


You use zpool list to examine filespace.

Cheers,
GaryB-)


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


Re: [Bacula-users] VSS

2024-04-24 Thread Lionel PLASSE
If you know where your vhd file is, just create a single FileSet and schedule 
it .
Look at a WindowsImageBackup using VSS and how it is composed  : it contains 
vhdx file.
So You juste have to create a FileSet specifiying the correct dir of your vhdx 
for example
But You have to know that you cannot access to the Bacula volume file directly, 
you have to restore the entire file before using it.  But it is not pertinent 
for me.
Bacula is Linux oriented so file oriented, so it's a quite different for 
windows. (system state, recovery point etc.). to back-up file and to back-up 
System state is not the same for windows.




-Message d'origine-
De : Mehrdad Ravanbod  
Envoyé : mercredi 24 avril 2024 11:33
À : Lionel PLASSE ; Radosław Korzeniewski 

Cc : bacula-users 
Objet : Re: [Bacula-users] VSS

Hi

Thanks for your reply

This makes sense, and is what i could make work, guess i could do a PS script 
to make a VSS snapshot of files i need, save it in file and have bacula backup 
that file instead of using bacula doing a VSS backup of iles But question is, 
is it possiple to get bacula to backup the .vhd file as a separate file ?? Do u 
have an example conf file you can share or some documentation on the net??

Sincerely /Mehrdad

On 2024-04-24 11:15, Lionel PLASSE wrote:
> For me vss make a snapshot of a volume, like in hyper-v virtual disk. This 
> shnapshot vor windows is a virtual disk file like .vhd (or .vdi). So you can 
> mount this volume file a work with files in the snapshot.
>
> So with Bacula to use vss agent you have to make a vss backup with vss agent 
> by windows and backup this vss snapshot file into Bacula to do what you want 
> if a understand well.
>
> bacula deals with the C VSS API, as you would in powershell, it does not 
> directly save the VSS result but uses the API functions to read the snapshot 
> and recover the files stopped at a given time.
>
>
>
>
>
> De : Mehrdad Ravanbod  Envoyé : mercredi 
> 24 avril 2024 10:22 À : Radosław Korzeniewski 
>  Cc : bacula-users 
> 
> Objet : Re: [Bacula-users] VSS
>
> Hi
> You right in saying that bacula can use VSS to do backups in Windows 
> systems, however It is my understanding that the VSS backup file is 
> put into a "volume" file which makes it not accesible to VSS tools. In 
> a windows system u can do straight VSS backup which can then be read 
> by VSS tools and chcked/restored, however this not practical when there are 
> many clients even with automation via powershell or other form of scripting. 
> having a backup system to easily check the state of backups and keeping track 
> of them is abetter solution, which is why i am considering bacula As I said i 
> am new to bacula, so it maybe that it is possible to do backups(VSS or 
> otherwise) with bacula that does not use "Volume" files(I am backing up to 
> disk, not a a tape drive) So I guess this is what my questions is, is it 
> possible to get Bacula to do backups with VSS(or even otherwise, simple file 
> copying with or without compression/encryption) without using "Volume" files, 
> i.e the backup files are saved as indiviual files and not all put together in 
> a "volume" file. The volume files seem to be there more for a tape based 
> system, the concept is not really neded if you are backing up to disk Regards 
> /Mehrdad On 2024-04-24 09:23, Radosław Korzeniewski wrote:
> Hello,
>
> śr., 24 kwi 2024 o 08:44 Mehrdad Ravanbod 
>  napisał(a):
> HI
> Thanks for taking the time to answer, but that was actualy not the 
> question I am aware that VSS is for copying files that maybe in Use in 
> windows env., As i said most of our backup is from machines which are 
> windows, both server and client My question is if it possible to get bacula 
> to not put a VSS backup in a volume(which makes it impossible to restore if 
> by VSS tools if something happens to the bacula server), You do not need any 
> vss tools to make VSS backup with Bacula. Bacula will handle all for you.
> rather save it as it is, that is a sperate file, readable by teh VSS 
> system What does it mean "save it as it is" - I'm not familiar with VSS 
> internal nor advanced usage.
> What do you need to do?
>
> Radek



smime.p7s
Description: S/MIME cryptographic signature
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fix documentation on deduplication

2024-04-24 Thread Roberto Greiner


Em 24/04/2024 04:30, Radosław Korzeniewski escreveu:

Hello,

wt., 23 kwi 2024 o 13:33 Roberto Greiner  napisał(a):


Em 23/04/2024 04:34, Radosław Korzeniewski escreveu:

Hello,

śr., 17 kwi 2024 o 14:01 Roberto Greiner 
napisał(a):


The error is at the end of the page, where it says that you
can see how
much space is being used using 'df -h', but the problem is
that df can't
actually see the space gain from dedup, it shows how much
would be used
without dedup.


This command (df -h) shows how much allocated and free space is
available on the filesystem. So when you have a dedup ratio 20:1,
and you wrote 20TB, then your df command shows 1TB allocated.


But that is the exact problem I had. df did NOT show 1TB
allocated. It indicated 20TB allocated (yes, in ZFS).

I have not used ZFS Dedup for a long time (I'm a ZFS user from the 
first beta in Solaris), so I'm curious - if your zpool is 2TB in size 
and you have a 20:1 dedup ratio with 20TB saved and 1TB allocated then 
what df shows for you?

Something like this?
Size: 2TB
Used: 20TB
Avail: 1TB
Use%: 2000%

No, the values are quite different. I wrote 20tb to stay with the 
example previously given. My actual numbers are:


df: 2,9TB used
zpool list: 862GB used, 3.4x dedup level.
Actual partition size: 7.2TB

Roberto


--

-
Marcos Roberto Greiner

   Os otimistas acham que estamos no melhor dos mundos
Os pessimistas tem medo de que isto seja verdade
 James Branch Cabell
  -
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] VSS

2024-04-24 Thread Lionel PLASSE
For me vss make a snapshot of a volume, like in hyper-v virtual disk. This 
shnapshot vor windows is a virtual disk file like .vhd (or .vdi). So you can 
mount this volume file a work with files in the snapshot. 

So with Bacula to use vss agent you have to make a vss backup with vss agent by 
windows and backup this vss snapshot file into Bacula to do what you want if a 
understand well.

bacula deals with the C VSS API, as you would in powershell, it does not 
directly save the VSS result but uses the API functions to read the snapshot 
and recover the files stopped at a given time.





De : Mehrdad Ravanbod  
Envoyé : mercredi 24 avril 2024 10:22
À : Radosław Korzeniewski 
Cc : bacula-users 
Objet : Re: [Bacula-users] VSS

Hi
You right in saying that bacula can use VSS to do backups in Windows systems, 
however It is my understanding that the VSS backup file is put into a "volume" 
file which makes it not accesible to VSS tools. In a windows system u can do 
straight VSS backup which can then be read by VSS tools and chcked/restored, 
however this not practical when there are many clients even with automation via 
powershell or other form of scripting. having a backup system to easily check 
the state of backups and keeping track of them is abetter solution, which is 
why i am considering bacula
As I said i am new to bacula, so it maybe that it is possible to do backups(VSS 
or otherwise) with bacula that does not use "Volume" files(I am backing up to 
disk, not a a tape drive)
So I guess this is what my questions is, is it possible to get Bacula to do 
backups with VSS(or even otherwise, simple file copying with or without 
compression/encryption) without using "Volume" files, i.e the backup files are 
saved as indiviual files and not all put together in a "volume" file. The 
volume files seem to be there more for a tape based system, the concept is not 
really neded if you are backing up to disk
Regards /Mehrdad
On 2024-04-24 09:23, Radosław Korzeniewski wrote:
Hello,

śr., 24 kwi 2024 o 08:44 Mehrdad Ravanbod  
napisał(a):
HI
Thanks for taking the time to answer, but that was actualy not the question
I am aware that VSS is for copying files that maybe in Use in windows env., As 
i said most of our backup is from machines which are windows, both server and 
client
My question is if it possible to get bacula to not put a VSS backup in a 
volume(which makes it impossible to restore if by VSS tools if something 
happens to the bacula server),
You do not need any vss tools to make VSS backup with Bacula. Bacula will 
handle all for you.
rather save it as it is, that is a sperate file, readable by teh VSS system
What does it mean "save it as it is" - I'm not familiar with VSS internal nor 
advanced usage.
What do you need to do?

Radek
-- 
Radosław Korzeniewski
mailto:rados...@korzeniewski.net


smime.p7s
Description: S/MIME cryptographic signature
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] VSS

2024-04-24 Thread Mehrdad Ravanbod

Hi

Thanks for your reply

This makes sense, and is what i could make work, guess i could do a PS 
script to make a VSS snapshot of files i need, save it in file and have 
bacula backup that file instead of using bacula doing a VSS backup of iles
But question is, is it possiple to get bacula to backup the .vhd file as 
a separate file ?? Do u have an example conf file you can share or some 
documentation on the net??


Sincerely /Mehrdad

On 2024-04-24 11:15, Lionel PLASSE wrote:

For me vss make a snapshot of a volume, like in hyper-v virtual disk. This 
shnapshot vor windows is a virtual disk file like .vhd (or .vdi). So you can 
mount this volume file a work with files in the snapshot.

So with Bacula to use vss agent you have to make a vss backup with vss agent by 
windows and backup this vss snapshot file into Bacula to do what you want if a 
understand well.

bacula deals with the C VSS API, as you would in powershell, it does not 
directly save the VSS result but uses the API functions to read the snapshot 
and recover the files stopped at a given time.





De : Mehrdad Ravanbod 
Envoyé : mercredi 24 avril 2024 10:22
À : Radosław Korzeniewski 
Cc : bacula-users 
Objet : Re: [Bacula-users] VSS

Hi
You right in saying that bacula can use VSS to do backups in Windows systems, however It 
is my understanding that the VSS backup file is put into a "volume" file which 
makes it not accesible to VSS tools. In a windows system u can do straight VSS backup 
which can then be read by VSS tools and chcked/restored, however this not practical when 
there are many clients even with automation via powershell or other form of scripting. 
having a backup system to easily check the state of backups and keeping track of them is 
abetter solution, which is why i am considering bacula
As I said i am new to bacula, so it maybe that it is possible to do backups(VSS or 
otherwise) with bacula that does not use "Volume" files(I am backing up to 
disk, not a a tape drive)
So I guess this is what my questions is, is it possible to get Bacula to do backups with VSS(or 
even otherwise, simple file copying with or without compression/encryption) without using 
"Volume" files, i.e the backup files are saved as indiviual files and not all put 
together in a "volume" file. The volume files seem to be there more for a tape based 
system, the concept is not really neded if you are backing up to disk
Regards /Mehrdad
On 2024-04-24 09:23, Radosław Korzeniewski wrote:
Hello,

śr., 24 kwi 2024 o 08:44 Mehrdad Ravanbod  
napisał(a):
HI
Thanks for taking the time to answer, but that was actualy not the question
I am aware that VSS is for copying files that maybe in Use in windows env., As 
i said most of our backup is from machines which are windows, both server and 
client
My question is if it possible to get bacula to not put a VSS backup in a 
volume(which makes it impossible to restore if by VSS tools if something 
happens to the bacula server),
You do not need any vss tools to make VSS backup with Bacula. Bacula will 
handle all for you.
rather save it as it is, that is a sperate file, readable by teh VSS system
What does it mean "save it as it is" - I'm not familiar with VSS internal nor 
advanced usage.
What do you need to do?

Radek




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


Re: [Bacula-users] VSS

2024-04-24 Thread Mehrdad Ravanbod

Hi

You right in saying that bacula can use VSS to do backups in Windows 
systems, however It is my understanding that the VSS backup file is put 
into a "volume" file which makes it not accesible to VSS tools. In a 
windows system u can do straight VSS backup which can then be read by 
VSS tools and chcked/restored, however this not practical when there are 
many clients even with automation via powershell or other form of 
scripting. having a backup system to easily check the state of backups 
and keeping track of them is abetter solution, which is why i am 
considering bacula


As I said i am new to bacula, so it maybe that it is possible to do 
backups(VSS or otherwise) with bacula that does not use "Volume" files(I 
am backing up to disk, not a a tape drive)


So I guess this is what my questions is, is it possible to get Bacula to 
do backups with VSS(or even otherwise, simple file copying with or 
without compression/encryption) without using "Volume" files, i.e the 
backup files are saved as indiviual files and not all put together in a 
"volume" file. The volume files seem to be there more for a tape based 
system, the concept is not really neded if you are backing up to disk


Regards /Mehrdad

On 2024-04-24 09:23, Radosław Korzeniewski wrote:

Hello,

śr., 24 kwi 2024 o 08:44 Mehrdad Ravanbod 
mailto:mehrdad.ravan...@ampfield.se>> 
napisał(a):


HI

Thanks for taking the time to answer, but that was actualy not the
question
I am aware that VSS is for copying files that maybe in Use in
windows env., As i said most of our backup is from machines which
are windows, both server and client

My question is if it possible to get bacula to not put a VSS
backup in a volume(which makes it impossible to restore if by VSS
tools if something happens to the bacula server),

You do not need any vss tools to make VSS backup with Bacula. Bacula 
will handle all for you.


rather save it as it is, that is a sperate file, readable by teh
VSS system

What does it mean "save it as it is" - I'm not familiar with VSS 
internal nor advanced usage.

What do you need to do?

Radek
--
Radosław Korzeniewski
rados...@korzeniewski.net 
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fix documentation on deduplication

2024-04-24 Thread Radosław Korzeniewski
Hello,

wt., 23 kwi 2024 o 17:10 Martin Simmons  napisał(a):

>
> > But that is the exact problem I had. df did NOT show 1TB allocated. It
> > indicated 20TB allocated (yes, in ZFS).
>
> Yes, that is how df works with ZFS unfortunately (it doesn't know about
> dedup).  See also
>
> https://c0t0d0s0.org/oracle/solaris/english/2009/12/02/df-considered-problematic.c0t0d0s0.html
>

Thanks for the link. I was almost certain that df was working well for ZFS
+ Dedup when I used it.

Radek
-- 
Radosław Korzeniewski
rados...@korzeniewski.net
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fix documentation on deduplication

2024-04-24 Thread Radosław Korzeniewski
Hello,

wt., 23 kwi 2024 o 13:33 Roberto Greiner  napisał(a):

>
> Em 23/04/2024 04:34, Radosław Korzeniewski escreveu:
>
> Hello,
>
> śr., 17 kwi 2024 o 14:01 Roberto Greiner  napisał(a):
>
>>
>> The error is at the end of the page, where it says that you can see how
>> much space is being used using 'df -h', but the problem is that df can't
>> actually see the space gain from dedup, it shows how much would be used
>> without dedup.
>>
>>
> This command (df -h) shows how much allocated and free space is available
> on the filesystem. So when you have a dedup ratio 20:1, and you wrote 20TB,
> then your df command shows 1TB allocated.
>
> But that is the exact problem I had. df did NOT show 1TB allocated. It
> indicated 20TB allocated (yes, in ZFS).
>
I have not used ZFS Dedup for a long time (I'm a ZFS user from the first
beta in Solaris), so I'm curious - if your zpool is 2TB in size and you
have a 20:1 dedup ratio with 20TB saved and 1TB allocated then what df
shows for you?
Something like this?
Size: 2TB
Used: 20TB
Avail: 1TB
Use%: 2000%

Radek
-- 
Radosław Korzeniewski
rados...@korzeniewski.net
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] VSS

2024-04-24 Thread Radosław Korzeniewski
Hello,

śr., 24 kwi 2024 o 08:44 Mehrdad Ravanbod 
napisał(a):

> HI
>
> Thanks for taking the time to answer, but that was actualy not the question
> I am aware that VSS is for copying files that maybe in Use in windows
> env., As i said most of our backup is from machines which are windows, both
> server and client
>
> My question is if it possible to get bacula to not put a VSS backup in a
> volume(which makes it impossible to restore if by VSS tools if something
> happens to the bacula server),
>
You do not need any vss tools to make VSS backup with Bacula. Bacula will
handle all for you.

> rather save it as it is, that is a sperate file, readable by teh VSS system
>
What does it mean "save it as it is" - I'm not familiar with VSS internal
nor advanced usage.
What do you need to do?

Radek
-- 
Radosław Korzeniewski
rados...@korzeniewski.net
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] VSS

2024-04-24 Thread Mehrdad Ravanbod

HI

Thanks for taking the time to answer, but that was actualy not the question
I am aware that VSS is for copying files that maybe in Use in windows 
env., As i said most of our backup is from machines which are windows, 
both server and client


My question is if it possible to get bacula to not put a VSS backup in a 
volume(which makes it impossible to restore if by VSS tools if something 
happens to the bacula server), rather save it as it is, that is a 
sperate file, readable by teh VSS system


On 2024-04-24 03:29, Jose Alberto wrote:

Hi
https://www.bacula.org/5.1.x-manuals/es/main/main/Windows_Version_Bacula.html#SECTION00346 



VSS is for copying hot files that are being used. That doesn't happen 
with Linux. With Windows yes.


I don't know if that's the question.


On Tue, Apr 23, 2024 at 5:45 AM Mehrdad Ravanbod 
mailto:mehrdad.ravan...@ampfield.se>> 
wrote:


Hi

I am new to bacula, trying to set up a test system for backup of a
mixed
linux and Windows env. (Mostly Windows, server and desktops)

I have gotten it to work more or less, a few issues to work out.
One is
bout VSS, which i assume most people use when doing backups from
windows

It seems that the VSS copies are saved inside Volumes, which makes
impossible to read them indiviualy if something happens to the bacula
server,  it is there a way to get these snapshots to be saved as
files(which could be read with the VSS tools? or not

If yes, how is it configured??

Sincerely /Mehrdad




___
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


[Bacula-users] Bacula-Web 9.5.1 release

2024-04-23 Thread Davide F. via Bacula-users
Hello,

I'm pleased to inform you that Bacula-Web 9.5.1 is now available.

This release mainly focus on fixing / updating the documentation, slightly
improving application security. It also include several  bug fixes.

As usual, I recommand upgrading to latest version to ensure a good and
stable user experience.

You can find more details in the release notes on the GitHub project (
https://github.com/bacula-web/bacula-web/releases/tag/v9.5.1).

Latest Docker image release tag is available on Docker Hub (
https://hub.docker.com/r/baculaweb/bacula-web)

If you found a bug, have a question/feedback, or want to contribute to the
open source project, please take a look at the help chapter
 from the
documentation.

I wish you a great day.

Best regards

Davide

Website - https://www.bacula-web.org
Bacula-Web project on GitHub - https://github.com/bacula-web/bacula-web
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Question about CDP

2024-04-23 Thread Jose Alberto
Hi.

I understand that CDP is a copy that is cached in the same FD and that it
can be restored without the need to request a Restore from the Bacula
administrator?

Being the native JOB that saves the data in the SD?

I still think that if the user's PC burns down. It depends on a direct
restore from Bacula. he he.

-- 
#
#   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] VSS

2024-04-23 Thread Jose Alberto
Hi
https://www.bacula.org/5.1.x-manuals/es/main/main/Windows_Version_Bacula.html#SECTION00346

VSS is for copying hot files that are being used. That doesn't happen with
Linux. With Windows yes.

I don't know if that's the question.


On Tue, Apr 23, 2024 at 5:45 AM Mehrdad Ravanbod <
mehrdad.ravan...@ampfield.se> wrote:

> Hi
>
> I am new to bacula, trying to set up a test system for backup of a mixed
> linux and Windows env. (Mostly Windows, server and desktops)
>
> I have gotten it to work more or less, a few issues to work out. One is
> bout VSS, which i assume most people use when doing backups from windows
>
> It seems that the VSS copies are saved inside Volumes, which makes
> impossible to read them indiviualy if something happens to the bacula
> server,  it is there a way to get these snapshots to be saved as
> files(which could be read with the VSS tools? or not
>
> If yes, how is it configured??
>
> Sincerely /Mehrdad
>
>
>
>
> ___
> 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] Baculum error with 15.0.2 catalog Pg

2024-04-23 Thread Marcin Haba
Hello Jose,

Yes, this Baculum from Bullseye repository is a bit older and not adapted
to Bacula 15.

As you could notice, Bacularis is a better choice for that. It has been
prepared and well tested with Bacula version 15.

The general idea of Bacularis for supported Bacula versions is to help
users stop thinking in a way: "Which Bacularis version should I use with
which Bacula version?". It is something that in Bacularis we would like to
avoid. It works with all Bacula versions starting from 9 up till latest.
So, if somebody has a relatively modern Bacula environment, he/she can
always take the latest Bacularis and be sure that it will work.

Best regards,
Marcin Haba (gani)

On Tue, 23 Apr 2024 at 12:55, Jose Alberto  wrote:

> Hi.
>
> I have new installation clean
>
> Debian 12  (ok)
> Bacula 15.0.2  (ok)
> Postgres  (ok)
> Baculum.  (error open dashboard,  show query error), "using the bullseye
> repo, because they are not enabled for debian 12. maybe that's it. "
>
> But with Bacularis  This does not happen.
>
>
> --
> #
> #   Sistema Operativo: Debian  #
> #Caracas, Venezuela  #
> #
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>


-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fix documentation on deduplication

2024-04-23 Thread Martin Simmons
> On Tue, 23 Apr 2024 08:31:59 -0300, Roberto Greiner said:
> 
> Em 23/04/2024 04:34, Radosław Korzeniewski escreveu:
> > Hello,
> >
> > śr., 17 kwi 2024 o 14:01 Roberto Greiner  napisał(a):
> >
> >
> > The error is at the end of the page, where it says that you can
> > see how
> > much space is being used using 'df -h', but the problem is that df
> > can't
> > actually see the space gain from dedup, it shows how much would be
> > used
> > without dedup.
> >
> >
> > This command (df -h) shows how much allocated and free space is 
> > available on the filesystem. So when you have a dedup ratio 20:1, and 
> > you wrote 20TB, then your df command shows 1TB allocated.
> 
> But that is the exact problem I had. df did NOT show 1TB allocated. It 
> indicated 20TB allocated (yes, in ZFS).

Yes, that is how df works with ZFS unfortunately (it doesn't know about
dedup).  See also
https://c0t0d0s0.org/oracle/solaris/english/2009/12/02/df-considered-problematic.c0t0d0s0.html

__Martin


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


Re: [Bacula-users] Fix documentation on deduplication

2024-04-23 Thread Radosław Korzeniewski
Hello,

śr., 17 kwi 2024 o 14:01 Roberto Greiner  napisał(a):

>
> The error is at the end of the page, where it says that you can see how
> much space is being used using 'df -h', but the problem is that df can't
> actually see the space gain from dedup, it shows how much would be used
> without dedup.
>
>
This command (df -h) shows how much allocated and free space is available
on the filesystem. So when you have a dedup ratio 20:1, and you wrote 20TB,
then your df command shows 1TB allocated.
Yes, zpool list shows you the exact Dedup ratio achieved without additional
checking or counting. But this command (as mentioned by Heitor) will work
with ZFS only.
Aligned volumes can be used with external deduplication appliances where
zpool command is unavailable. Then you can quickly check with the df -h
command.

Radek
-- 
Radosław Korzeniewski
rados...@korzeniewski.net
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fix documentation on deduplication

2024-04-23 Thread Roberto Greiner


Em 23/04/2024 04:34, Radosław Korzeniewski escreveu:

Hello,

śr., 17 kwi 2024 o 14:01 Roberto Greiner  napisał(a):


The error is at the end of the page, where it says that you can
see how
much space is being used using 'df -h', but the problem is that df
can't
actually see the space gain from dedup, it shows how much would be
used
without dedup.


This command (df -h) shows how much allocated and free space is 
available on the filesystem. So when you have a dedup ratio 20:1, and 
you wrote 20TB, then your df command shows 1TB allocated.


But that is the exact problem I had. df did NOT show 1TB allocated. It 
indicated 20TB allocated (yes, in ZFS).



Yes, zpool list shows you the exact Dedup ratio achieved without 
additional checking or counting. But this command (as mentioned by 
Heitor) will work with ZFS only.
Aligned volumes can be used with external deduplication appliances 
where zpool command is unavailable. Then you can quickly check with 
the df -h command.


Yes zpool listed all the information properly, both the actually 
allocated space and the dedup ratio, and as I said, in ZFS, df is not 
showing the correct information (in an Ubuntu 22.04 and ZFS environment).


Thank you,

Roberto


--
-
Marcos Roberto Greiner

   Os otimistas acham que estamos no melhor dos mundos
Os pessimistas tem medo de que isto seja verdade
 James Branch Cabell
  -
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] IBM TS3500 LTO7 ULT3580-TD7 Sense Key : Data Protect [current] Add. Sense: Operator selected write protect

2024-04-23 Thread Jose Alberto
Have you tried the Direct point-to-point connection Tape <==> server ?

That is, without going through the SAN switch.

You must discard the ZONE configuration on the SAN switch.

This error ERR=Input/output error has only occurred to me when the Drive
(by license) is Read Only. It happened to me with a Drive from an ORACLE
robot.

Or when the tape is damaged.



On Thu, Apr 18, 2024 at 5:43 PM Heitor Faria  wrote:

> Dear Bacula Users,
>
>
>
> I wonder if someone had faced a similar problem that have been haunting me
> for weeks and I found no exact similar case on the internet.
>
> This partitioned tape library with two drivers for the Bacula machine
> cannot perform a weof diretcly:
>
>
>
> [root@localhost Device]# mt -f /dev/tape/by-id/scsi-35005076044064c01-nst
> weof
> /dev/tape/by-id/scsi-35005076044064c01-nst: Input/output error
> mt: The tape is write-protected.
>
>
>
> And the dmesg displays the error:
>
>
>
> [Thu Apr 18 17:32:01 2024] st 14:0:0:0: [st0] Sense Key : Data Protect
> [current]
> [Thu Apr 18 17:32:01 2024] st 14:0:0:0: [st0] Add. Sense: Operator
> selected write protect
>
>
>
> However, if we do an eod before weof, it displays no error.
>
>
>
> [root@localhost Device]# mt -f /dev/tape/by-id/scsi-35005076044064c01-nst
> eod
> [root@localhost Device]# mt -f /dev/tape/by-id/scsi-35005076044064c01-nst
> weof
>
>
>
> But still, I cannot use the tape with Bacula, or test it with btape:
>
>
>
> [root@localhost Device]# /opt/bacula/bin/btape
>  /dev/tape/by-id/scsi-35005076044064c01-nst
> Tape block granularity is 1024 bytes.
> btape: butil.c:296-0 Using device:
> "/dev/tape/by-id/scsi-35005076044064c01-nst" for writing.
> btape: btape.c:475-0 open device "Drive-0"
> (/dev/tape/by-id/scsi-35005076044064c01-nst): OK
> *label
> Enter Volume Name: test
> btape: block.c:301-0 [SE0201] Write error at 0:0 on device "Drive-0"
> (/dev/tape/by-id/scsi-35005076044064c01-nst) Vol=test. ERR=Input/output
> error.
> 18-Apr 17:39 btape JobId 0: Error: block.c:301 [SE0201] Write error at 0:0
> on device "Drive-0" (/dev/tape/by-id/scsi-35005076044064c01-nst) Vol=test.
> ERR=Input/output error.
>
>
>
> And the same dmesg Data Protect message appears.
>
> The curious thing is we are able to write and restore some files using tar
> using the same drive, but only if we manually move the tape:
>
>
>
> [root@localhost Device]# tar cvf
> /dev/tape/by-id/scsi-35005076044064c01-nst /etc/resolv.conf
> tar: Removing leading `/' from member names
> /etc/resolv.conf
> [root@localhost Device]# tar tvf
> /dev/tape/by-id/scsi-35005076044064c01-nst
> tar: This does not look like a tar archive
> tar: Exiting with failure status due to previous errors
> [root@localhost Device]# mt -f /dev/tape/by-id/scsi-35005076044064c01-nst
> bsf 2
> [root@localhost Device]# mt -f /dev/tape/by-id/scsi-35005076044064c01-nst
> fsf
> [root@localhost Device]# tar tvf
> /dev/tape/by-id/scsi-35005076044064c01-nst
> -rw-r--r-- root/root74 2024-04-18 16:24 etc/resolv.conf
>
>
>
> mt status as follows:
>
>
>
> [root@localhost Device]# mt -f /dev/tape/by-id/scsi-35005076044064c01-nst
> status
> SCSI 2 tape drive:
> File number=20, block number=1, partition=0.
> Tape block size 0 bytes. Density code 0x5c (LTO-7).
> Soft error count since last status=0
> General status bits on (101):
>  ONLINE IM_REP_EN
>
>
>
> The tapes are new, LTO7 such as the drive, the red read-only physical tape
> switches are open, no encryption is used by the drivers.
>
> We already tried two different OSes with the same behavior. Ubuntu and
> Rocky Linux.
>
> There are no relevant tape library error logs.
>
> Any hints?
>
>
>
> Rgds.
>
> MSc,MBA Heitor Faria (Miami/USA)
> Bacula LATAM CIO
> mobile1: + 1 909 655-8971
> mobile2: + 55 61 98268-4220
>
> [image: logo] 
> 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


[Bacula-users] Baculum error with 15.0.2 catalog Pg

2024-04-23 Thread Jose Alberto
Hi.

I have new installation clean

Debian 12  (ok)
Bacula 15.0.2  (ok)
Postgres  (ok)
Baculum.  (error open dashboard,  show query error), "using the bullseye
repo, because they are not enabled for debian 12. maybe that's it. "

But with Bacularis  This does not happen.


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


[Bacula-users] VSS

2024-04-23 Thread Mehrdad Ravanbod

Hi

I am new to bacula, trying to set up a test system for backup of a mixed 
linux and Windows env. (Mostly Windows, server and desktops)


I have gotten it to work more or less, a few issues to work out. One is 
bout VSS, which i assume most people use when doing backups from windows


It seems that the VSS copies are saved inside Volumes, which makes 
impossible to read them indiviualy if something happens to the bacula 
server,  it is there a way to get these snapshots to be saved as 
files(which could be read with the VSS tools? or not


If yes, how is it configured??

Sincerely /Mehrdad




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


Re: [Bacula-users] advice about tape drives

2024-04-22 Thread Josh Fisher via Bacula-users
Why not migrate the LTO-2 volumes to disk, then install whatever version 
of tape drive you wish and migrate the disk volumes to the new LTO tapes?



On 4/22/24 11:29, Gary R. Schmidt wrote:

On 23/04/2024 00:58, Alan Polinsky wrote:
I have used Bacula for many years, since version 5. In the past, I 
have mentioned my two Nas's along with various Windows and Linux 
machines get backed up on a nightly basis to tape. Currently that 
tape drive is an LTO3 based drive. Some of the older backups are on 
LTO2 tapes. My tape drive is starting to show its age, and within a 
period of time it will have to be replaced. (Since I am a retired 
programmer on a fixed income, cost, as always becomes an issue.) I 
need to understand the backward capabilities of more recent drives. 
How high could I go with LTO based machines while still maintaining 
the ability to read (and hopefully write) those old LTO2 tapes?



Thank you everyone for your help.



All anyone could ever want to know about LTO tapes: 
.


The rule of thumb is read two back, and write one, but that changed 
with LTO-8.  Sort of.  Sigh.  Read the wikipedia page.


Cheers,
    Gary    B-)


___
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] advice about tape drives

2024-04-22 Thread Sebastian Suchanek

Am 22.04.2024 um 16:58 schrieb Alan Polinsky:

[...]
I need to understand the backward capabilities of more recent drives.


As a rule of thumb, LTO drives can write to one previous generation of 
tapes and read from two previous generations of tapes. (There are some 
exceptions for LTO8 and LTO9.)



How high could I go with LTO based
machines while still maintaining the ability to read (and hopefully
write) those old LTO2 tapes?


LTO2 tapes can be read by LTO2, LTO3 and LTO4 drives and written by LTO2 
and LTO3 drives.



HTH,

Sebastian



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


Re: [Bacula-users] advice about tape drives

2024-04-22 Thread Gary R. Schmidt

On 23/04/2024 00:58, Alan Polinsky wrote:
I have used Bacula for many years, since version 5. In the past, I have 
mentioned my two Nas's along with various Windows and Linux machines get 
backed up on a nightly basis to tape. Currently that tape drive is an 
LTO3 based drive. Some of the older backups are on LTO2 tapes. My tape 
drive is starting to show its age, and within a period of time it will 
have to be replaced. (Since I am a retired programmer on a fixed income, 
cost, as always becomes an issue.) I need to understand the backward 
capabilities of more recent drives. How high could I go with LTO based 
machines while still maintaining the ability to read (and hopefully 
write) those old LTO2 tapes?



Thank you everyone for your help.



All anyone could ever want to know about LTO tapes: 
.


The rule of thumb is read two back, and write one, but that changed with 
LTO-8.  Sort of.  Sigh.  Read the wikipedia page.


Cheers,
GaryB-)


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


Re: [Bacula-users] advice about tape drives

2024-04-22 Thread Rob Gerber
Alan,

>From the Wikipedia article on LTO:


   - Up to and including LTO-7, an Ultrium drive *can read* data from a
   cartridge in its own generation and the two prior generations. LTO-8 drives
   can read LTO-7 and LTO-8 tape, but not LTO-6 tape.[29]
   
   [30]
   

   [31]
   

   - An Ultrium drive *can write* data to a cartridge in its own generation
   and to a cartridge from the one prior generation *in the prior
   generation's format*.
   - Some LTO-8 drives may write previously unused LTO-7 tapes with an
   increased, uncompressed capacity of 9 TB (*Type M (M8)*).[32]
    Only
   new, unused LTO-7 cartridges may be initialized as LTO-7 Type M. Once a
   cartridge is initialized as Type M it may not be changed back to a 6 TB
   LTO-7 cartridge. LTO-7 Type M cartridges are only initialized to Type M in
   an LTO-8 drive. LTO-7 drives are not capable of reading LTO-7 Type M
   cartridges.[33]
   
   - An Ultrium drive *cannot make any use* of a cartridge from a more
   recent generation. For example, an LTO-2 cartridge can never be used by an
   LTO-1 drive; and even though it can be used in an LTO-3 drive, it performs
   as if it were in an LTO-2 drive.

So based on that, I'd guess that LTO 4 is the highest version of LTO
technology you could make use of with your requirement to be able to read
LTO 2 media.

I do have an alternative suggestion however: what if you purchased a drive
newer than LTO 4, and either used your LTO 3 drive to read any LTO 2 media
as needed, OR used migrate jobs to migrate the backups off those LTO 2
tapes to the newer media type?

Just fyi, a migrate or copy job type requires two devices be simultaneously
available, a read device and a write device. So you'd have to have the
ability to connect two LTO drives at once to your system, or maybe would
have to migrate tape data to a file volume, them migrate the file volumes
to the new LTO standard. I don't know how complex it would be to migrate
LTO volumes to disk volumes, then migrate those disk volumes back to the
newer LTO tapes. I think it should be feasible in theory.

I don't have practical experience with migrate / copy jobs, or LTO variants
below 8. Just fyi. Others here may be able to provide more information
about migrate / copy jobs, or about your choice of hardware.

However
Robert Gerber
402-237-8692
r...@craeon.net

On Mon, Apr 22, 2024, 10:00 AM Alan Polinsky 
wrote:

> I have used Bacula for many years, since version 5. In the past, I have
> mentioned my two Nas's along with various Windows and Linux machines get
> backed up on a nightly basis to tape. Currently that tape drive is an
> LTO3 based drive. Some of the older backups are on LTO2 tapes. My tape
> drive is starting to show its age, and within a period of time it will
> have to be replaced. (Since I am a retired programmer on a fixed income,
> cost, as always becomes an issue.) I need to understand the backward
> capabilities of more recent drives. How high could I go with LTO based
> machines while still maintaining the ability to read (and hopefully
> write) those old LTO2 tapes?
>
>
> Thank you everyone for your help.
>
>
> Alan
>
>
>
> ___
> 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] advice about tape drives

2024-04-22 Thread Alan Polinsky
I have used Bacula for many years, since version 5. In the past, I have 
mentioned my two Nas's along with various Windows and Linux machines get 
backed up on a nightly basis to tape. Currently that tape drive is an 
LTO3 based drive. Some of the older backups are on LTO2 tapes. My tape 
drive is starting to show its age, and within a period of time it will 
have to be replaced. (Since I am a retired programmer on a fixed income, 
cost, as always becomes an issue.) I need to understand the backward 
capabilities of more recent drives. How high could I go with LTO based 
machines while still maintaining the ability to read (and hopefully 
write) those old LTO2 tapes?



Thank you everyone for your help.


Alan



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


[Bacula-users] New release Bacularis 2.8.0

2024-04-19 Thread Marcin Haba
Hello Everybody,

We are glad to let you know that we released a new Bacularis version 2.8.0.
It is a new feature and bug fix release. We introduced a couple of
improvements for using the backup file list function like finding the
largest or the newest files in backup. Besides that we added new deployment
OS profiles for Ubuntu 24.04 Noble and Fedora 40 to enable easily deploying
Bacularis and Bacula components to remote hosts with these systems.

On the bug fixes side, we fixed bugs reported by the Community.

New functions in 2.8.0:
 - Top 10 backup files function: https://www.youtube.com/watch?v=ny1pDIwZnD0

Useful links:
 Release announcement:
https://bacularis.app/news/80/36/New-release-Bacularis-2.8.0
 Documentation: https://bacularis.app/doc
 Online demo: https://demo.bacularis.app

As always binary packages 2.8.0 for popular Linux distributions are
available already in the package repositories. Docker container images
2.8.0 are available in the Docker Hub repositories.

Happy using.

On behalf of the Bacularis Team
Marcin Haba (gani)

-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] IBM TS3500 LTO7 ULT3580-TD7 Sense Key : Data Protect [current] Add. Sense: Operator selected write protect

2024-04-19 Thread Martin Simmons
It sounds like the "append-only mode" described in:

https://www.dell.com/community/en/conversations/celerra/ndmp-backups-to-ibm-ultrium-td5-drive/647f195bf4ccf8a8dec3aa95
https://www.ibm.com/docs/en/ts4300-tape-library?topic=features-data-safe-append-only-mode
https://support.oracle.com/knowledge/Sun%20Microsystems/1368914_1.html

__Martin


> On Thu, 18 Apr 2024 18:41:12 -0300 (BRT), Heitor Faria said:
> 
> Dear Bacula Users,
> 
> 
> 
> I wonder if someone had faced a similar problem that have been haunting me 
> for weeks and I found no exact similar case on the internet.
> 
> This partitioned tape library with two drivers for the Bacula machine cannot 
> perform a weof diretcly:
> 
> 
> 
> [root@localhost Device]# mt -f /dev/tape/by-id/scsi-35005076044064c01-nst weof
> /dev/tape/by-id/scsi-35005076044064c01-nst: Input/output error
> mt: The tape is write-protected.
> 
> 
> 
> 
> And the dmesg displays the error:
> 
> 
> 
> [Thu Apr 18 17:32:01 2024] st 14:0:0:0: [st0] Sense Key : Data Protect 
> [current]
> [Thu Apr 18 17:32:01 2024] st 14:0:0:0: [st0] Add. Sense: Operator selected 
> write protect
> 
> 
> 
> 
> However, if we do an eod before weof, it displays no error.
> 
> 
> 
> [root@localhost Device]# mt -f /dev/tape/by-id/scsi-35005076044064c01-nst eod
> [root@localhost Device]# mt -f /dev/tape/by-id/scsi-35005076044064c01-nst weof
> 
> 
> 
> 
> But still, I cannot use the tape with Bacula, or test it with btape:
> 
> 
> 
> [root@localhost Device]# /opt/bacula/bin/btape  
> /dev/tape/by-id/scsi-35005076044064c01-nst
> Tape block granularity is 1024 bytes.
> btape: butil.c:296-0 Using device: 
> "/dev/tape/by-id/scsi-35005076044064c01-nst" for writing.
> btape: btape.c:475-0 open device "Drive-0" 
> (/dev/tape/by-id/scsi-35005076044064c01-nst): OK
> *label
> Enter Volume Name: test
> btape: block.c:301-0 [SE0201] Write error at 0:0 on device "Drive-0" 
> (/dev/tape/by-id/scsi-35005076044064c01-nst) Vol=test. ERR=Input/output error.
> 18-Apr 17:39 btape JobId 0: Error: block.c:301 [SE0201] Write error at 0:0 on 
> device "Drive-0" (/dev/tape/by-id/scsi-35005076044064c01-nst) Vol=test. 
> ERR=Input/output error.
> 
> 
> 
> 
> And the same dmesg Data Protect message appears. 
> 
> The curious thing is we are able to write and restore some files using tar 
> using the same drive, but only if we manually move the tape:
> 
> 
> 
> [root@localhost Device]# tar cvf /dev/tape/by-id/scsi-35005076044064c01-nst 
> /etc/resolv.conf
> tar: Removing leading `/' from member names
> /etc/resolv.conf
> [root@localhost Device]# tar tvf /dev/tape/by-id/scsi-35005076044064c01-nst
> tar: This does not look like a tar archive
> tar: Exiting with failure status due to previous errors
> [root@localhost Device]# mt -f /dev/tape/by-id/scsi-35005076044064c01-nst bsf 
> 2
> [root@localhost Device]# mt -f /dev/tape/by-id/scsi-35005076044064c01-nst fsf
> [root@localhost Device]# tar tvf /dev/tape/by-id/scsi-35005076044064c01-nst
> -rw-r--r-- root/root        74 2024-04-18 16:24 etc/resolv.conf
> 
> 
> 
> 
> mt status as follows:
> 
> 
> 
> [root@localhost Device]# mt -f /dev/tape/by-id/scsi-35005076044064c01-nst 
> status
> SCSI 2 tape drive:
> File number=20, block number=1, partition=0.
> Tape block size 0 bytes. Density code 0x5c (LTO-7).
> Soft error count since last status=0
> General status bits on (101):
>  ONLINE IM_REP_EN
> 
> 
> 
> 
> The tapes are new, LTO7 such as the drive, the red read-only physical tape 
> switches are open, no encryption is used by the drivers.
> 
> We already tried two different OSes with the same behavior. Ubuntu and Rocky 
> Linux.
> 
> There are no relevant tape library error logs.
> 
> Any hints?
> 
> 
> 
> Rgds.
> 
> 
> MSc,MBA Heitor Faria (Miami/USA)
> Bacula LATAM CIO
> 
> mobile1: + 1 909 655-8971
> mobile2: + 55 61 98268-4220
> 
>   
> 
> bacula.lat | bacula.com.br
> 
> 
> 


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


[Bacula-users] IBM TS3500 LTO7 ULT3580-TD7 Sense Key : Data Protect [current] Add. Sense: Operator selected write protect

2024-04-18 Thread Heitor Faria
Dear Bacula Users,



I wonder if someone had faced a similar problem that have been haunting me for 
weeks and I found no exact similar case on the internet.

This partitioned tape library with two drivers for the Bacula machine cannot 
perform a weof diretcly:



[root@localhost Device]# mt -f /dev/tape/by-id/scsi-35005076044064c01-nst weof
/dev/tape/by-id/scsi-35005076044064c01-nst: Input/output error
mt: The tape is write-protected.




And the dmesg displays the error:



[Thu Apr 18 17:32:01 2024] st 14:0:0:0: [st0] Sense Key : Data Protect [current]
[Thu Apr 18 17:32:01 2024] st 14:0:0:0: [st0] Add. Sense: Operator selected 
write protect




However, if we do an eod before weof, it displays no error.



[root@localhost Device]# mt -f /dev/tape/by-id/scsi-35005076044064c01-nst eod
[root@localhost Device]# mt -f /dev/tape/by-id/scsi-35005076044064c01-nst weof




But still, I cannot use the tape with Bacula, or test it with btape:



[root@localhost Device]# /opt/bacula/bin/btape  
/dev/tape/by-id/scsi-35005076044064c01-nst
Tape block granularity is 1024 bytes.
btape: butil.c:296-0 Using device: "/dev/tape/by-id/scsi-35005076044064c01-nst" 
for writing.
btape: btape.c:475-0 open device "Drive-0" 
(/dev/tape/by-id/scsi-35005076044064c01-nst): OK
*label
Enter Volume Name: test
btape: block.c:301-0 [SE0201] Write error at 0:0 on device "Drive-0" 
(/dev/tape/by-id/scsi-35005076044064c01-nst) Vol=test. ERR=Input/output error.
18-Apr 17:39 btape JobId 0: Error: block.c:301 [SE0201] Write error at 0:0 on 
device "Drive-0" (/dev/tape/by-id/scsi-35005076044064c01-nst) Vol=test. 
ERR=Input/output error.




And the same dmesg Data Protect message appears. 

The curious thing is we are able to write and restore some files using tar 
using the same drive, but only if we manually move the tape:



[root@localhost Device]# tar cvf /dev/tape/by-id/scsi-35005076044064c01-nst 
/etc/resolv.conf
tar: Removing leading `/' from member names
/etc/resolv.conf
[root@localhost Device]# tar tvf /dev/tape/by-id/scsi-35005076044064c01-nst
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
[root@localhost Device]# mt -f /dev/tape/by-id/scsi-35005076044064c01-nst bsf 2
[root@localhost Device]# mt -f /dev/tape/by-id/scsi-35005076044064c01-nst fsf
[root@localhost Device]# tar tvf /dev/tape/by-id/scsi-35005076044064c01-nst
-rw-r--r-- root/root        74 2024-04-18 16:24 etc/resolv.conf




mt status as follows:



[root@localhost Device]# mt -f /dev/tape/by-id/scsi-35005076044064c01-nst status
SCSI 2 tape drive:
File number=20, block number=1, partition=0.
Tape block size 0 bytes. Density code 0x5c (LTO-7).
Soft error count since last status=0
General status bits on (101):
 ONLINE IM_REP_EN




The tapes are new, LTO7 such as the drive, the red read-only physical tape 
switches are open, no encryption is used by the drivers.

We already tried two different OSes with the same behavior. Ubuntu and Rocky 
Linux.

There are no relevant tape library error logs.

Any hints?



Rgds.


MSc,MBA Heitor Faria (Miami/USA)
Bacula LATAM CIO

mobile1: + 1 909 655-8971
mobile2: + 55 61 98268-4220



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] Fix documentation on deduplication

2024-04-17 Thread Heitor Faria
Hello Roberto,



This guide was written by me, and it is not part of the bacula.org project.

That said, the step-by-step deployment was made using ddumbfs, despite the fact 
I briefly mention that ZFS could also be used.



Rgds.

MSc,MBA Heitor Faria (Miami/USA)
Bacula LATAM CIO

mobile1: + 1 909 655-8971
mobile2: + 55 61 98268-4220



bacula.lat | bacula.com.br








From: "Roberto Greiner" 
To: "bacula-users" 
Sent: Wednesday, April 17, 2024 9:06 AM
Subject: [Bacula-users] Fix documentation on deduplication

Hy,

I've installed a bacula system using ZFS deduplication in an Ubuntu 22.4
server, and one thing that made me lose a lot of time is that there is
an error in the documentation, more specifically on this page:

https://www.bacula.lat/community/block-level-file-system-deduplication-with-aligned-volumes-tutorial-bacula-9-0-8-and-above/?lang=en

The same page is available in Portuguese, with the same problem, in the
following address:

https://www.bacula.lat/community/dedup-alinhado/

The error is at the end of the page, where it says that you can see how
much space is being used using 'df -h', but the problem is that df can't
actually see the space gain from dedup, it shows how much would be used
without dedup.

After some search, I found in the chapter 1.7 of
'https://bacula.org/whitepapers/DedupVolumes.pdf' that the proper
command for checking dedup usage in ZFS is 'zpool list', and that
command did show that dedup was working properly.

These are my outputs with the two commands:

user@bacula2:~$ df -h
Filesystem Size  Used Avail Use% Mounted on
tmpfs  788M  2,8M  786M   1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv  910G   52G  812G   6% /
tmpfs  3,9G 0  3,9G   0% /dev/shm
tmpfs  5,0M 0  5,0M   0% /run/lock
/dev/sda2  2,0G  252M  1,6G  14% /boot
zfs    6,4T  128K  6,4T   1% /zfs
zfs/mnt    9,2T  2,9T  6,4T  31% /zfs/mnt
tmpfs  788M  4,0K  788M   1% /run/user/0
tmpfs  788M  4,0K  788M   1% /run/user/1000
user@bacula2:~$ zpool list
NAME   SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP DEDUP   
HEALTH  ALTROOT
zfs   7.27T   850G  6.44T    - - 3%    11% 3.41x   
ONLINE  -

So, could someone please correct the two above mentioned pages? It would
avoid others from having the same problem.

Thank you,

Roberto



--
-
Marcos Roberto Greiner

Os otimistas acham que estamos no melhor dos mundos
Os pessimistas tem medo de que isto seja verdade
James Branch Cabell
-



___
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] Fix documentation on deduplication

2024-04-17 Thread Roberto Greiner

Hy,

I've installed a bacula system using ZFS deduplication in an Ubuntu 22.4 
server, and one thing that made me lose a lot of time is that there is 
an error in the documentation, more specifically on this page:


https://www.bacula.lat/community/block-level-file-system-deduplication-with-aligned-volumes-tutorial-bacula-9-0-8-and-above/?lang=en

The same page is available in Portuguese, with the same problem, in the 
following address:


https://www.bacula.lat/community/dedup-alinhado/

The error is at the end of the page, where it says that you can see how 
much space is being used using 'df -h', but the problem is that df can't 
actually see the space gain from dedup, it shows how much would be used 
without dedup.


After some search, I found in the chapter 1.7 of 
'https://bacula.org/whitepapers/DedupVolumes.pdf' that the proper 
command for checking dedup usage in ZFS is 'zpool list', and that 
command did show that dedup was working properly.


These are my outputs with the two commands:

user@bacula2:~$ df -h
Filesystem Size  Used Avail Use% Mounted on
tmpfs  788M  2,8M  786M   1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv  910G   52G  812G   6% /
tmpfs  3,9G 0  3,9G   0% /dev/shm
tmpfs  5,0M 0  5,0M   0% /run/lock
/dev/sda2  2,0G  252M  1,6G  14% /boot
zfs    6,4T  128K  6,4T   1% /zfs
zfs/mnt    9,2T  2,9T  6,4T  31% /zfs/mnt
tmpfs  788M  4,0K  788M   1% /run/user/0
tmpfs  788M  4,0K  788M   1% /run/user/1000
user@bacula2:~$ zpool list
NAME   SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP DEDUP    
HEALTH  ALTROOT
zfs   7.27T   850G  6.44T    - - 3%    11% 3.41x    
ONLINE  -


So, could someone please correct the two above mentioned pages? It would 
avoid others from having the same problem.


Thank you,

Roberto



--
-
Marcos Roberto Greiner

   Os otimistas acham que estamos no melhor dos mundos
Os pessimistas tem medo de que isto seja verdade
 James Branch Cabell
  -



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


Re: [Bacula-users] Backup from windows

2024-04-17 Thread Mehrdad Ravanbod

Thanks Rob,

appreciate the answer, some very interesting, how ever my main problem 
is that part of the back needs to be done via the Bacuka Windows agent
if i understand the documentation correctly, the windows agent is the 
only way to do backups via VSS on a windows machine so that the ACL 
attributes of windows files and folders can be preserved
Or have i missunderstood?? Is it possible to mount shares to the Liux 
server and still use VSS and preserve the ACL attribues and back up to 
another mounted windows share??


BTW, i forgot to mention that i am using Bacula community version for 
the testing, I will go for the enterprise version if i can show that 
Bacula can do what we need but the free period of Bacula enterprise is 
simply too short to do something that convinces management



Sincerely /Mehrdad


On 2024-04-16 18:55, Rob Gerber wrote:

Oh!

One thing I forgot to mention: if you do not define the file, job, or 
volume retention periods, this does not mean that everything will be 
retained forever. Instead, bacula uses the default retention periods 
(I think they are 365 days, not sure).


Any volume or job retention period specified in a pool resource 
overrides the volume or job retention periods specified elsewhere.


Robert Gerber
402-237-8692
r...@craeon.net 

On Tue, Apr 16, 2024, 11:35 AM Rob Gerber > wrote:


Mehrdad,

I don't know if I can help with all of your questions but I have
some information for you.

I back up samba shares for a machine that I cannot get shell
access onto. The only way for me to access the files on this Nas
is via smb. For this case, on the bacula server, I have mounted
the relevant shares read only. I have a run-before script defined
for my backup job, which script runs basically
mountpoint -q /mnt/sharename || mount /mnt/sharename

This ensures that my smb targets are mounted. If mountpoint exits
>0 (error, nothing mounted there), it tries to mount the shares.
If the mount command fails, it exists > 0 (fails), and the script
then exits > 0. The job then ends with an error code and doesn't
proceed further. This is the desired behavior since I don't want
bacula to back up an empty mount folder and happily report success.

My mountpoint script lists each of the relevant shares that are
included in my fileset.

By default, bacula backs up to file volumes, which you could think
of as virtual tapes. The default configuration includes setup to
write the catalog backup to said file volumes. I don't use file
volumes (yet), so I can't help much there. However, I would
suggest you examine the default configuration and adapt it to your
needs. Probably add new pool resources, etc for your file volumes,
so the catalog backup infrastructure isn't changed or mixed in
with your regular backups.

Let's say a volume (whether tape or file volume) has aged out of
whatever file, job, and volume retention periods are defined.
However, the tape isn't in an autochanger, the file volume is read
only or has been copied elsewhere, volume recycling is disabled,
etc. Basically, the catalog entries for the volume in question
have been removed from the database, so bacula has no knowledge of
what could be on that volume, and bacula has been prevented from
reusing the volume. In this case, you can use the bacula bscan
tool to read the volume and see what data is stored on it.

You may notice I provided many caveats to the above hypothetical
situation. This is because while I could fairly easily withhold a
tape from bacula for archive purposes merely by refusing to insert
it into the tape library, withholding a file volume is more
complicated. In any case, operating within defined retention
periods is better, so perhaps what you could do is have an archive
pool and job definition and use copy or migrate jobs to move or
copy an existing job into that pool. I think the existing
retention period might apply there, so maybe that would be better
than manually copying a file volume and then bscanning it later.
In any case, the idea is to work within bacula to define an
increased retention period for a certain job instead of seeking to
work outside bacula. I haven't done this, so I recommend seeking
the advice of others to confirm how best to do this.

With bscan it is not necessary for you to have any information
about the backup.

Bacula does generate BSR (Boot Strap Record) files when backing up
or when restoring (can also configure a restore, then at last step
tell bacula just to save a BSR instead of doing the restore).
These BSR files are small and human readable. They say which
volumes contain the relevant data, and where in the volumes the
data is stored. If you have your BSR files backed up, this will
make 

Re: [Bacula-users] Backup from windows

2024-04-16 Thread Rob Gerber
Mehrdad,

I don't know if I can help with all of your questions but I have some
information for you.

I back up samba shares for a machine that I cannot get shell access onto.
The only way for me to access the files on this Nas is via smb. For this
case, on the bacula server, I have mounted the relevant shares read only. I
have a run-before script defined for my backup job, which script runs
basically
mountpoint -q /mnt/sharename || mount /mnt/sharename

This ensures that my smb targets are mounted. If mountpoint exits >0
(error, nothing mounted there), it tries to mount the shares. If the mount
command fails, it exists > 0 (fails), and the script then exits > 0. The
job then ends with an error code and doesn't proceed further. This is the
desired behavior since I don't want bacula to back up an empty mount folder
and happily report success.

My mountpoint script lists each of the relevant shares that are included in
my fileset.

By default, bacula backs up to file volumes, which you could think of as
virtual tapes. The default configuration includes setup to write the
catalog backup to said file volumes. I don't use file volumes (yet), so I
can't help much there. However, I would suggest you examine the default
configuration and adapt it to your needs. Probably add new pool resources,
etc for your file volumes, so the catalog backup infrastructure isn't
changed or mixed in with your regular backups.

Let's say a volume (whether tape or file volume) has aged out of whatever
file, job, and volume retention periods are defined. However, the tape
isn't in an autochanger, the file volume is read only or has been copied
elsewhere, volume recycling is disabled, etc. Basically, the catalog
entries for the volume in question have been removed from the database, so
bacula has no knowledge of what could be on that volume, and bacula has
been prevented from reusing the volume. In this case, you can use the
bacula bscan tool to read the volume and see what data is stored on it.

You may notice I provided many caveats to the above hypothetical situation.
This is because while I could fairly easily withhold a tape from bacula for
archive purposes merely by refusing to insert it into the tape library,
withholding a file volume is more complicated. In any case, operating
within defined retention periods is better, so perhaps what you could do is
have an archive pool and job definition and use copy or migrate jobs to
move or copy an existing job into that pool. I think the existing retention
period might apply there, so maybe that would be better than manually
copying a file volume and then bscanning it later. In any case, the idea is
to work within bacula to define an increased retention period for a certain
job instead of seeking to work outside bacula. I haven't done this, so I
recommend seeking the advice of others to confirm how best to do this.

With bscan it is not necessary for you to have any information about the
backup.

Bacula does generate BSR (Boot Strap Record) files when backing up or when
restoring (can also configure a restore, then at last step tell bacula just
to save a BSR instead of doing the restore). These BSR files are small and
human readable. They say which volumes contain the relevant data, and where
in the volumes the data is stored. If you have your BSR files backed up,
this will make recovering from a volume much easier and faster. One
suggestion I have heard is that maybe you could configure a run-after
script to email the BSR file generated by a job to yourself after the
bsckup job runs.

I have discussed tape and file volumes. One exception to this behavior of
backing up files into volumes is if bacula is used to back up to an S3
object storage target. In that case I am led to understand that bacula
backs up files directly to the object storage and does not use volumes.

Robert Gerber
402-237-8692
r...@craeon.net

On Tue, Apr 16, 2024, 10:38 AM Mehrdad Ravanbod <
mehrdad.ravan...@ampfield.se> wrote:

> Hi guys
>
> I am new to bacula and trying to figure it out and testing atm
>
> I have it installed on a RHEL9 server with clients on 2 windows computer
> ( one server, one win7 client) and trying to set up backups both via VSS
> and indiviual file/folders to disk(mainly a NAS and shares)
>
> Only problem is i am having trouble finding any guides or resources
> handling this, almost everything i have found s far is backup of Linux
> machines and concentrated on Tapes/autochangers etc
> I would appreciate any pointers towards relevant material or if anyone
> has any exple configuration files(dir, fd, sd conf files etc)
>
> Also, is there anyone who has experience of long term back up with
> bacula?? How easy is it to archive backups/data for several years?? How
> easy is it to access such archives?? Do you need teh records to be in
> the database for such archives?? Can they be accessed even if something
> happens to database??
>
> Regards /Mehrdad
>
>
>
>
> 

Re: [Bacula-users] Backup from windows

2024-04-16 Thread Rob Gerber
Oh!

One thing I forgot to mention: if you do not define the file, job, or
volume retention periods, this does not mean that everything will be
retained forever. Instead, bacula uses the default retention periods (I
think they are 365 days, not sure).

Any volume or job retention period specified in a pool resource overrides
the volume or job retention periods specified elsewhere.

Robert Gerber
402-237-8692
r...@craeon.net

On Tue, Apr 16, 2024, 11:35 AM Rob Gerber  wrote:

> Mehrdad,
>
> I don't know if I can help with all of your questions but I have some
> information for you.
>
> I back up samba shares for a machine that I cannot get shell access onto.
> The only way for me to access the files on this Nas is via smb. For this
> case, on the bacula server, I have mounted the relevant shares read only. I
> have a run-before script defined for my backup job, which script runs
> basically
> mountpoint -q /mnt/sharename || mount /mnt/sharename
>
> This ensures that my smb targets are mounted. If mountpoint exits >0
> (error, nothing mounted there), it tries to mount the shares. If the mount
> command fails, it exists > 0 (fails), and the script then exits > 0. The
> job then ends with an error code and doesn't proceed further. This is the
> desired behavior since I don't want bacula to back up an empty mount folder
> and happily report success.
>
> My mountpoint script lists each of the relevant shares that are included
> in my fileset.
>
> By default, bacula backs up to file volumes, which you could think of as
> virtual tapes. The default configuration includes setup to write the
> catalog backup to said file volumes. I don't use file volumes (yet), so I
> can't help much there. However, I would suggest you examine the default
> configuration and adapt it to your needs. Probably add new pool resources,
> etc for your file volumes, so the catalog backup infrastructure isn't
> changed or mixed in with your regular backups.
>
> Let's say a volume (whether tape or file volume) has aged out of whatever
> file, job, and volume retention periods are defined. However, the tape
> isn't in an autochanger, the file volume is read only or has been copied
> elsewhere, volume recycling is disabled, etc. Basically, the catalog
> entries for the volume in question have been removed from the database, so
> bacula has no knowledge of what could be on that volume, and bacula has
> been prevented from reusing the volume. In this case, you can use the
> bacula bscan tool to read the volume and see what data is stored on it.
>
> You may notice I provided many caveats to the above hypothetical
> situation. This is because while I could fairly easily withhold a tape from
> bacula for archive purposes merely by refusing to insert it into the tape
> library, withholding a file volume is more complicated. In any case,
> operating within defined retention periods is better, so perhaps what you
> could do is have an archive pool and job definition and use copy or migrate
> jobs to move or copy an existing job into that pool. I think the existing
> retention period might apply there, so maybe that would be better than
> manually copying a file volume and then bscanning it later. In any case,
> the idea is to work within bacula to define an increased retention period
> for a certain job instead of seeking to work outside bacula. I haven't done
> this, so I recommend seeking the advice of others to confirm how best to do
> this.
>
> With bscan it is not necessary for you to have any information about the
> backup.
>
> Bacula does generate BSR (Boot Strap Record) files when backing up or when
> restoring (can also configure a restore, then at last step tell bacula just
> to save a BSR instead of doing the restore). These BSR files are small and
> human readable. They say which volumes contain the relevant data, and where
> in the volumes the data is stored. If you have your BSR files backed up,
> this will make recovering from a volume much easier and faster. One
> suggestion I have heard is that maybe you could configure a run-after
> script to email the BSR file generated by a job to yourself after the
> bsckup job runs.
>
> I have discussed tape and file volumes. One exception to this behavior of
> backing up files into volumes is if bacula is used to back up to an S3
> object storage target. In that case I am led to understand that bacula
> backs up files directly to the object storage and does not use volumes.
>
> Robert Gerber
> 402-237-8692
> r...@craeon.net
>
> On Tue, Apr 16, 2024, 10:38 AM Mehrdad Ravanbod <
> mehrdad.ravan...@ampfield.se> wrote:
>
>> Hi guys
>>
>> I am new to bacula and trying to figure it out and testing atm
>>
>> I have it installed on a RHEL9 server with clients on 2 windows computer
>> ( one server, one win7 client) and trying to set up backups both via VSS
>> and indiviual file/folders to disk(mainly a NAS and shares)
>>
>> Only problem is i am having trouble finding any guides or resources
>> handling 

[Bacula-users] Backup from windows

2024-04-16 Thread Mehrdad Ravanbod

Hi guys

I am new to bacula and trying to figure it out and testing atm

I have it installed on a RHEL9 server with clients on 2 windows computer 
( one server, one win7 client) and trying to set up backups both via VSS 
and indiviual file/folders to disk(mainly a NAS and shares)


Only problem is i am having trouble finding any guides or resources 
handling this, almost everything i have found s far is backup of Linux 
machines and concentrated on Tapes/autochangers etc
I would appreciate any pointers towards relevant material or if anyone 
has any exple configuration files(dir, fd, sd conf files etc)


Also, is there anyone who has experience of long term back up with 
bacula?? How easy is it to archive backups/data for several years?? How 
easy is it to access such archives?? Do you need teh records to be in 
the database for such archives?? Can they be accessed even if something 
happens to database??


Regards /Mehrdad




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


Re: [Bacula-users] Wildfile

2024-04-15 Thread Stefan G. Weichinger

Am 11.04.24 um 07:49 schrieb Bill Arlofski via Bacula-users:

On 4/10/24 11:38 PM, Stefan G. Weichinger wrote:


First coffee here right now ;-)
Thanks for your example.


Hello Stefan,

You are welcome!

Well, it is 23:41 here now, so I have switched from coffee to beer. :)


Understandable ;-)



I didn't add "signature" but already came up with this yesterday:

Fileset {
    Name = "VM_XYZ"
    Include {
  File = "/mnt/backup/vmbackup/Backup XYZ"
  Options {
    WildFile = "*.vbk"
  }
  Options {
    Exclude = "Yes"
    RegexFile = ".*"
  }
    }
}

seems to work!


OH! Look at you, jumping from WildFile to RegexFile!  :)

I was trying to keep things simple, but OK. :)

Yes, this is fine. Remember my first post about there always being 
several ways to do something in Bacula? :)


Sure. So far it seems to work. At least I see other things to learn now 
... as I get used to Bacula.



Do I have to add that signature-line?


To confirm why I made that comment, try running a restore of one of 
these jobs that you have now backed up. ;)

>> What do you see?

Will do tmrw

Sounds as if I should add these lines asap.


Glad y
ou got this working!

And, if you like we can talk about Client side scripts to point your 
`File = ` at too. Just for more fun and practice, of course. BUT... 
client side scripts are a bit less scalable as you might imagine. :)


Right now I don't know if I might need them. But I always like to learn.




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


Re: [Bacula-users] MD5 Fatal Error

2024-04-15 Thread Martin Simmons
Please Cc replies to the list so other people can see them.

Did that job read from Vol0159 as well as writing to it?  If yes, then
messages like this help to show why:

pbckall004-dir JobId 5387: There are no more Jobs associated with Volume 
"Vol0159". Marking it purged.

To prevent that, I think you need to increase the Job Retention in the pool or
client resource so it keeps the job records for longer.

BTW, the job log lines below are in reverse order (latest is first) so that
make it confusing!

__Martin


> On Mon, 15 Apr 2024 09:56:53 +0200, Mohamed AIT EL HADJ said:
> 
> Yes, i think its the same problem but i dont know how to fix it. Do you 
> have any ideas ?
> 
> Le 12/04/2024 à 17:48, Martin Simmons a écrit :
> > Maybe the same problem as reported in
> > https://sourceforge.net/p/bacula/mailman/bacula-users/thread/c3bc9fed-3c84-46d3-2f40-9dd78590a773%40baculasystems.com/#msg37296305
> > ?
> >
> > I assume the "cycle in their volume list" comment there means it is writing 
> > to
> > a volume that it previous read.
> >
> > __Martin
> >
> >
> >> On Mon, 8 Apr 2024 11:27:20 +0200, Mohamed AIT EL HADJ via 
> >> Bacula-users said:
> >> Hello,
> >> My backups were working fine but yesterday I had a problem with one of
> >> my jobs which apparently has a problem with MD5.
> >>
> >> Here are the job logs:
> >>
> >> pbckall004-dir JobId 5387: Error: Unable to flush file records!
> >> pbckall004-dir JobId 5387: Fatal error: Error detected between 
> >> digest[466172]="zxdWYCUt+beniiSsYO+d6w" and 
> >> name[466171]="/var/opt/gitlab/gitlab-rails/shared/artifacts/12/53/1253e9373e781b7500266caa55150e08e210bc8cd8cc70d89985e3600155e860/2024_04_01/"
> >> pbckall004-dir JobId 5387: Fatal error: MD5 digest not same 
> >> FileIndex=466172 as attributes FI=466171
> >> pbckall004-sd JobId 5387: Sending spooled attrs to the Director. 
> >> Despooling 237,369,878 bytes ...
> >> pbckall004-sd JobId 5387: Elapsed time=02:20:45, Transfer rate=7.303 M 
> >> Bytes/second
> >> pbckall004-sd JobId 5387: End of Volume "Vol0197" at addr=898996114 on 
> >> device "DEV-dedup-DRV19" (/zfs/bacula).
> >> pbckall004-sd JobId 5387: Forward spacing Volume "Vol0197" to 
> >> addr=893762478
> >> pbckall004-sd JobId 5387: Ready to read from volume "Vol0197" on Aligned 
> >> device "DEV-dedup-DRV19" (/zfs/bacula).
> >> pbckall004-sd JobId 5387: End of Volume "Vol0165" at addr=515616168 on 
> >> device "DEV-dedup-DRV19" (/zfs/bacula).
> >> pbckall004-sd JobId 5387: New volume "Vol0159" mounted on device 
> >> "DEV-dedup-DRV1" (/zfs/bacula) at 07-avril-2024 18:22.
> >> pbckall004-sd JobId 5387: Recycled volume "Vol0159" on Aligned device 
> >> "DEV-dedup-DRV1" (/zfs/bacula), all previous data lost.
> >> pbckall004-dir JobId 5387: Using Volume "Vol0159" from 'Scratch' pool.
> >> pbckall004-dir JobId 5387: Recycled volume "Vol0159"
> >> pbckall004-dir JobId 5387: All records pruned from Volume "Vol0131"; 
> >> marking it "Purged"
> >> pbckall004-dir JobId 5387: New Pool is: Scratch
> >> pbckall004-dir JobId 5387: There are no more Jobs associated with Volume 
> >> "Vol0131". Marking it purged.
> >> pbckall004-dir JobId 5387: All records pruned from Volume "Vol0124"; 
> >> marking it "Purged"
> >> pbckall004-dir JobId 5387: New Pool is: Scratch
> >> pbckall004-dir JobId 5387: There are no more Jobs associated with Volume 
> >> "Vol0124". Marking it purged.
> >> pbckall004-dir JobId 5387: All records pruned from Volume "Vol0184"; 
> >> marking it "Purged"
> >> pbckall004-dir JobId 5387: New Pool is: Scratch
> >> pbckall004-dir JobId 5387: There are no more Jobs associated with Volume 
> >> "Vol0184". Marking it purged.
> >> pbckall004-dir JobId 5387: All records pruned from Volume "Vol0186"; 
> >> marking it "Purged"
> >> pbckall004-dir JobId 5387: New Pool is: Scratch
> >> pbckall004-dir JobId 5387: There are no more Jobs associated with Volume 
> >> "Vol0186". Marking it purged.
> >> pbckall004-dir JobId 5387: All records pruned from Volume "Vol0159"; 
> >> marking it "Purged"
> >> pbckall004-dir JobId 5387: New Pool is: Scratch
> >> pbckall004-dir JobId 5387: There are no more Jobs associated with Volume 
> >> "Vol0159". Marking it purged.
> >> pbckall004-sd JobId 5387: End of medium on Volume "Vol0179" 
> >> Bytes=53,686,844,017 Blocks=409,600 at 07-avril-2024 18:22.
> >> pbckall004-sd JobId 5387: User defined maximum volume size 53,687,091,200 
> >> will be exceeded on device "DEV-dedup-DRV1" (/zfs/bacula).    Marking 
> >> Volume "Vol0179" as Full.
> >>
> >> I have no idea how this could have happened or how to resolve the error.
> >>
> >> Any helps will be great.
> >>
> >> Regards,
> >>
> >>
> >>
> >> ___
> >> 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

Re: [Bacula-users] MD5 Fatal Error

2024-04-12 Thread Martin Simmons
Maybe the same problem as reported in
https://sourceforge.net/p/bacula/mailman/bacula-users/thread/c3bc9fed-3c84-46d3-2f40-9dd78590a773%40baculasystems.com/#msg37296305
?

I assume the "cycle in their volume list" comment there means it is writing to
a volume that it previous read.

__Martin


> On Mon, 8 Apr 2024 11:27:20 +0200, Mohamed AIT EL HADJ via Bacula-users 
> said:
> 
> Hello,
> My backups were working fine but yesterday I had a problem with one of 
> my jobs which apparently has a problem with MD5.
> 
> Here are the job logs:
> 
> pbckall004-dir JobId 5387: Error: Unable to flush file records!
> pbckall004-dir JobId 5387: Fatal error: Error detected between 
> digest[466172]="zxdWYCUt+beniiSsYO+d6w" and 
> name[466171]="/var/opt/gitlab/gitlab-rails/shared/artifacts/12/53/1253e9373e781b7500266caa55150e08e210bc8cd8cc70d89985e3600155e860/2024_04_01/"
> pbckall004-dir JobId 5387: Fatal error: MD5 digest not same FileIndex=466172 
> as attributes FI=466171
> pbckall004-sd JobId 5387: Sending spooled attrs to the Director. Despooling 
> 237,369,878 bytes ...
> pbckall004-sd JobId 5387: Elapsed time=02:20:45, Transfer rate=7.303 M 
> Bytes/second
> pbckall004-sd JobId 5387: End of Volume "Vol0197" at addr=898996114 on device 
> "DEV-dedup-DRV19" (/zfs/bacula).
> pbckall004-sd JobId 5387: Forward spacing Volume "Vol0197" to addr=893762478
> pbckall004-sd JobId 5387: Ready to read from volume "Vol0197" on Aligned 
> device "DEV-dedup-DRV19" (/zfs/bacula).
> pbckall004-sd JobId 5387: End of Volume "Vol0165" at addr=515616168 on device 
> "DEV-dedup-DRV19" (/zfs/bacula).
> pbckall004-sd JobId 5387: New volume "Vol0159" mounted on device 
> "DEV-dedup-DRV1" (/zfs/bacula) at 07-avril-2024 18:22.
> pbckall004-sd JobId 5387: Recycled volume "Vol0159" on Aligned device 
> "DEV-dedup-DRV1" (/zfs/bacula), all previous data lost.
> pbckall004-dir JobId 5387: Using Volume "Vol0159" from 'Scratch' pool.
> pbckall004-dir JobId 5387: Recycled volume "Vol0159"
> pbckall004-dir JobId 5387: All records pruned from Volume "Vol0131"; marking 
> it "Purged"
> pbckall004-dir JobId 5387: New Pool is: Scratch
> pbckall004-dir JobId 5387: There are no more Jobs associated with Volume 
> "Vol0131". Marking it purged.
> pbckall004-dir JobId 5387: All records pruned from Volume "Vol0124"; marking 
> it "Purged"
> pbckall004-dir JobId 5387: New Pool is: Scratch
> pbckall004-dir JobId 5387: There are no more Jobs associated with Volume 
> "Vol0124". Marking it purged.
> pbckall004-dir JobId 5387: All records pruned from Volume "Vol0184"; marking 
> it "Purged"
> pbckall004-dir JobId 5387: New Pool is: Scratch
> pbckall004-dir JobId 5387: There are no more Jobs associated with Volume 
> "Vol0184". Marking it purged.
> pbckall004-dir JobId 5387: All records pruned from Volume "Vol0186"; marking 
> it "Purged"
> pbckall004-dir JobId 5387: New Pool is: Scratch
> pbckall004-dir JobId 5387: There are no more Jobs associated with Volume 
> "Vol0186". Marking it purged.
> pbckall004-dir JobId 5387: All records pruned from Volume "Vol0159"; marking 
> it "Purged"
> pbckall004-dir JobId 5387: New Pool is: Scratch
> pbckall004-dir JobId 5387: There are no more Jobs associated with Volume 
> "Vol0159". Marking it purged.
> pbckall004-sd JobId 5387: End of medium on Volume "Vol0179" 
> Bytes=53,686,844,017 Blocks=409,600 at 07-avril-2024 18:22.
> pbckall004-sd JobId 5387: User defined maximum volume size 53,687,091,200 
> will be exceeded on device "DEV-dedup-DRV1" (/zfs/bacula).    Marking Volume 
> "Vol0179" as Full.
> 
> I have no idea how this could have happened or how to resolve the error.
> 
> Any helps will be great.
> 
> Regards,
> 
> 
> 
> ___
> 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] Building the S3/Amazon options for Bacula 15

2024-04-12 Thread Dan Langille
On Fri, Apr 12, 2024, at 8:27 AM, Martin Simmons wrote:
>> On Thu, 11 Apr 2024 16:34:48 -0400, Dan Langille said:
>> 
>> A problem with building the S3 options on Bacula 15.0.2 has been reported[1] 
>> and I'm trying to figure it out. I'm not an s3 user myself, and I am the 
>> maintainer of the FreeBSD port/package.
>> 
>> When building 13.0.4, see:
>> 
>> src/stored/.libs/bacula-sd-cloud-s3-driver.so
>> src/stored/.libs/bacula-sd-cloud-s3-driver-13.0.4.so
>> 
>> When building 15.0.2, I see
>> 
>> src/stored/.libs/bacula-sd-cloud-driver.so
>> src/stored/.libs/bacula-sd-cloud-driver-15.0.2.so
>> 
>> Of note, the '-s3' part of the name has been removed. That doesn't seem to 
>> be my problem though.
>
> These are different libraries and you need both of them
> (bacula-sd-cloud-driver loads bacula-sd-cloud-s3-driver if required).  I think
> this is the same in 13.0.4.
>
>> The problem is the files do not get installed, and I'm not sure why.
>
> The build log contains:
>
> checking libs3.h usability... no
> checking libs3.h presence... no
> checking for libs3.h... no
>
> so that looke like the problem.  Where is your libs3.h?

First goal, who supplies that?

Searching at https://www.freshports.org by pkg-plist, I find 
sysutils/bacula-libs3

How is that used:

[12:30 pkg01 dvl ~/ports/head/sysutils] % grep -r bacula-libs3 bacula*  

bacula11-server/Makefile:LIB_DEPENDS+=  libs3.so:sysutils/bacula-libs3
bacula13-server/Makefile:LIB_DEPENDS+=  libs3.so:sysutils/bacula-libs3
bacula15-server/Makefile:MS3_LIB_DEPENDS=   libs3.so:sysutils/bacula-libs3

Interesting how it's MS3 for 15, and S3 for 11 and 13. I have only myself to 
blame and I have no idea why it's like that.

It appears to be cruft leftover from my mangled transformation from "if 
${PORT_OPTIONS:MS3}" to modern methods.

compare old and new:

https://cgit.freebsd.org/ports/tree/sysutils/bacula13-server/Makefile#n135
https://cgit.freebsd.org/ports/tree/sysutils/bacula15-server/Makefile#n136

Doing this change allowed the build:

[14:41 pkg01 dvl ~/ports/head/sysutils/bacula15-server] % git diff .
diff --git a/sysutils/bacula15-server/Makefile 
b/sysutils/bacula15-server/Makefile
index 6e7aec421cd7..a9d84c4720a0 100644
--- a/sysutils/bacula15-server/Makefile
+++ b/sysutils/bacula15-server/Makefile
@@ -133,10 +133,10 @@ MTX_RUN_DEPENDS=  ${LOCALBASE}/sbin/mtx:misc/mtx
 
 .endif
 
-.include 
+S3_CONFIGURE_ARGS= --enable-s3
+S3_LIB_DEPENDS=libs3.so:sysutils/bacula-libs3
 
-MS3_CONFIGURE_ARGS=--enable-s3
-MS3_LIB_DEPENDS=   libs3.so:sysutils/bacula-libs3
+.include 
 
 .if defined(WITH_CLIENT_ONLY)
 MP8+=  bacula.8 bacula-fd.8 bconsole.8

Now I find:

root@140amd64-dvl-primary:/wrkdirs/usr/ports/sysutils/bacula15-server/work # 
find . -name bacula-sd-cloud-s3-driver.so
./stage/usr/local/lib/bacula-sd-cloud-s3-driver.so
./bacula-15.0.2/src/stored/.libs/bacula-sd-cloud-s3-driver.so

Thanks for help me find my own error. I'll pass this onto the user for testing.

-- 
  Dan Langille
  d...@langille.org


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


Re: [Bacula-users] Building the S3/Amazon options for Bacula 15

2024-04-12 Thread Martin Simmons
> On Thu, 11 Apr 2024 16:34:48 -0400, Dan Langille said:
> 
> A problem with building the S3 options on Bacula 15.0.2 has been reported[1] 
> and I'm trying to figure it out. I'm not an s3 user myself, and I am the 
> maintainer of the FreeBSD port/package.
> 
> When building 13.0.4, see:
> 
> src/stored/.libs/bacula-sd-cloud-s3-driver.so
> src/stored/.libs/bacula-sd-cloud-s3-driver-13.0.4.so
> 
> When building 15.0.2, I see
> 
> src/stored/.libs/bacula-sd-cloud-driver.so
> src/stored/.libs/bacula-sd-cloud-driver-15.0.2.so
> 
> Of note, the '-s3' part of the name has been removed. That doesn't seem to be 
> my problem though.

These are different libraries and you need both of them
(bacula-sd-cloud-driver loads bacula-sd-cloud-s3-driver if required).  I think
this is the same in 13.0.4.

> The problem is the files do not get installed, and I'm not sure why.

The build log contains:

checking libs3.h usability... no
checking libs3.h presence... no
checking for libs3.h... no

so that looke like the problem.  Where is your libs3.h?

__Martin


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


[Bacula-users] Building the S3/Amazon options for Bacula 15

2024-04-11 Thread Dan Langille
A problem with building the S3 options on Bacula 15.0.2 has been reported[1] 
and I'm trying to figure it out. I'm not an s3 user myself, and I am the 
maintainer of the FreeBSD port/package.

When building 13.0.4, see:

src/stored/.libs/bacula-sd-cloud-s3-driver.so
src/stored/.libs/bacula-sd-cloud-s3-driver-13.0.4.so

When building 15.0.2, I see

src/stored/.libs/bacula-sd-cloud-driver.so
src/stored/.libs/bacula-sd-cloud-driver-15.0.2.so

Of note, the '-s3' part of the name has been removed. That doesn't seem to be 
my problem though.

The problem is the files do not get installed, and I'm not sure why.

Is the correct option still --enable-s3

Checking the config options[2] I see no mention of it, nor mention of s3 or 
cloud.

I did find it in the configure file though:

work/bacula-15.0.2/configure:# Check whether --enable-s3 was given.

Is it me? What am I doing wrong? The 15 package is using the same build process 
as 13.

Thank you


[1] - https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278312

[2] - 
https://www.bacula.org/15.0.x-manuals/en/main/Installing_Bacula.html#SECTION0019120
-- 
  Dan Langille
  d...@langille.org


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


Re: [Bacula-users] Issue with size of the backup

2024-04-11 Thread Martin Simmons
> On Thu, 11 Apr 2024 12:00:24 +, Borut Rozman via Bacula-users said:
> 
> The underlying storage is ~800gb in size. All of the sudden incremental
> backups started to increase exponentially 
> 
> 1.4. - 93M
> 2.4. - 574.5M
> 3.4. - 115.5GB
> 4.4. - 951.3GB
> 5.4. - 1.7TB
> 6.4. - 2.5TB
> 7.4. - 3.4TB
> 8.4. - 4.1TB
> 9.4. - 4.7TB
> 10.4.- 5.4TB
> 
> so last backup says 5,471,496,436,363 (5.471 TB) written, and last 4
> backups from this client with several others were written to this tape
> which is LTO6 - so max 2.5TB should be written (6.25 compressed). 
> 
> For some reason estimation of the size of the backup is way off and
> data written on the tape as now that tape says it has 18T written -
> Vol. bytes18.3TB 
> 
> which is absolutely wrong...
> 
> even if I move that data to some other folder on that server I get the
> same result.
> 
> Any ideas?

Does the bconsole estimate command also show the same effect?

Maybe you are backing up a sparse file?  You could look for large files using
/usr/bin/find with the -size option.

__Martin


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


Re: [Bacula-users] Issue with size of the backup

2024-04-11 Thread Borut Rozman via Bacula-users
Hi All, 

thanks for the pointing out the obvious, it was 2 files growing out of
proportions (steam logs) and they got compressed on a FS level but
actually they were 2.5 tb x2 in size which then got compressed again in
bacula, so all good now.

Thanks
Borut

On Thu, 2024-04-11 at 23:06 +1000, Gary R. Schmidt wrote:
> On 11/04/2024 22:00, Borut Rozman via Bacula-users wrote:
> > Hi there,
> > 
> > I was wondering if anyone noticed something like this in their
> > environment, I have a bacula director ver 11.0.6. (10.3.2022)
> > connecting to serveral clients with versions from 5 onwards. I have
> > this particular client which runs on debain 12. ver.
> > 9.6.7(20dec20),
> > underlaying storage is ZFS.
> > 
> > The underlying storage is ~800gb in size. All of the sudden
> > incremental
> > backups started to increase exponentially
> > 
> > 1.4. - 93M
> > 2.4. - 574.5Mcef_log.txt
> > 3.4. - 115.5GB
> > 4.4. - 951.3GB
> > 5.4. - 1.7TB
> > 6.4. - 2.5TB
> > 7.4. - 3.4TB
> > 8.4. - 4.1TB
> > 9.4. - 4.7TB
> > 10.4.- 5.4TB
> > 
> > so last backup says 5,471,496,436,363 (5.471 TB) written, and last
> > 4
> > backups from this client with several others were written to this
> > tape
> > which is LTO6 - so max 2.5TB should be written (6.25 compressed).
> > 
> > For some reason estimation of the size of the backup is way off and
> > data written on the tape as now that tape says it has 18T written -
> > Vol. bytes  18.3TB
> > 
> > which is absolutely wrong...
> > 
> > even if I move that data to some other folder on that server I get
> > the
> > same result.
> > 
> > Any ideas?
> > 
> > Borut
> > 
> Have you got Accurate set to Yes in JobDefs?
> 
> My ZFS systems are Solaris, so YMMV.
> 
> Cheers,
> GaryB-)
> 
> 
> ___
> 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] Issue with size of the backup

2024-04-11 Thread Borut Rozman via Bacula-users


On Thu, 2024-04-11 at 23:06 +1000, Gary R. Schmidt wrote:
> On 11/04/2024 22:00, Borut Rozman via Bacula-users wrote:
> > Hi there,
> > 
> > I was wondering if anyone noticed something like this in their
> > environment, I have a bacula director ver 11.0.6. (10.3.2022)
> > connecting to serveral clients with versions from 5 onwards. I have
> > this particular client which runs on debain 12. ver.
> > 9.6.7(20dec20),
> > underlaying storage is ZFS.
> > 
> > The underlying storage is ~800gb in size. All of the sudden
> > incremental
> > backups started to increase exponentially
> > 
> > 1.4. - 93M
> > 2.4. - 574.5M
> > 3.4. - 115.5GB
> > 4.4. - 951.3GB
> > 5.4. - 1.7TB
> > 6.4. - 2.5TB
> > 7.4. - 3.4TB
> > 8.4. - 4.1TB
> > 9.4. - 4.7TB
> > 10.4.- 5.4TB
> > 
> > so last backup says 5,471,496,436,363 (5.471 TB) written, and last
> > 4
> > backups from this client with several others were written to this
> > tape
> > which is LTO6 - so max 2.5TB should be written (6.25 compressed).
> > 
> > For some reason estimation of the size of the backup is way off and
> > data written on the tape as now that tape says it has 18T written -
> > Vol. bytes  18.3TB
> > 
> > which is absolutely wrong...
> > 
> > even if I move that data to some other folder on that server I get
> > the
> > same result.
> > 
> > Any ideas?
> > 
> > Borut
> > 
> Have you got Accurate set to Yes in JobDefs?
> 
> My ZFS systems are Solaris, so YMMV.
> 

I am using ZFS for a while and this just happened now before all was
well, and yes I do have accurate to YES

Borut



> Cheers,
> GaryB-)
> 
> 
> ___
> 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] Issue with size of the backup

2024-04-11 Thread Gary R. Schmidt

On 11/04/2024 22:00, Borut Rozman via Bacula-users wrote:

Hi there,

I was wondering if anyone noticed something like this in their
environment, I have a bacula director ver 11.0.6. (10.3.2022)
connecting to serveral clients with versions from 5 onwards. I have
this particular client which runs on debain 12. ver. 9.6.7(20dec20),
underlaying storage is ZFS.

The underlying storage is ~800gb in size. All of the sudden incremental
backups started to increase exponentially

1.4. - 93M
2.4. - 574.5M
3.4. - 115.5GB
4.4. - 951.3GB
5.4. - 1.7TB
6.4. - 2.5TB
7.4. - 3.4TB
8.4. - 4.1TB
9.4. - 4.7TB
10.4.- 5.4TB

so last backup says 5,471,496,436,363 (5.471 TB) written, and last 4
backups from this client with several others were written to this tape
which is LTO6 - so max 2.5TB should be written (6.25 compressed).

For some reason estimation of the size of the backup is way off and
data written on the tape as now that tape says it has 18T written -
Vol. bytes  18.3TB

which is absolutely wrong...

even if I move that data to some other folder on that server I get the
same result.

Any ideas?

Borut


Have you got Accurate set to Yes in JobDefs?

My ZFS systems are Solaris, so YMMV.

Cheers,
GaryB-)


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


[Bacula-users] Issue with size of the backup

2024-04-11 Thread Borut Rozman via Bacula-users
Hi there,

I was wondering if anyone noticed something like this in their
environment, I have a bacula director ver 11.0.6. (10.3.2022)
connecting to serveral clients with versions from 5 onwards. I have
this particular client which runs on debain 12. ver. 9.6.7(20dec20),
underlaying storage is ZFS. 

The underlying storage is ~800gb in size. All of the sudden incremental
backups started to increase exponentially 

1.4. - 93M
2.4. - 574.5M
3.4. - 115.5GB
4.4. - 951.3GB
5.4. - 1.7TB
6.4. - 2.5TB
7.4. - 3.4TB
8.4. - 4.1TB
9.4. - 4.7TB
10.4.- 5.4TB

so last backup says 5,471,496,436,363 (5.471 TB) written, and last 4
backups from this client with several others were written to this tape
which is LTO6 - so max 2.5TB should be written (6.25 compressed). 

For some reason estimation of the size of the backup is way off and
data written on the tape as now that tape says it has 18T written -
Vol. bytes  18.3TB 

which is absolutely wrong...

even if I move that data to some other folder on that server I get the
same result.

Any ideas?

Borut



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


Re: [Bacula-users] Wildfile

2024-04-10 Thread Bill Arlofski via Bacula-users

On 4/10/24 11:38 PM, Stefan G. Weichinger wrote:


First coffee here right now ;-)
Thanks for your example.


Hello Stefan,

You are welcome!

Well, it is 23:41 here now, so I have switched from coffee to beer. :)



I didn't add "signature" but already came up with this yesterday:

Fileset {
Name = "VM_XYZ"
Include {
  File = "/mnt/backup/vmbackup/Backup XYZ"
  Options {
WildFile = "*.vbk"
  }
  Options {
Exclude = "Yes"
RegexFile = ".*"
  }
}
}

seems to work!


OH! Look at you, jumping from WildFile to RegexFile!  :)

I was trying to keep things simple, but OK. :)

Yes, this is fine. Remember my first post about there always being several ways 
to do something in Bacula? :)



Do I have to add that signature-line?


To confirm why I made that comment, try running a restore of one of these jobs 
that you have now backed up. ;)

What do you see?


Glad y
ou got this working!

And, if you like we can talk about Client side scripts to point your `File = ` at too. Just for more fun and practice, of 
course. BUT... client side scripts are a bit less scalable as you might imagine. :)



Best regards,
Bill

--
Bill Arlofski
w...@protonmail.com



signature.asc
Description: OpenPGP digital signature
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula and german special chars "umlauts"

2024-04-10 Thread Stefan G. Weichinger



I think those special chars are already in the filesystem like this.

It's no big deal as long as they are in the backups ;-)

Choosing files in the GUI is still possible, it just looks ugly or 
incorrect somehow.


I will check if that relates to the way samba was set up there etc (the 
relevant files are hosted by Samba)



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


Re: [Bacula-users] Wildfile

2024-04-10 Thread Stefan G. Weichinger

Am 10.04.24 um 16:45 schrieb Bill Arlofski via Bacula-users:

Hello Stefan,

No, this will not backup anything because you have not specified 
anything to backup with a `File = /path/to/somewhere` inside of your 
`Include{}` block. So far, you have only set something (WildFile) inside 
of an `Option{}` block.


There are several ways to do what you want (there always is with Bacula :)

The first, based on your current Fileset template will require a `File 
=` line as mentioned above and also another `Options{}` block to exclude 
everything else:

8<
Fileset {
    Name = "VM_xxx-y"
    Include {
  # This option block matches your *.vbk files and creates a 
signature in the catalog for backed up files

  Options {
    signature = sha1   # You need a 
signature, so I added this
    WildFile = "/mnt/backup/vmbackup/*.vbk"    # Note, I fixed your 
extra quotes and a backslash and simplified here

  }

  # This options block says to exclude everything else, not matched 
above

  Options {
    WildFile = "*.*"
    Exclude = yes
  }

  File = "/mnt/backup/vmbackup"  # And finally, what 'top level' 
directory are we considering for backups

    }
}
8<

This "Should work"™  I have not tested it, and wrote it quickly in my 
email client before finishing my first cup of coffee this morning. :)


First coffee here right now ;-)
Thanks for your example.

I didn't add "signature" but already came up with this yesterday:

Fileset {
  Name = "VM_XYZ"
  Include {
File = "/mnt/backup/vmbackup/Backup XYZ"
Options {
  WildFile = "*.vbk"
}
Options {
  Exclude = "Yes"
  RegexFile = ".*"
}
  }
}

seems to work!

Do I have to add that signature-line?

Remember, when you have re-configured this Fileset and have issued a 
`reload` command in bconsole, instead or running the job, you can 
quickly see if your settings do what you want with an `estimate` command 
like:


* estimate listing job=

This way you don't have a bunch of failed jobs in your catalog. :)


Ah, good, that's a nice learning, thanks!

P.S. I see your files (or directories, I am not 100% sure which) have 
spaces in their names.  I would recommend doing yourself a favor and not 
using spaces if you can help it. It will make your life easier and save 
you from needing to "escape" spaces with backslashes, etc.


I totally agree, but it's not fully in my hand.

The Veeam--backups are done by another admin there .. I will talk to him 
to use better naming and also generalizing the directory names.


I am proceeding with editing and testing all my Filesets and Jobs now.

Have a great day,
Stafen



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


Re: [Bacula-users] Backup in disk AND tape

2024-04-10 Thread Chris Wilkinson
I have this working now. The script is below, as per Bill's script with an
extention. It is called from a Runscript as "Command =
/full-path/run-copy-job.sh copy-job-name". There is a copy job defined for
each backup job. The $1 parameter passes the copy job name to the script.

#!/bin/bash
#usage run-copy-job.sh job-name
# Pipe the run command to bconsole
# 
echo "run yes job=$1" | bconsole

This all works fine. The disadvantage is that the copy job hard codes the
level to be copied so the same copy job (in my case full) runs irrespective
of the job being incr/diff/full. For "selection type=PoolUncopiedJobs" this
is only a minor issue since already copied jobs are skipped.

Chris

On Tue, 9 Apr 2024, 15:12 Bill Arlofski,  wrote:

> On 4/9/24 6:53 AM, Chris Wilkinson wrote:
> > Regarding the suggestion to put a Runafter block in the job to run the
> copy job at the end, that doesn't seem to be allowed.
> > Run job=xx commands are not permitted in a Runscript as I just found
> out. It gives a not allowed command error.
> >
> > Perhaps there is another way to accomplish this?
> >
>
> Hello Chris,
>
> Yes, convert that run command to a simple script like:
>
> /opt/bacula/script/run_catalog-copy.sh:
> 8<
> #!/bin/bash
>
> # Pipe the run command to bconsole
> # 
> echo "run yes job=catalog-copy" | bconsole
> 8<
>
> Now, that is the most basic it needs to be, but you can add other things
> to it. ie: error checking, command line options,
> etc. Although in your use case it does not seem necessary to complicate
> things. :)
>
>
> Then, just replace the
> 8<
> Console = "run job=catalog-copy yes"
> 8<
>
> ...line in your RunScript with:
>
> 8<
> `Command = /opt/bacula/script/ru
> n_catalog-copy.sh`
> 8<
>
> And you should be OK.
>
> Make sure your `catalog-copy` job has the same Priority (11) as your
> Catalog job, otherwise you will end up in a dead-lock
> where the Copy job waits for the Catalog job to finish, and the Copy job
> is waiting for the catalog-copy job (which will
> never start) to finish.
>
>
> Hope this helps,
> Bill
>
> --
> Bill Arlofski
> w...@protonmail.com
>
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacularis/Baculum] Restore with web doesn't create job before 1 hour

2024-04-10 Thread Marcin Haba
Hello Timothé,

On Wed, 10 Apr 2024 at 17:29, timothe pennec  wrote:

> Thank you i will test this workaround.
>
> Maybe migrating to PostreSQL will correct this issue if i understood ?
>


For sure it is a good choice for Bacula.

Best regards,
Marcin Haba (gani)


>
> Best regards,
> Timothé
>
> --
> *De :* Marcin Haba 
> *Envoyé :* mercredi 10 avril 2024 07:32
> *À :* timothe pennec ;
> Bacula-users@lists.sourceforge.net 
> *Objet :* Re: [Bacula-users] [Bacularis/Baculum] Restore with web doesn't
> create job before 1 hour
>
> Hello Timothé,
>
> I did some tests and analysis for this hanging restore command error. It
> looks that the Bacula Bvfs restore part responsible for hardlinks causes
> it. This change came to Bacula in version 11.0.
>
> Looking at this hardlinks part, as a workaround I created an index in the
> catalog that solved this hanging:
>
> CREATE INDEX file_jobid_fileindex_idx ON File (JobId, FileIndex);
>
> Creating this index can take some time specially if you have many files in
> the File table, but later the restore starts without waiting.
>
> Creating index is not a solution, better if the hardlinks part could be
> optimized if possible. For now I don't have any other option for that.
>
> For these hardlinks, in Bacula it is a common part for MySQL/MariaDB and
> PostgreSQL, but with MySQL this problem is much better visible.
>
> Best regards,
> Marcin Haba (gani)
>
> On Sat, 6 Apr 2024 at 18:55, Marcin Haba  wrote:
>
> Hello Timothé,
>
> Thanks for providing all details about this restore problem.
>
> I did tests on a set of 150K files with old Bacula 9.0.6 and the latest
> 15.0.2. It looks that something has changed in Bacula MySQL/MariaDB support
> in a version between because on the version 9 it works well, while on 15 it
> hangs on the restore commands.
>
> Your restore using bconsole can work much better because it does not use
> Bacula Bvfs interface.
>
> I will try to look at it deeper in the next few days. I will let know if I
> find something.
>
> Best regards,
> Marcin Haba (gani)
>
> On Thu, 4 Apr 2024 at 16:14, timothe pennec  wrote:
>
> Hi,
>
> I'm using mariadb for database and it's him seems to be slow :
> top result :
>
> top - 16:08:51 up 2 days, 20:10,  6 users,  load average: 0,97, 0,60, 0,29
> Tasks: 307 total,   1 running, 306 sleeping,   0 stopped,   0 zombie
> %Cpu(s): 12,5 us,  0,0 sy,  0,0 ni, 87,3 id,  0,0 wa,  0,0 hi,  0,2 si,
>  0,0 st
> MiB Mem :   7936,5 total,177,7 free,592,8 used,   7166,1 buff/cache
> MiB Swap:   4096,0 total,   4095,0 free,  1,0 used.   7026,5 avail Mem
> PID USER  PR  NIVIRTRESSHR S  %CPU  %MEM TIME+ COMMAND
>   29267 mysql 20   0 1346196 142604  23396 S 100,0   1,8   2:53.58
> mariadbd
>
> I've 8 vCPU but only one is at 100 % (can see it with htop) all other at 0.
>
> I've enabled debug level 500 and i can see many log right after submit
> button "Run" and stuck at :
>
> bacula-dir: ua_restore.c:2015-0 JobId=4792 JobIds= FileIndex=10
> [All 53000 files ...]
> bacula-dir: ua_restore.c:2015-0 JobId=4792 JobIds= FileIndex=53895
> bacula-dir: ua_restore.c:2015-0 JobId=4792 JobIds= FileIndex=53896
> bacula-dir: mysql.c:584-0 db_sql_query finished
> bacula-dir: ua_restore.c:1476-0 query=SELECT Path.Path, File.Filename FROM
> File JOIN Path USING (PathId) JOIN b210091 AS T ON (File.JobId = T.JobId
> AND File.FileIndex = T.FileIndex) WHERE File.Filename LIKE
> ':component_info_%' AND File.JobId IN (4792)
> bacula-dir: mysql.c:527-0 db_sql_query starts with SELECT Path.Path,
> File.Filename FROM File JOIN Path USING (PathId) JOIN b210091 AS T ON
> (File.JobId = T.JobId AND File.FileIndex = T.FileIndex) WHERE File.Filename
> LIKE ':component_info_%' AND File.JobId IN (4792)
>
>
> Any idea ?
>
> Thank you
> Timothé
>
> --
> *De :* Marcin Haba 
> *Envoyé :* mercredi 3 avril 2024 21:53
> *À :* timothe pennec 
> *Cc :* bacula-users@lists.sourceforge.net <
> bacula-users@lists.sourceforge.net>
> *Objet :* Re: [Bacula-users] [Bacularis/Baculum] Restore with web doesn't
> create job before 1 hour
>
> Hello Timothé,
>
> Thanks for your detailed description of the problem.
>
> For start I would propose to check what is going inside Bacula and the
> Catalog when this restore is trying to start.
>
> Yes, observing 'ps aux' is a good idea, that you did. Also useful can be
> 'top' command with watching what process takes the most resources.
>
> From the Bacula side you can set debug for Director by this bconsole
> command:
>
> setdebug level=500 tags=bvfs,sql trace=1 dir
>
> in the Bacula Director working directory you will see the
> youdirector-dir.trace file where this debug lines will be written.
>
> If your Catalog database is PostgreSQL you ran run in the time of the
> restore hanging this SQL query to see currently pending SQL queries:
>
> SELECT * FROM pg_stat_activity;
>
> Please let us know about the results.
>
> Good luck.
>
> Best regards,
> Marcin 

Re: [Bacula-users] baculum + bacula 13.0.4 slow web interface

2024-04-10 Thread Marcin Haba
Hello Unkdef,

Thanks for your feedback.

I would propose to do a test. Could you please go to the application
settings page (the gear wheel icon on the top left side), there please go
to the 'Display options' tab and in an option with label "Job age on the
dashboard job graphs" could you put a value for example 7 days or 3 days?
Once you save it, please check and let us know if loading the dashboard is
faster.

Did you try to tune the database using mysqltuner?

Best regards,
Marcin Haba (gani)

On Wed, 10 Apr 2024 at 10:30, Unkdef unkdef  wrote:

> Please help problem not solved. when i renew page i dont see backups... i
> need to wait 10-20 sec before it appears
>
> вс, 7 апр. 2024 г. в 15:33, Marcin Haba :
>
>> Hello Unkdef,
>>
>> Yes, it does. As Rob mentioned, Bacularis is based on Baculum that
>> supports Russian translations too. The translations are there thanks to
>> Sergey Zhidkov who prepared them.
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Sun, 7 Apr 2024 at 10:50, Unkdef unkdef 
>> wrote:
>>
>>>
>>> ok i try bacularis
>>> does bacularis support russian language interface?
>>>
>>> Rob Gerber  7 апреля 2024 г. 01:24:27 написал:
>>>
 Unkdef, one important thing to know is that Bacularis is a friendly
 fork of baculum. It's very similar, and Marcin has been actively
 maintaining it. Marcin is also a baculum developer.

 Basically, Bacularis is the better, more optimized tool.

 This doesn't mean that the source of your problem is certainly baculum,
 but trying the actively maintained and more optimized tool Bacularis is
 certainly a good first step. :)

 Bacularis is available in docker containers if you want to simply load
 a container and give it a try. It is naturally available for bare metal
 installations as well.

 Https://bacularis.app

 Robert Gerber
 402-237-8692
 r...@craeon.net



-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Install.sh error trying to install manually Bacularis

2024-04-10 Thread Marcin Haba
Hello Neil,

Yes, I think that your assumption about PATH can be correct. It looks that
the /usr/local/bin path is not accessible for executing by PHP exec().

If you want you can add at the beginning of the mtx-changer script

echo $PATH

to see where exactly mtx-changer looks for binaries when it is executed via
web.

I found that FreeBSD users report this problem with PATH too:

https://forums.freebsd.org/threads/heads-up-php-exec-does-not-look-in-usr-local-bin-for-executables.78098/

Fortunately it is not difficult to solve. You can fix the PATH in
mtx-changer script or globally if it is possible.

Best regards,
Marcin Haba (gani)

On Wed, 10 Apr 2024 at 18:33, Neil Balchin  wrote:

> When trying to configure the auto changer in the API panel,  I click.
> Checkbox on get sudo configuration and when I test I get this error in red:
>
>/usr/local/share/bacula/mtx-changer: mtx: not found
> /usr/local/share/bacula/mtx-changer: perl: not found
>
>
> Both mtx and perl are installed in the system ,  perhaps there’s a path
> issue in the MTX changer script ?
>
>
> On 9 Apr 2024, at 20:56, Marcin Haba  wrote:
>
> Hello Neil,
>
> For running everything in FreeBSD Jail, if to use mtx-changer by bacula
> user is needed sudo, I think the sudo needs to be added to ChangerCommand
> too:
>
> Autochanger {
>   Name = "TL2000"
>   Device = "HH-LTO7"
>   ChangerDevice = "/dev/pass1"
>   ChangerCommand = "sudo /etc/bacula/scripts/mtx-changer %c %o %S %a %d"
> }
>
> For Perl, it is used by mtx-changer script. I see in mtx-changer that the
> Perl command can be changed to commented by default awk/sed/cut commands.
> Inside mtx-changer after the Perl command is this comment:
>
> # If perl isn't installed, you can use by those commands
>
> Best regards,
> Marcin Haba (gani)
>
> On Wed, 10 Apr 2024 at 01:44, Neil Balchin  wrote:
>
>> So I’m doing all of this from within a Freebsd Jail inside of Trueness.
>>
>> Therefore although I can expose the /dev devices I can’t easily change
>> their rwx properties so instead I added some lines to my sudoers config
>> file that allows the www and bacula users to perform certain sudo functions
>> without a password.
>>
>>
>> I added a sudo in front of my max-changer config in my bacula-sd.conf,
>>  by my theory this should be just fine
>>
>> I tested this command:
>> root@Bacula1:~ # sudo -u bacula sudo /usr/local/share/bacula/mtx-changer
>> /dev/pass1 slots
>> 24
>> root@Bacula1:~ #
>>
>> And as you can see I get the expected count of 24 slots
>>
>> Unfortunately from console:  I get
>>
>> *update slots
>> Automatically selected Catalog: MyCatalog
>> Using Catalog "MyCatalog"
>> The defined Storage resources are:
>>  1: File1
>>  2: File2
>>  3: HH-LTO7
>>  4: TL2000
>> Select Storage resource (1-4): 4
>> Connecting to Storage daemon TL2000 at localhost:9103 ...
>> 3306 Issuing autochanger "slots" command.
>> Device "TL2000" has 0 slots.
>> No slots in changer to scan.
>> *
>>
>> Now when I try to add the Autochanger TL2000 in the API I get an error
>> that it can’t find perl,  Is perl a preqequisite to bacula and I missed
>> that ?
>>
>>
>>
>>
>>
>> On 9 Apr 2024, at 14:39, Marcin Haba  wrote:
>>
>> Hello Neil,
>>
>> From your description it looks that Bacularis works with the mtx-changer
>> script well.
>>
>> For labeling volumes, as it is action realized by Bacula SD, so I think,
>> it might be good to check if the mtx-changer script is capable of being
>> correctly executed by the bacula user.
>>
>> For test I would propose to try this command:
>>
>> # sudo -u bacula /etc/bacula/scripts/mtx-changer /dev/pass1 slots
>>
>> and also a good test could be trying to label a sample volume using
>> bconsole.
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Tue, 9 Apr 2024 at 20:30, Rob Gerber  wrote:
>>
>>> What happens when you click 'update slots' on the volumes page, and tell
>>> it to update slots 1-24? Idk if this is relevant, but perhaps it is. Should
>>> update bacula's knowledge of what is in the library, as per mtx. The output
>>> once you click that button and tell it to update slots 1-24 should show
>>> that it knew about every tape's position in various slots in the library.
>>> If it says anything about updating a record to reflect a tape being in a
>>> certain slot, then its knowledge was incorrect and has been corrected.
>>>
>>> Robert Gerber
>>> 402-237-8692
>>> r...@craeon.net
>>>
>>> On Tue, Apr 9, 2024, 1:14 PM Neil Balchin  wrote:
>>>
 Ok Great,  that solves that problem

 I’m almost there

 I’m using a Dell TL2000 Tape library and a HH LTO7 drive

 I’ve added these to my bacula-sd ( configs pasted below). Also added
 the Autochanger and Drives to the API device list

 From the API gui. It’s clearly running the slots and status commands
 properly. Because it shows the 19 tapes with barcodes ,  however when I try
 to label these tapes from the volumes page it reports Zero slots

 Autochanger {

Re: [Bacula-users] Install.sh error trying to install manually Bacularis

2024-04-10 Thread Neil Balchin
When trying to configure the auto changer in the API panel,  I click. Checkbox 
on get sudo configuration and when I test I get this error in red:

   /usr/local/share/bacula/mtx-changer: mtx: not found 
/usr/local/share/bacula/mtx-changer: perl: not found


Both mtx and perl are installed in the system ,  perhaps there’s a path issue 
in the MTX changer script ?


> On 9 Apr 2024, at 20:56, Marcin Haba  wrote:
> 
> Hello Neil,
> 
> For running everything in FreeBSD Jail, if to use mtx-changer by bacula user 
> is needed sudo, I think the sudo needs to be added to ChangerCommand too:
> 
> Autochanger {
>   Name = "TL2000"
>   Device = "HH-LTO7"
>   ChangerDevice = "/dev/pass1"
>   ChangerCommand = "sudo /etc/bacula/scripts/mtx-changer %c %o %S %a %d"
> }
> 
> For Perl, it is used by mtx-changer script. I see in mtx-changer that the 
> Perl command can be changed to commented by default awk/sed/cut commands. 
> Inside mtx-changer after the Perl command is this comment:
> 
> # If perl isn't installed, you can use by those commands
> 
> Best regards,
> Marcin Haba (gani)
> 
> On Wed, 10 Apr 2024 at 01:44, Neil Balchin  > wrote:
>> So I’m doing all of this from within a Freebsd Jail inside of Trueness.
>> 
>> Therefore although I can expose the /dev devices I can’t easily change their 
>> rwx properties so instead I added some lines to my sudoers config file that 
>> allows the www and bacula users to perform certain sudo functions without a 
>> password.
>> 
>> 
>> I added a sudo in front of my max-changer config in my bacula-sd.conf,  by 
>> my theory this should be just fine
>> 
>> I tested this command:  
>> root@Bacula1:~ # sudo -u bacula sudo /usr/local/share/bacula/mtx-changer 
>> /dev/pass1 slots
>> 24
>> root@Bacula1:~ # 
>> 
>> And as you can see I get the expected count of 24 slots
>> 
>> Unfortunately from console:  I get
>> 
>> *update slots
>> Automatically selected Catalog: MyCatalog
>> Using Catalog "MyCatalog"
>> The defined Storage resources are:
>>  1: File1
>>  2: File2
>>  3: HH-LTO7
>>  4: TL2000
>> Select Storage resource (1-4): 4
>> Connecting to Storage daemon TL2000 at localhost:9103 ...
>> 3306 Issuing autochanger "slots" command.
>> Device "TL2000" has 0 slots.
>> No slots in changer to scan.
>> *
>> 
>> Now when I try to add the Autochanger TL2000 in the API I get an error that 
>> it can’t find perl,  Is perl a preqequisite to bacula and I missed that ?
>> 
>> 
>> 
>> 
>> 
>>> On 9 Apr 2024, at 14:39, Marcin Haba >> > wrote:
>>> 
>>> Hello Neil,
>>> 
>>> From your description it looks that Bacularis works with the mtx-changer 
>>> script well.
>>> 
>>> For labeling volumes, as it is action realized by Bacula SD, so I think, it 
>>> might be good to check if the mtx-changer script is capable of being 
>>> correctly executed by the bacula user.
>>> 
>>> For test I would propose to try this command:
>>> 
>>> # sudo -u bacula /etc/bacula/scripts/mtx-changer /dev/pass1 slots
>>> 
>>> and also a good test could be trying to label a sample volume using 
>>> bconsole.
>>> 
>>> Best regards,
>>> Marcin Haba (gani)
>>> 
>>> On Tue, 9 Apr 2024 at 20:30, Rob Gerber >> > wrote:
 What happens when you click 'update slots' on the volumes page, and tell 
 it to update slots 1-24? Idk if this is relevant, but perhaps it is. 
 Should update bacula's knowledge of what is in the library, as per mtx. 
 The output once you click that button and tell it to update slots 1-24 
 should show that it knew about every tape's position in various slots in 
 the library. If it says anything about updating a record to reflect a tape 
 being in a certain slot, then its knowledge was incorrect and has been 
 corrected.
 
 Robert Gerber
 402-237-8692
 r...@craeon.net 
 On Tue, Apr 9, 2024, 1:14 PM Neil Balchin >>> > wrote:
> Ok Great,  that solves that problem
> 
> I’m almost there
> 
> I’m using a Dell TL2000 Tape library and a HH LTO7 drive 
> 
> I’ve added these to my bacula-sd ( configs pasted below). Also added the 
> Autochanger and Drives to the API device list
> 
> From the API gui. It’s clearly running the slots and status commands 
> properly. Because it shows the 19 tapes with barcodes ,  however when I 
> try to label these tapes from the volumes page it reports Zero slots
> 
> Autochanger {
>   Name = "TL2000"
>   Device = "HH-LTO7"
>   ChangerDevice = "/dev/pass1"
>   ChangerCommand = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
> }
> 
> Device {
>   Name = "HH-LTO7"
>   MediaType = "LTO-7"
>   ArchiveDevice = "/dev/sa0"
>   HardwareEndOfMedium = no
>   BackwardSpaceRecord = no
>   BsfAtEom = yes
>   TwoEof = yes
>   FastForwardSpaceFile = yes
>   RemovableMedia = yes
>   

Re: [Bacula-users] Wildfile

2024-04-10 Thread Bill Arlofski via Bacula-users

On 4/10/24 12:38 AM, Stefan G. Weichinger wrote:


Is this Fileset correct?

Fileset {
Name = "VM_xxx-y"
Include {
  Options {
WildFile = "\"/mnt/backup/vmbackup/Backup xxx-y/*.vbk\""
  }
}
}


I don't get files with this ... seems not to match.


Hello Stefan,

No, this will not backup anything because you have not specified anything to backup with a `File = /path/to/somewhere` inside 
of your `Include{}` block. So far, you have only set something (WildFile) inside of an `Option{}` block.


There are several ways to do what you want (there always is with Bacula :)

The first, based on your current Fileset template will require a `File =` line as mentioned above and also another 
`Options{}` block to exclude everything else:

8<
Fileset {
   Name = "VM_xxx-y"
   Include {
 # This option block matches your *.vbk files and creates a signature in 
the catalog for backed up files
 Options {
   signature = sha1   # You need a signature, so I 
added this
   WildFile = "/mnt/backup/vmbackup/*.vbk"# Note, I fixed your extra 
quotes and a backslash and simplified here
 }

 # This options block says to exclude everything else, not matched above
 Options {
   WildFile = "*.*"
   Exclude = yes
 }

 File = "/mnt/backup/vmbackup"  # And finally, what 'top level' 
directory are we considering for backups
   }
}
8<

This "Should work"™  I have not tested it, and wrote it quickly in my email client before finishing my first cup of coffee 
this morning. :)


Remember, when you have re-configured this Fileset and have issued a `reload` command in bconsole, instead or running the 
job, you can quickly see if your settings do what you want with an `estimate` command like:


* estimate listing job=

This way you don't have a bunch of failed jobs in your catalog. :)

P.S. I see your files (or directories, I am not 100% sure which) have spaces in their names.  I would recommend doing 
yourself a favor and not using spaces if you can help it. It will make your life easier and save you from needing to "escape" 
spaces with backslashes, etc.



Hope this helps,
Bill

--
Bill Arlofski
w...@protonmail.com



signature.asc
Description: OpenPGP digital signature
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Wildfile

2024-04-10 Thread Stefan G. Weichinger

Am 10.04.24 um 14:25 schrieb Rob Gerber:

I don't think it is correct, no.

I am not an expert, but last time I tried something like this I believe 
the suggestion I was given was to use a runbefore script to run a find 
command or similar to locate and build a file list, then give that list 
to bacula as input for the job.


Perhaps for your runbefore use something like the following line.
mountpoint -q /mnt/backup/ && find '/mnt/backup/vmbackup/Backup xxx-y/' 
-type f -name '*.vbk' > /opt/bacula/working/VM_xxx-y.list ||
mount /mnt/backup/ && find /mnt/backup/vmbackup/Backup xxx-y/ -type f 
-name '*.vbk' > /opt/bacula/working/VM_xxx-y.list


If any part of this fails it SHOULD exit nonzero and the job will fail 
(which is what you want). I recommend testing this before relying on it. 
I've only written it in an email client. I assume using bash here.


I'm not certain how to include files from a list elsewhere, but I know 
it can be done. I think you do @/opt/bacula/working/VM_xxx-y.list in 
your fileset definition. Check the docs to be sure.


I can't believe that this could be that complicated to have to use a 
script before the dump!


my goal:

include all files "*.vbk"

or exclude "*.vib" in a given directory

-

I look at

https://www.bacula.org/13.0.x-manuals/en/main/Configuring_Director.html

section "FileSet Examples" and will try to copy that




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


Re: [Bacula-users] Wildfile

2024-04-10 Thread Rob Gerber
I don't think it is correct, no.

I am not an expert, but last time I tried something like this I believe the
suggestion I was given was to use a runbefore script to run a find command
or similar to locate and build a file list, then give that list to bacula
as input for the job.

Perhaps for your runbefore use something like the following line.
mountpoint -q /mnt/backup/ && find '/mnt/backup/vmbackup/Backup xxx-y/'
-type f -name '*.vbk' > /opt/bacula/working/VM_xxx-y.list ||
mount /mnt/backup/ && find /mnt/backup/vmbackup/Backup xxx-y/ -type f -name
'*.vbk' > /opt/bacula/working/VM_xxx-y.list

If any part of this fails it SHOULD exit nonzero and the job will fail
(which is what you want). I recommend testing this before relying on it.
I've only written it in an email client. I assume using bash here.

I'm not certain how to include files from a list elsewhere, but I know it
can be done. I think you do @/opt/bacula/working/VM_xxx-y.list in your
fileset definition. Check the docs to be sure.

Regards,
Robert Gerber
402-237-8692
r...@craeon.net

On Wed, Apr 10, 2024, 1:39 AM Stefan G. Weichinger  wrote:

>
> Is this Fileset correct?
>
> Fileset {
>Name = "VM_xxx-y"
>Include {
>  Options {
>WildFile = "\"/mnt/backup/vmbackup/Backup xxx-y/*.vbk\""
>  }
>}
> }
>
>
> I don't get files with this ... seems not to match.
>
>
>
> ___
> 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] Wildfile

2024-04-10 Thread Stefan G. Weichinger



Is this Fileset correct?

Fileset {
  Name = "VM_xxx-y"
  Include {
Options {
  WildFile = "\"/mnt/backup/vmbackup/Backup xxx-y/*.vbk\""
}
  }
}


I don't get files with this ... seems not to match.



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


Re: [Bacula-users] [Bacularis/Baculum] Restore with web doesn't create job before 1 hour

2024-04-09 Thread Marcin Haba
Hello Timothé,

I did some tests and analysis for this hanging restore command error. It
looks that the Bacula Bvfs restore part responsible for hardlinks causes
it. This change came to Bacula in version 11.0.

Looking at this hardlinks part, as a workaround I created an index in the
catalog that solved this hanging:

CREATE INDEX file_jobid_fileindex_idx ON File (JobId, FileIndex);

Creating this index can take some time specially if you have many files in
the File table, but later the restore starts without waiting.

Creating index is not a solution, better if the hardlinks part could be
optimized if possible. For now I don't have any other option for that.

For these hardlinks, in Bacula it is a common part for MySQL/MariaDB and
PostgreSQL, but with MySQL this problem is much better visible.

Best regards,
Marcin Haba (gani)

On Sat, 6 Apr 2024 at 18:55, Marcin Haba  wrote:

> Hello Timothé,
>
> Thanks for providing all details about this restore problem.
>
> I did tests on a set of 150K files with old Bacula 9.0.6 and the latest
> 15.0.2. It looks that something has changed in Bacula MySQL/MariaDB support
> in a version between because on the version 9 it works well, while on 15 it
> hangs on the restore commands.
>
> Your restore using bconsole can work much better because it does not use
> Bacula Bvfs interface.
>
> I will try to look at it deeper in the next few days. I will let know if I
> find something.
>
> Best regards,
> Marcin Haba (gani)
>
> On Thu, 4 Apr 2024 at 16:14, timothe pennec  wrote:
>
>> Hi,
>>
>> I'm using mariadb for database and it's him seems to be slow :
>> top result :
>>
>> top - 16:08:51 up 2 days, 20:10,  6 users,  load average: 0,97, 0,60, 0,29
>> Tasks: 307 total,   1 running, 306 sleeping,   0 stopped,   0 zombie
>> %Cpu(s): 12,5 us,  0,0 sy,  0,0 ni, 87,3 id,  0,0 wa,  0,0 hi,  0,2 si,
>>  0,0 st
>> MiB Mem :   7936,5 total,177,7 free,592,8 used,   7166,1
>> buff/cache
>> MiB Swap:   4096,0 total,   4095,0 free,  1,0 used.   7026,5 avail Mem
>> PID USER  PR  NIVIRTRESSHR S  %CPU  %MEM TIME+ COMMAND
>>   29267 mysql 20   0 1346196 142604  23396 S 100,0   1,8   2:53.58
>> mariadbd
>>
>> I've 8 vCPU but only one is at 100 % (can see it with htop) all other at
>> 0.
>>
>> I've enabled debug level 500 and i can see many log right after submit
>> button "Run" and stuck at :
>>
>> bacula-dir: ua_restore.c:2015-0 JobId=4792 JobIds= FileIndex=10
>> [All 53000 files ...]
>> bacula-dir: ua_restore.c:2015-0 JobId=4792 JobIds= FileIndex=53895
>> bacula-dir: ua_restore.c:2015-0 JobId=4792 JobIds= FileIndex=53896
>> bacula-dir: mysql.c:584-0 db_sql_query finished
>> bacula-dir: ua_restore.c:1476-0 query=SELECT Path.Path, File.Filename
>> FROM File JOIN Path USING (PathId) JOIN b210091 AS T ON (File.JobId =
>> T.JobId AND File.FileIndex = T.FileIndex) WHERE File.Filename LIKE
>> ':component_info_%' AND File.JobId IN (4792)
>> bacula-dir: mysql.c:527-0 db_sql_query starts with SELECT Path.Path,
>> File.Filename FROM File JOIN Path USING (PathId) JOIN b210091 AS T ON
>> (File.JobId = T.JobId AND File.FileIndex = T.FileIndex) WHERE File.Filename
>> LIKE ':component_info_%' AND File.JobId IN (4792)
>>
>>
>> Any idea ?
>>
>> Thank you
>> Timothé
>>
>> --
>> *De :* Marcin Haba 
>> *Envoyé :* mercredi 3 avril 2024 21:53
>> *À :* timothe pennec 
>> *Cc :* bacula-users@lists.sourceforge.net <
>> bacula-users@lists.sourceforge.net>
>> *Objet :* Re: [Bacula-users] [Bacularis/Baculum] Restore with web
>> doesn't create job before 1 hour
>>
>> Hello Timothé,
>>
>> Thanks for your detailed description of the problem.
>>
>> For start I would propose to check what is going inside Bacula and the
>> Catalog when this restore is trying to start.
>>
>> Yes, observing 'ps aux' is a good idea, that you did. Also useful can be
>> 'top' command with watching what process takes the most resources.
>>
>> From the Bacula side you can set debug for Director by this bconsole
>> command:
>>
>> setdebug level=500 tags=bvfs,sql trace=1 dir
>>
>> in the Bacula Director working directory you will see the
>> youdirector-dir.trace file where this debug lines will be written.
>>
>> If your Catalog database is PostgreSQL you ran run in the time of the
>> restore hanging this SQL query to see currently pending SQL queries:
>>
>> SELECT * FROM pg_stat_activity;
>>
>> Please let us know about the results.
>>
>> Good luck.
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Wed, 3 Apr 2024 at 20:40, timothe pennec  wrote:
>>
>> Hi everyone,
>>
>> I've one issue with Bacularis (and same with Baculum) WEB when i follow
>> the restore wizzard :
>>
>>- I select my client and let checked "Enable restore from copy job
>>feature"
>>- I select the Last full Backup of my client
>>- I select one folder with add button (total of files about 55 000
>>and total syse about 4Go)
>>- I select the same client and "/tm/restore" folder for testing
>>- I 

Re: [Bacula-users] Install.sh error trying to install manually Bacularis

2024-04-09 Thread Marcin Haba
Hello Neil,

For running everything in FreeBSD Jail, if to use mtx-changer by bacula
user is needed sudo, I think the sudo needs to be added to ChangerCommand
too:

Autochanger {
  Name = "TL2000"
  Device = "HH-LTO7"
  ChangerDevice = "/dev/pass1"
  ChangerCommand = "sudo /etc/bacula/scripts/mtx-changer %c %o %S %a %d"
}

For Perl, it is used by mtx-changer script. I see in mtx-changer that the
Perl command can be changed to commented by default awk/sed/cut commands.
Inside mtx-changer after the Perl command is this comment:

# If perl isn't installed, you can use by those commands

Best regards,
Marcin Haba (gani)

On Wed, 10 Apr 2024 at 01:44, Neil Balchin  wrote:

> So I’m doing all of this from within a Freebsd Jail inside of Trueness.
>
> Therefore although I can expose the /dev devices I can’t easily change
> their rwx properties so instead I added some lines to my sudoers config
> file that allows the www and bacula users to perform certain sudo functions
> without a password.
>
>
> I added a sudo in front of my max-changer config in my bacula-sd.conf,  by
> my theory this should be just fine
>
> I tested this command:
>
> root@Bacula1:~ # sudo -u bacula sudo /usr/local/share/bacula/mtx-changer
> /dev/pass1 slots
>
> 24
>
> root@Bacula1:~ #
>
>
> And as you can see I get the expected count of 24 slots
>
>
> Unfortunately from console:  I get
>
>
> *update slots
>
> Automatically selected Catalog: MyCatalog
>
> Using Catalog "MyCatalog"
>
> The defined Storage resources are:
>
>  1: File1
>
>  2: File2
>
>  3: HH-LTO7
>
>  4: TL2000
>
> Select Storage resource (1-4): 4
>
> Connecting to Storage daemon TL2000 at localhost:9103 ...
>
> 3306 Issuing autochanger "slots" command.
>
> Device "TL2000" has 0 slots.
>
> No slots in changer to scan.
>
> *
>
>
> Now when I try to add the Autochanger TL2000 in the API I get an error
> that it can’t find perl,  Is perl a preqequisite to bacula and I missed
> that ?
>
>
>
>
>
>
> On 9 Apr 2024, at 14:39, Marcin Haba  wrote:
>
> Hello Neil,
>
> From your description it looks that Bacularis works with the mtx-changer
> script well.
>
> For labeling volumes, as it is action realized by Bacula SD, so I think,
> it might be good to check if the mtx-changer script is capable of being
> correctly executed by the bacula user.
>
> For test I would propose to try this command:
>
> # sudo -u bacula /etc/bacula/scripts/mtx-changer /dev/pass1 slots
>
> and also a good test could be trying to label a sample volume using
> bconsole.
>
> Best regards,
> Marcin Haba (gani)
>
> On Tue, 9 Apr 2024 at 20:30, Rob Gerber  wrote:
>
>> What happens when you click 'update slots' on the volumes page, and tell
>> it to update slots 1-24? Idk if this is relevant, but perhaps it is. Should
>> update bacula's knowledge of what is in the library, as per mtx. The output
>> once you click that button and tell it to update slots 1-24 should show
>> that it knew about every tape's position in various slots in the library.
>> If it says anything about updating a record to reflect a tape being in a
>> certain slot, then its knowledge was incorrect and has been corrected.
>>
>> Robert Gerber
>> 402-237-8692
>> r...@craeon.net
>>
>> On Tue, Apr 9, 2024, 1:14 PM Neil Balchin  wrote:
>>
>>> Ok Great,  that solves that problem
>>>
>>> I’m almost there
>>>
>>> I’m using a Dell TL2000 Tape library and a HH LTO7 drive
>>>
>>> I’ve added these to my bacula-sd ( configs pasted below). Also added the
>>> Autochanger and Drives to the API device list
>>>
>>> From the API gui. It’s clearly running the slots and status commands
>>> properly. Because it shows the 19 tapes with barcodes ,  however when I try
>>> to label these tapes from the volumes page it reports Zero slots
>>>
>>> Autochanger {
>>>   Name = "TL2000"
>>>   Device = "HH-LTO7"
>>>   ChangerDevice = "/dev/pass1"
>>>   ChangerCommand = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
>>> }
>>>
>>> Device {
>>>   Name = "HH-LTO7"
>>>   MediaType = "LTO-7"
>>>   ArchiveDevice = "/dev/sa0"
>>>   HardwareEndOfMedium = no
>>>   BackwardSpaceRecord = no
>>>   BsfAtEom = yes
>>>   TwoEof = yes
>>>   FastForwardSpaceFile = yes
>>>   RemovableMedia = yes
>>>   RandomAccess = no
>>>   AutomaticMount = yes
>>>   AlwaysOpen = yes
>>>   Autochanger = yes
>>>   ControlDevice = "/dev/pass1"
>>>   AlertCommand = "/usr/local/share/bacula/tapealert %l"
>>> }
>>>
>>> I can run mt and mtx commands freely from the command line as both the
>>> bacula user and www user so I think my /dev/ permissions are ok
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>

-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacularis in a container

2024-04-09 Thread Rob Gerber
I know what your problem is. You need a Bacularis API instance. Bacularis
web connects to a Bacularis API instance, which connects to the bacula
director. Right now you only have a Bacularis web instance.

If your bacula instance is entirely bare metal, not in a container, then
you probably don't want to use containers to install Bacularis, or at least
don't want to use containers for the Bacularis API. I recommend installing
Bacularis api + web on bare metal in that case.

There is not a container featuring a Bacularis web instance with a
Bacularis API instance but NO bacula components. I don't know why this is
the case. The various containers that do exist support a number of
different circumstances where Bacularis is being used to manage a
distributed, modular bacula system. There isn't a single container that
only contains the functionality and packages to support Bacularis
management of an existing bare metal bacula instance.


Robert Gerber
402-237-8692
r...@craeon.net

On Tue, Apr 9, 2024, 4:06 PM Thing  wrote:

> Hi,
>
> What am I missing here to connect my bacularis-web container to the
> bacula-director pls?
>
>
> https://imgur.com/a/No8S74f
> ___
> 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] Bacularis in a container

2024-04-09 Thread Thing
Hi,

What am I missing here to connect my bacularis-web container to the
bacula-director pls?


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


Re: [Bacula-users] Install.sh error trying to install manually Bacularis

2024-04-09 Thread Rob Gerber
What happens when you click 'update slots' on the volumes page, and tell it
to update slots 1-24? Idk if this is relevant, but perhaps it is. Should
update bacula's knowledge of what is in the library, as per mtx. The output
once you click that button and tell it to update slots 1-24 should show
that it knew about every tape's position in various slots in the library.
If it says anything about updating a record to reflect a tape being in a
certain slot, then its knowledge was incorrect and has been corrected.

Robert Gerber
402-237-8692
r...@craeon.net

On Tue, Apr 9, 2024, 1:14 PM Neil Balchin  wrote:

> Ok Great,  that solves that problem
>
> I’m almost there
>
> I’m using a Dell TL2000 Tape library and a HH LTO7 drive
>
> I’ve added these to my bacula-sd ( configs pasted below). Also added the
> Autochanger and Drives to the API device list
>
> From the API gui. It’s clearly running the slots and status commands
> properly. Because it shows the 19 tapes with barcodes ,  however when I try
> to label these tapes from the volumes page it reports Zero slots
>
> Autochanger {
>
>   Name = "TL2000"
>
>   Device = "HH-LTO7"
>
>   ChangerDevice = "/dev/pass1"
>
>   ChangerCommand = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
>
> }
>
>
> Device {
>
>   Name = "HH-LTO7"
>
>   MediaType = "LTO-7"
>
>   ArchiveDevice = "/dev/sa0"
>
>   HardwareEndOfMedium = no
>
>   BackwardSpaceRecord = no
>
>   BsfAtEom = yes
>
>   TwoEof = yes
>
>   FastForwardSpaceFile = yes
>
>   RemovableMedia = yes
>
>   RandomAccess = no
>
>   AutomaticMount = yes
>
>   AlwaysOpen = yes
>
>   Autochanger = yes
>
>   ControlDevice = "/dev/pass1"
>
>   AlertCommand = "/usr/local/share/bacula/tapealert %l"
>
> }
>
>
> I can run mt and mtx commands freely from the command line as both the
> bacula user and www user so I think my /dev/ permissions are ok
>
>
>
>
>
>
> On 9 Apr 2024, at 09:39, Marcin Haba  wrote:
>
> Hello Neil,
>
> Great to hear that you were able to set up the Bacularis instance.
>
> This error that you see is because in the php.ini file on FreeBSD by
> default is error reporting set to display all errors. To fix this error you
> need to edit php.ini file:
>
> /usr/local/etc/php.ini
>
> and change error reporting line from this:
>
> error_reporting = E_ALL
>
> into this one:
>
> error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
>
> At the end you need to restart PHP.
>
> Best regards,
> Marcin Haba (gani)
>
> On Tue, 9 Apr 2024 at 15:22, Neil Balchin  wrote:
>
>> Thanks so much,
>>
>>
>> I got a little further along my path
>>
>> The Bacularis web guide is up and running
>>
>> I’ve configured my web server user (www) to have appropriate file
>> permissions for the bacula config files and directories and added the sudo
>> permissions for the necessary binaries
>>
>> I think I’m missing something in my server setup because
>>
>> I get this error when I try to config anything:
>>
>>
>>
>> Error 1000 - Internal error. [Unknown Error] substr(): Passing null to
>> parameter #1 ($string) of type string is deprecated (@line 232 in file
>> /usr/local/www/bacularis/protected/vendor/pradosoft/prado/framework/Data/Common/Pgsql/TPgsqlMetaData.php).
>>
>>
>>
>> On 8 Apr 2024, at 23:35, Marcin Haba  wrote:
>>
>> Hello Neil,
>>
>> I have checked installing Bacularis on FreeBSD and I have one more note.
>>
>> By default in Apache is used PHP as Apache module. If you want to use it
>> this way, it is fine. Nothing else to do. If you will need to use PHP
>> through PHP-FPM, then you need to do a few changes in your httpd.conf to
>> disable the Apache PHP module and enable PHP-FPM.
>>
>> First, you need to disable/comment the MPM Prefork module and libphp:
>>
>> #LoadModule mpm_prefork_module libexec/apache24/mod_mpm_prefork.so
>> #LoadModule php_module libexec/apache24/libphp.so
>>
>> and enable/uncomment these modules:
>>
>> LoadModule mpm_event_module libexec/apache24/mod_mpm_event.so
>> LoadModule proxy_module libexec/apache24/mod_proxy.so
>> LoadModule proxy_fcgi_module libexec/apache24/mod_proxy_fcgi.so
>>
>> Then you need to add these lines to the same httpd.conf:
>>
>> 
>> SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
>> 
>> SetHandler  "proxy:unix:/tmp/php-fpm.sock|fcgi://localhost/"
>> 
>> 
>>
>> At the end in /usr/local/etc/php-fpm.d/www.conf you need to set
>> permissions for PHP-FPM unix socket:
>>
>> listen.owner = www
>> listen.group = www
>> listen.mode = 0660
>>
>> and restart the services:
>>
>> # service php-fpm restart
>> # service apache24 restart
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Tue, 9 Apr 2024 at 04:54, Marcin Haba  wrote:
>>
>>> Hello Neil,
>>>
>>> Thanks for your feedback with installing Bacularis on FreeBSD.
>>>
>>> It looks that in your environment this script uses the default FreeBSD
>>> shell /bin/sh (or any other) that does not support arrays.
>>>
>>> This is the Bash script so to use it you need to install Bash:
>>>
>>> # pkg install 

Re: [Bacula-users] Install.sh error trying to install manually Bacularis

2024-04-09 Thread Marcin Haba
Hello Neil,

>From your description it looks that Bacularis works with the mtx-changer
script well.

For labeling volumes, as it is action realized by Bacula SD, so I think, it
might be good to check if the mtx-changer script is capable of being
correctly executed by the bacula user.

For test I would propose to try this command:

# sudo -u bacula /etc/bacula/scripts/mtx-changer /dev/pass1 slots

and also a good test could be trying to label a sample volume using
bconsole.

Best regards,
Marcin Haba (gani)

On Tue, 9 Apr 2024 at 20:30, Rob Gerber  wrote:

> What happens when you click 'update slots' on the volumes page, and tell
> it to update slots 1-24? Idk if this is relevant, but perhaps it is. Should
> update bacula's knowledge of what is in the library, as per mtx. The output
> once you click that button and tell it to update slots 1-24 should show
> that it knew about every tape's position in various slots in the library.
> If it says anything about updating a record to reflect a tape being in a
> certain slot, then its knowledge was incorrect and has been corrected.
>
> Robert Gerber
> 402-237-8692
> r...@craeon.net
>
> On Tue, Apr 9, 2024, 1:14 PM Neil Balchin  wrote:
>
>> Ok Great,  that solves that problem
>>
>> I’m almost there
>>
>> I’m using a Dell TL2000 Tape library and a HH LTO7 drive
>>
>> I’ve added these to my bacula-sd ( configs pasted below). Also added the
>> Autochanger and Drives to the API device list
>>
>> From the API gui. It’s clearly running the slots and status commands
>> properly. Because it shows the 19 tapes with barcodes ,  however when I try
>> to label these tapes from the volumes page it reports Zero slots
>>
>> Autochanger {
>>
>>   Name = "TL2000"
>>
>>   Device = "HH-LTO7"
>>
>>   ChangerDevice = "/dev/pass1"
>>
>>   ChangerCommand = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
>>
>> }
>>
>>
>> Device {
>>
>>   Name = "HH-LTO7"
>>
>>   MediaType = "LTO-7"
>>
>>   ArchiveDevice = "/dev/sa0"
>>
>>   HardwareEndOfMedium = no
>>
>>   BackwardSpaceRecord = no
>>
>>   BsfAtEom = yes
>>
>>   TwoEof = yes
>>
>>   FastForwardSpaceFile = yes
>>
>>   RemovableMedia = yes
>>
>>   RandomAccess = no
>>
>>   AutomaticMount = yes
>>
>>   AlwaysOpen = yes
>>
>>   Autochanger = yes
>>
>>   ControlDevice = "/dev/pass1"
>>
>>   AlertCommand = "/usr/local/share/bacula/tapealert %l"
>>
>> }
>>
>>
>> I can run mt and mtx commands freely from the command line as both the
>> bacula user and www user so I think my /dev/ permissions are ok
>>
>>
>>
>>
>>
>>
>> On 9 Apr 2024, at 09:39, Marcin Haba  wrote:
>>
>> Hello Neil,
>>
>> Great to hear that you were able to set up the Bacularis instance.
>>
>> This error that you see is because in the php.ini file on FreeBSD by
>> default is error reporting set to display all errors. To fix this error you
>> need to edit php.ini file:
>>
>> /usr/local/etc/php.ini
>>
>> and change error reporting line from this:
>>
>> error_reporting = E_ALL
>>
>> into this one:
>>
>> error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
>>
>> At the end you need to restart PHP.
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Tue, 9 Apr 2024 at 15:22, Neil Balchin  wrote:
>>
>>> Thanks so much,
>>>
>>>
>>> I got a little further along my path
>>>
>>> The Bacularis web guide is up and running
>>>
>>> I’ve configured my web server user (www) to have appropriate file
>>> permissions for the bacula config files and directories and added the sudo
>>> permissions for the necessary binaries
>>>
>>> I think I’m missing something in my server setup because
>>>
>>> I get this error when I try to config anything:
>>>
>>>
>>>
>>> Error 1000 - Internal error. [Unknown Error] substr(): Passing null to
>>> parameter #1 ($string) of type string is deprecated (@line 232 in file
>>> /usr/local/www/bacularis/protected/vendor/pradosoft/prado/framework/Data/Common/Pgsql/TPgsqlMetaData.php).
>>>
>>>
>>>
>>> On 8 Apr 2024, at 23:35, Marcin Haba  wrote:
>>>
>>> Hello Neil,
>>>
>>> I have checked installing Bacularis on FreeBSD and I have one more note.
>>>
>>> By default in Apache is used PHP as Apache module. If you want to use it
>>> this way, it is fine. Nothing else to do. If you will need to use PHP
>>> through PHP-FPM, then you need to do a few changes in your httpd.conf to
>>> disable the Apache PHP module and enable PHP-FPM.
>>>
>>> First, you need to disable/comment the MPM Prefork module and libphp:
>>>
>>> #LoadModule mpm_prefork_module libexec/apache24/mod_mpm_prefork.so
>>> #LoadModule php_module libexec/apache24/libphp.so
>>>
>>> and enable/uncomment these modules:
>>>
>>> LoadModule mpm_event_module libexec/apache24/mod_mpm_event.so
>>> LoadModule proxy_module libexec/apache24/mod_proxy.so
>>> LoadModule proxy_fcgi_module libexec/apache24/mod_proxy_fcgi.so
>>>
>>> Then you need to add these lines to the same httpd.conf:
>>>
>>> 
>>> SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
>>> 
>>> SetHandler  

Re: [Bacula-users] Install.sh error trying to install manually Bacularis

2024-04-09 Thread Neil Balchin
Ok Great,  that solves that problem

I’m almost there

I’m using a Dell TL2000 Tape library and a HH LTO7 drive 

I’ve added these to my bacula-sd ( configs pasted below). Also added the 
Autochanger and Drives to the API device list

From the API gui. It’s clearly running the slots and status commands properly. 
Because it shows the 19 tapes with barcodes ,  however when I try to label 
these tapes from the volumes page it reports Zero slots

Autochanger {
  Name = "TL2000"
  Device = "HH-LTO7"
  ChangerDevice = "/dev/pass1"
  ChangerCommand = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
}

Device {
  Name = "HH-LTO7"
  MediaType = "LTO-7"
  ArchiveDevice = "/dev/sa0"
  HardwareEndOfMedium = no
  BackwardSpaceRecord = no
  BsfAtEom = yes
  TwoEof = yes
  FastForwardSpaceFile = yes
  RemovableMedia = yes
  RandomAccess = no  
  AutomaticMount = yes
  AlwaysOpen = yes
  Autochanger = yes
  ControlDevice = "/dev/pass1"
  AlertCommand = "/usr/local/share/bacula/tapealert %l"
}

I can run mt and mtx commands freely from the command line as both the bacula 
user and www user so I think my /dev/ permissions are ok





> On 9 Apr 2024, at 09:39, Marcin Haba  wrote:
> 
> Hello Neil,
> 
> Great to hear that you were able to set up the Bacularis instance.
> 
> This error that you see is because in the php.ini file on FreeBSD by default 
> is error reporting set to display all errors. To fix this error you need to 
> edit php.ini file:
> 
> /usr/local/etc/php.ini
> 
> and change error reporting line from this:
> 
> error_reporting = E_ALL
> 
> into this one:
> 
> error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
> 
> At the end you need to restart PHP.
> 
> Best regards,
> Marcin Haba (gani)
> 
> On Tue, 9 Apr 2024 at 15:22, Neil Balchin  > wrote:
>> Thanks so much,  
>> 
>> 
>> I got a little further along my path
>> 
>> The Bacularis web guide is up and running
>> 
>> I’ve configured my web server user (www) to have appropriate file 
>> permissions for the bacula config files and directories and added the sudo 
>> permissions for the necessary binaries
>> 
>> I think I’m missing something in my server setup because
>> 
>> I get this error when I try to config anything:
>> 
>> 
>> 
>> Error 1000 - Internal error. [Unknown Error] substr(): Passing null to 
>> parameter #1 ($string) of type string is deprecated (@line 232 in file 
>> /usr/local/www/bacularis/protected/vendor/pradosoft/prado/framework/Data/Common/Pgsql/TPgsqlMetaData.php).
>> 
>> 
>> 
>>> On 8 Apr 2024, at 23:35, Marcin Haba >> > wrote:
>>> 
>>> Hello Neil,
>>> 
>>> I have checked installing Bacularis on FreeBSD and I have one more note.
>>> 
>>> By default in Apache is used PHP as Apache module. If you want to use it 
>>> this way, it is fine. Nothing else to do. If you will need to use PHP 
>>> through PHP-FPM, then you need to do a few changes in your httpd.conf to 
>>> disable the Apache PHP module and enable PHP-FPM.
>>> 
>>> First, you need to disable/comment the MPM Prefork module and libphp:
>>> 
>>> #LoadModule mpm_prefork_module libexec/apache24/mod_mpm_prefork.so
>>> #LoadModule php_module libexec/apache24/libphp.so
>>> 
>>> and enable/uncomment these modules:
>>> 
>>> LoadModule mpm_event_module libexec/apache24/mod_mpm_event.so
>>> LoadModule proxy_module libexec/apache24/mod_proxy.so
>>> LoadModule proxy_fcgi_module libexec/apache24/mod_proxy_fcgi.so
>>> 
>>> Then you need to add these lines to the same httpd.conf:
>>> 
>>> 
>>> SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
>>> 
>>> SetHandler  "proxy:unix:/tmp/php-fpm.sock|fcgi://localhost/"
>>> 
>>> 
>>> 
>>> At the end in /usr/local/etc/php-fpm.d/www.conf you need to set permissions 
>>> for PHP-FPM unix socket:
>>> 
>>> listen.owner = www
>>> listen.group = www
>>> listen.mode = 0660
>>> 
>>> and restart the services:
>>> 
>>> # service php-fpm restart
>>> # service apache24 restart
>>> 
>>> Best regards,
>>> Marcin Haba (gani)
>>> 
>>> On Tue, 9 Apr 2024 at 04:54, Marcin Haba >> > wrote:
 Hello Neil,
 
 Thanks for your feedback with installing Bacularis on FreeBSD.
 
 It looks that in your environment this script uses the default FreeBSD 
 shell /bin/sh (or any other) that does not support arrays.
 
 This is the Bash script so to use it you need to install Bash:
 
 # pkg install bash
 
 After that you need to update shebang in the install.sh script to:
 
 #!/usr/local/bin/bash
 
 Once it is done, it should start working well. In case problems, please 
 let us know.
 
 Good luck!
 
 Best regards,
 Marcin Haba (gani)
 
 On Tue, 9 Apr 2024 at 02:38, Neil Balchin >>> > wrote:
> I’ve installed Bacula in a Freebsd Jail and all is well,  Also installed 
> Apache24, and the requisite php mods to 

Re: [Bacula-users] Backup in disk AND tape

2024-04-09 Thread Bill Arlofski via Bacula-users

On 4/9/24 6:53 AM, Chris Wilkinson wrote:
Regarding the suggestion to put a Runafter block in the job to run the copy job at the end, that doesn't seem to be allowed. 
Run job=xx commands are not permitted in a Runscript as I just found out. It gives a not allowed command error.


Perhaps there is another way to accomplish this?



Hello Chris,

Yes, convert that run command to a simple script like:

/opt/bacula/script/run_catalog-copy.sh:
8<
#!/bin/bash

# Pipe the run command to bconsole
# 
echo "run yes job=catalog-copy" | bconsole
8<

Now, that is the most basic it needs to be, but you can add other things to it. ie: error checking, command line options, 
etc. Although in your use case it does not seem necessary to complicate things. :)



Then, just replace the
8<
Console = "run job=catalog-copy yes"
8<

...line in your RunScript with:

8<
`Command = /opt/bacula/script/ru
n_catalog-copy.sh`
8<

And you should be OK.

Make sure your `catalog-copy` job has the same Priority (11) as your Catalog job, otherwise you will end up in a dead-lock 
where the Copy job waits for the Catalog job to finish, and the Copy job is waiting for the catalog-copy job (which will 
never start) to finish.



Hope this helps,
Bill

--
Bill Arlofski
w...@protonmail.com



signature.asc
Description: OpenPGP digital signature
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Install.sh error trying to install manually Bacularis

2024-04-09 Thread Marcin Haba
Hello Neil,

Great to hear that you were able to set up the Bacularis instance.

This error that you see is because in the php.ini file on FreeBSD by
default is error reporting set to display all errors. To fix this error you
need to edit php.ini file:

/usr/local/etc/php.ini

and change error reporting line from this:

error_reporting = E_ALL

into this one:

error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT

At the end you need to restart PHP.

Best regards,
Marcin Haba (gani)

On Tue, 9 Apr 2024 at 15:22, Neil Balchin  wrote:

> Thanks so much,
>
>
> I got a little further along my path
>
> The Bacularis web guide is up and running
>
> I’ve configured my web server user (www) to have appropriate file
> permissions for the bacula config files and directories and added the sudo
> permissions for the necessary binaries
>
> I think I’m missing something in my server setup because
>
> I get this error when I try to config anything:
>
>
>
> Error 1000 - Internal error. [Unknown Error] substr(): Passing null to
> parameter #1 ($string) of type string is deprecated (@line 232 in file
> /usr/local/www/bacularis/protected/vendor/pradosoft/prado/framework/Data/Common/Pgsql/TPgsqlMetaData.php).
>
>
>
> On 8 Apr 2024, at 23:35, Marcin Haba  wrote:
>
> Hello Neil,
>
> I have checked installing Bacularis on FreeBSD and I have one more note.
>
> By default in Apache is used PHP as Apache module. If you want to use it
> this way, it is fine. Nothing else to do. If you will need to use PHP
> through PHP-FPM, then you need to do a few changes in your httpd.conf to
> disable the Apache PHP module and enable PHP-FPM.
>
> First, you need to disable/comment the MPM Prefork module and libphp:
>
> #LoadModule mpm_prefork_module libexec/apache24/mod_mpm_prefork.so
> #LoadModule php_module libexec/apache24/libphp.so
>
> and enable/uncomment these modules:
>
> LoadModule mpm_event_module libexec/apache24/mod_mpm_event.so
> LoadModule proxy_module libexec/apache24/mod_proxy.so
> LoadModule proxy_fcgi_module libexec/apache24/mod_proxy_fcgi.so
>
> Then you need to add these lines to the same httpd.conf:
>
> 
> SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
> 
> SetHandler  "proxy:unix:/tmp/php-fpm.sock|fcgi://localhost/"
> 
> 
>
> At the end in /usr/local/etc/php-fpm.d/www.conf you need to set
> permissions for PHP-FPM unix socket:
>
> listen.owner = www
> listen.group = www
> listen.mode = 0660
>
> and restart the services:
>
> # service php-fpm restart
> # service apache24 restart
>
> Best regards,
> Marcin Haba (gani)
>
> On Tue, 9 Apr 2024 at 04:54, Marcin Haba  wrote:
>
>> Hello Neil,
>>
>> Thanks for your feedback with installing Bacularis on FreeBSD.
>>
>> It looks that in your environment this script uses the default FreeBSD
>> shell /bin/sh (or any other) that does not support arrays.
>>
>> This is the Bash script so to use it you need to install Bash:
>>
>> # pkg install bash
>>
>> After that you need to update shebang in the install.sh script to:
>>
>> #!/usr/local/bin/bash
>>
>> Once it is done, it should start working well. In case problems, please
>> let us know.
>>
>> Good luck!
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Tue, 9 Apr 2024 at 02:38, Neil Balchin  wrote:
>>
>>> I’ve installed Bacula in a Freebsd Jail and all is well,  Also installed
>>> Apache24, and the requisite php mods to run bacularis.
>>>
>>> I’ve followed the manual instructions to the letter but when I get to
>>> the install.sh step I get this error output :
>>>
>>> root@Bacula1:/usr/local/www/bacularis/protected/tools # sh ./install.sh
>>> -p /tmp/php-fpm.sock
>>>
>>> +===+
>>> |  Welcome in the Bacularis install script  |
>>> +---+
>>> |  This script will help you to adjust privileges   |
>>> |  for Bacularis files and it will prepare  |
>>> |  configuration files for popular web servers. |
>>> +---+
>>>
>>>
>>> ./install.sh: 34: Syntax error: word unexpected (expecting ")")
>>> root@Bacula1:/usr/local/www/bacularis/protected/tools #
>>>
>>>
>>>
>>> ___
>>> Bacula-users mailing list
>>> Bacula-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>>
>>
>>
>> --
>>
>> "Greater love hath no man than this, that a man lay down his life for his 
>> friends." Jesus Christ
>>
>> "Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za 
>> przyjaciół swoich." Jezus Chrystus
>>
>>
>
> --
>
> "Greater love hath no man than this, that a man lay down his life for his 
> friends." Jesus Christ
>
> "Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za 
> przyjaciół swoich." Jezus Chrystus
>
>
>

-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt 

Re: [Bacula-users] Backup in disk AND tape

2024-04-09 Thread Chris Wilkinson
Regarding the suggestion to put a Runafter block in the job to run the copy
job at the end, that doesn't seem to be allowed. Run job=xx commands are
not permitted in a Runscript as I just found out. It gives a not allowed
command error.

Perhaps there is another way to accomplish this?

-Chris-

On Wed, 3 Apr 2024, 00:00 Bill Arlofski via Bacula-users, <
bacula-users@lists.sourceforge.net> wrote:

> On 4/2/24 12:01 PM, Roberto Greiner wrote:
> > Hi,
> >
> > I've installed Bacula recently in a server with a 7TB RAID5 storage, and
> > a LTO-6 tape unit.
> >
> > I have configured 9 remote servers (most Linux, one Windows) to have the
> > backup made in this server in the disk storage, and I'm finish to
> > understand how to do the tape backup. Now, I have a question about
> > making the backup into both destinations.
> >
> > I have the following setup for JobsDef:
> >
> > JobDefs {
> > Name = "DefaultJob"
> > Type = Backup
> > Level = Incremental
> > Client = bacula2-fd
> > FileSet = "Full Set"
> > Schedule = "WeeklyCycle"
> > Storage = FileAligned
> > Messages = Standard
> > Pool = File
> > SpoolAttributes = yes
> > Priority = 10
> > Write Bootstrap = "/opt/bacula/working/%c.bsr"
> > }
> >
> > Then I added a server to have the backup, let's say (it's a linux,
> > despite the name):
> >
> > Job {
> > Name = "AD"
> > JobDefs = "DefaultJob"
> > Client = ad-fd
> > FileSet = "etc"
> > }
> >
> > This will, obviously go to the dedup-disk storage. The question is, how
> > should I add the tape setup? Is there a way to add a couple of lines to
> > the job definition above so that the backup goes to both systems? Should
> > I create a separate job definition for the tape backup? Some other way I
> > didn't consider?
> >
> > Thanks,
> >
> > Roberto
> >
> >
> > PS: The storage definitions for the disk and tape destinations:
> >
> > Storage {
> > Name = FileAligned
> > Address = bacula2
> > SDPort = 9103
> > Password = ""
> > Device = Aligned-Disk
> > Media Type = File1
> > }
> >
> > Storage {
> > Name = Fita
> > Address = bacula2
> > SDPort = 9103
> > Password = ""
> > Device = Ultrium
> > Media Type = LTO
> > }
>
> Hello Marcos,
>
> With Bacula, there are almost always 10+ different ways to accomplish
> things, and/or to even think about them.
>
> For example, you can override the Pool, Level, and Storage in a Schedule...
>
> So, with this in mind, you might set your job to run Incs each weekday to
> disk, and then set the Fulls to run to tape on the
> weekend. (just one idea)
>
> Another option is to use Copy jobs. With Copy jobs, you can run your Incs
> and Fulls to disk, then you can run a Copy job to
> copy your Incs, Fulls, or both to tape during normal working hours because
> Copy jobs do not make use of any Clients, so
> business productivity will not be affected on your server(s).
>
> In your case, I would probably go with a Copy job. This way, you have your
> backups on disk for fast restores when needed, and
> you have the same data copied to new jobids onto tape - maybe with longer
> retention periods, for example.
>
> Also have a look at the `SelectionType = PoolUncopiedJobs` feature for
> Copy jobs. This is a nice, handy "shortcut" to make
> sure that each of your jobs in some Pool is copied once, and only once to
> tape.
>
> In this case, you can have two Copy jobs configured, one looking at your
> Full disk pool and one looking at your Inc disk pool
> and copying jobs that have not been copied.
>
> OR, you can have one copy job running on a schedule where the Pool is
> overridden at two different times of the day to copy
> from the Full disk pool, and then also from the Inc disk pool.
>
> OR... (lol I said 10, so I am working towards that number, and I am
> getting close :) ... You can have your normal backup jobs
> include a `RunScript {RunsWhen = after}` section which triggers an
> immediate copy of the job to tape as soon as it is completed.
>
> So, I would start with a look at Copy jobs and see where that goes. :)
>
> Feel free to ask more questions once you have taken a look at Copy jobs.
>
>
> Hope this helps,
> Bill
>
> --
> Bill Arlofski
> w...@protonmail.com
>
> ___
> 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] Version of openssl supported (bacula with postgresql)

2024-04-09 Thread Eduardo Rothe via Bacula-users
 Hi Eric
Thank you for your reply !
I got it working, I had misconfigured the repository.In 
/etc/yum.repos.d/bacula.repo  file I had a reference to  el7  in the  baseurl 
variable.I changed   el7  to  el9   and now it works fine.
This was clearly a copy & paste issue, and not paying enough attention from my 
side, but your answer got me thinking: should I beware of using the Bacula 
repository  rpms/15.0.2/el9/x86_64  on another RHEL based distributions like 
Fedora ?
Eduardo



On Monday, 8 April 2024 at 13:59:29 CEST, Eric Bollengier 
 wrote:  
 Hello Eduardo,

I would not try to install Centos7 packages to a Fedora system, it's two
different things. In this case, you can take the Fedora version if it's
recent (it should), or compile it yourself, the recent OpenSSL should be
ok with some warnings about their constant need of breaking their API.

Hope it helps!

Best Regards,
Eric



On 4/8/24 09:57, Eduardo Rothe via Bacula-users wrote:

While installing bacula-postgresql in fedora39 (package downloaded from the 
bacula repositories) I am getting the following messages:

- nothing provides libcrypto.so.10()(64bit) needed by 
bacula-postgresql-15.0.2-24032211.el7.x86_64 from Bacula-Community- nothing 
provides libssl.so.10()(64bit) needed by 
bacula-postgresql-15.0.2-24032211.el7.x86_64 from Bacula-Community

I believe this is because bacula requires an older version of openssl. What is 
the latest version of openssl supported by bacula ? Can I infer openssl-1.0.* ?

A very nice beginning of week to all
Eduardo

bacula 15.0.2
postgresql 15.6
openssl 3.1.1fedora 39


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


Re: [Bacula-users] Error: cannot run a job from a RunScript

2024-04-09 Thread Martin Simmons
> On Tue, 9 Apr 2024 10:57:24 +0100, Chris Wilkinson said:
> 
> I tried to get a copy job to run after completion of the job using a
> Runscript. The Job is shown below. I can run this copy job OK from within
> bconsole/baculum but it fails when run from a Runscript.
> 
> I get an error "09-Apr 09:52 bsvr-dir JobId 0: Can't use run command in a
> runscript09-Apr 09:52 bsvr-dir JobId 0: run: is an invalid command."
> 
> Is it not permissible to use a run command within a Runscript block?

The run command is not allowed.  You can only use the commands documented
under RunScript in the manual.

__Martin


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


[Bacula-users] Error: cannot run a job from a RunScript

2024-04-09 Thread Chris Wilkinson
I tried to get a copy job to run after completion of the job using a
Runscript. The Job is shown below. I can run this copy job OK from within
bconsole/baculum but it fails when run from a Runscript.

I get an error "09-Apr 09:52 bsvr-dir JobId 0: Can't use run command in a
runscript09-Apr 09:52 bsvr-dir JobId 0: run: is an invalid command."

Is it not permissible to use a run command within a Runscript block?

Many thanks
Chris Wilkinson

Job {
  Name = "catalog"
  Description = "Catalog"
  Type = "Backup"
  Level = "Full"
  Messages = "Standard"
  Storage = "dns-325-sd"
  Pool = "catalog"
  FullBackupPool = "catalog"
  Client = "catalog-fd"
  Fileset = "Catalog"
  Schedule = "catalogDaily"
  WriteBootstrap = "/var/lib/bacula/%n.bsr"
  MaxFullInterval = 86400
  PruneJobs = yes
  PruneFiles = yes
  PruneVolumes = yes
  Enabled = yes
  SpoolAttributes = yes
  Runscript {
RunsOnClient = no
RunsWhen = "Before"
Command = "/etc/bacula/scripts/make_catalog_backup.pl MyCatalog"
  }
  Runscript {
RunsOnClient = no
RunsWhen = "After"
Command = "/etc/bacula/scripts/delete_catalog_backup"
  }
  Runscript {
RunsOnClient = no
RunsWhen = "After"
Console = "run job=catalog-copy yes"
  }
  Priority = 11
}
Job {
  Name = "catalog-copy"
  Description = "copy of catalog"
  Type = "Copy"
  Level = "Full"
  Messages = "Standard"
  Storage = "dns-325-sd"
  Pool = "catalog"
  NextPool = "catalog-copy"
  Client = "none"
  Fileset = "none"
  Schedule = "sched_none"
  SelectionPattern = "catalog"
  SelectionType = "PoolUncopiedJobs"
}
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula and german special chars "umlauts"

2024-04-09 Thread Stefan G. Weichinger

Am 09.04.24 um 08:38 schrieb Marcin Haba:

Hello Stefan,

Yes, filenames displayed in the restore process.

Also it might be good to check how the names are stored in the database 
in the File table if everything is fine there.


will try that in an hour or so.

currently editing Jobs and doing initial Full runs to test them

Let me ask something not related to umlauts here:

In Amanda I had "disk list entries" defined, one per Samba-share to 
backup ... and one for each virtual machine dump located on a samba 
share: Veeam dumps to a samba share, I let amanda and now bacula read 
that and push to tape.


The idea there is to have many DLEs (=disk list entries) to make use of 
the scheduler there: it creates a dynamic schedule every run and 
combines fulls and incrementals of the DLEs to meet the overall goals 
("create one full backup of this DLE within N days").


I still tend to define more Jobs in Bacula and not do huge Jobs 
containing hundreds of Gigs and multiple VMs in one Job.


That leads to more manual editing ;-) but OK; that's done now at 
migration time.


Is it recommended to use more Jobs? I assume it's quicker and easier to 
handle, for example at restore time etc


Any problems I create by doing so?

Thanks for any pointers here



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


Re: [Bacula-users] Bacula and german special chars "umlauts"

2024-04-09 Thread Marcin Haba
Hello Stefan,

Yes, filenames displayed in the restore process.

Also it might be good to check how the names are stored in the database in
the File table if everything is fine there.

Best regards,
Marcin Haba (gani)

On Tue, 9 Apr 2024 at 08:20, Stefan G. Weichinger  wrote:

> Am 09.04.24 um 08:04 schrieb Marcin Haba:
> > Hello Stefan,
> >
> > I agree with Anders' advice to check Bacula first. Bacula stores file
> > names in the database as they are, without interpreting them, no
> > encoding conversion. It means that something is wrong on the input when
> > names are stored, it will also be wrong on the output when names are get
> > from the database.
>
> And would do I check in Bacula?
>
> The display of filenames in the Restore-process?
>
>

-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula and german special chars "umlauts"

2024-04-09 Thread Stefan G. Weichinger

Am 09.04.24 um 08:04 schrieb Marcin Haba:

Hello Stefan,

I agree with Anders' advice to check Bacula first. Bacula stores file 
names in the database as they are, without interpreting them, no 
encoding conversion. It means that something is wrong on the input when 
names are stored, it will also be wrong on the output when names are get 
from the database.


And would do I check in Bacula?

The display of filenames in the Restore-process?



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


Re: [Bacula-users] Bacula and german special chars "umlauts"

2024-04-09 Thread Marcin Haba
Hello Stefan,

I agree with Anders' advice to check Bacula first. Bacula stores file names
in the database as they are, without interpreting them, no encoding
conversion. It means that something is wrong on the input when names are
stored, it will also be wrong on the output when names are get from the
database.

Best regards,
Marcin Haba (gani)

On Tue, 9 Apr 2024 at 07:15, Anders Gustafsson 
wrote:

> Not using bacularis, but accented characters, used in all languages,
> except English and some odd language
> spoken by about 1000 people on an island in the Pacific, work for us. Try
> restoring from bconsole to rule out
> that it is a bacula issue and not just a bacularis one.
>
> --
> Med vänlig hälsning
>
> Anders Gustafsson, ingenjör
> anders.gustafs...@pedago.fi  |  Support +358 18 12060  |  Direkt +358 9
> 315 45 121  |  Mobil +358 40506 7099
>
> Pedago interaktiv ab, Nygatan 7 B , AX-22100 MARIEHAMN, ÅLAND, FINLAND
>
>
>
> >>> "Stefan G. Weichinger"  2024-04-09 08:06 >>>
>
> I am in the process of installing and configuring Bacula-13.0.4 and
> Bacularis-2.7.0 on a Debian-12.5 server.
>
> (moving over from using Amanda, I might ask a few questions around that
> soon)
>
> What I noticed: when I access "Restore" in Bacularis, there are files
> displayed with strange chars instead of the correct german special chars
> or "Umlauts".
>
> That's something I would like to get correct from the start.
>
> I installed from the deb-packages and use postgresql as database.
>
> Didn't notice any specific choice of charsets or so.
>
> Does that maybe come from the language I chose for Bacularis?
>
> Right now I have it in english ...
>
> pls advise, thanks, Stefan
>
>
> ___
> 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
>


-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula and german special chars "umlauts"

2024-04-08 Thread Anders Gustafsson
Not using bacularis, but accented characters, used in all languages, except 
English and some odd language
spoken by about 1000 people on an island in the Pacific, work for us. Try 
restoring from bconsole to rule out
that it is a bacula issue and not just a bacularis one.

-- 
Med vänlig hälsning

Anders Gustafsson, ingenjör
anders.gustafs...@pedago.fi  |  Support +358 18 12060  |  Direkt +358 9 315 45 
121  |  Mobil +358 40506 7099

Pedago interaktiv ab, Nygatan 7 B , AX-22100 MARIEHAMN, ÅLAND, FINLAND



>>> "Stefan G. Weichinger"  2024-04-09 08:06 >>>

I am in the process of installing and configuring Bacula-13.0.4 and 
Bacularis-2.7.0 on a Debian-12.5 server.

(moving over from using Amanda, I might ask a few questions around that 
soon)

What I noticed: when I access "Restore" in Bacularis, there are files 
displayed with strange chars instead of the correct german special chars 
or "Umlauts".

That's something I would like to get correct from the start.

I installed from the deb-packages and use postgresql as database.

Didn't notice any specific choice of charsets or so.

Does that maybe come from the language I chose for Bacularis?

Right now I have it in english ...

pls advise, thanks, Stefan


___
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] Bacula and german special chars "umlauts"

2024-04-08 Thread Stefan G. Weichinger



I am in the process of installing and configuring Bacula-13.0.4 and 
Bacularis-2.7.0 on a Debian-12.5 server.


(moving over from using Amanda, I might ask a few questions around that 
soon)


What I noticed: when I access "Restore" in Bacularis, there are files 
displayed with strange chars instead of the correct german special chars 
or "Umlauts".


That's something I would like to get correct from the start.

I installed from the deb-packages and use postgresql as database.

Didn't notice any specific choice of charsets or so.

Does that maybe come from the language I chose for Bacularis?

Right now I have it in english ...

pls advise, thanks, Stefan


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


Re: [Bacula-users] connecting bacularis to an existing bacula setup

2024-04-08 Thread Marcin Haba
Hello Steven,

Yes, web servers by default listen on port 80 but it is possible to change.
Bacularis uses only one port 9097. I mean that after installing Bacularis
with the web server, you can just disable listening on port 80 or change it
to any other port number.

Best regards,
Marcin Haba (gani)

On Tue, 9 Apr 2024 at 06:29, steven  wrote:

> Hi,
>
> It will not run on bare metal as it tries to run on port80, but I have
> apache containers on port 80 and 443 already which was why I went for a
> docker container to isolate bacularis that runs on 9097 OK but the wizard
> lacks connectivity to bacula.
> regards
>
> Steven
>
> On 9/04/2024 2:16 pm, Marcin Haba wrote:
>
> Hello Steven,
>
> Bacularis API and Bacularis Web are one application called just Bacularis.
> So, as I see you already have it.
>
> In the installation wizard there is possible to choose if you want to
> configure API or Web or both (typical case). After installation you need
> just to go to:
>
> http://yourhost:9097
>
> Best regards,
> Marcin Haba (gani)
>
> On Tue, 9 Apr 2024 at 01:15, Thing  wrote:
>
>> Google it seems does not like my email server...lets try again, sorry if
>> we get a duplicate.
>>
>> Hi,
>>
>> I dont see a bacualris API to install?
>>
>> root@bacula:~# dpkg -l bacula*
>> Desired=Unknown/Install/Remove/Purge/Hold
>> |
>> Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
>> |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
>> ||/ Name VersionArchitecture Description
>>
>> +++--==--=
>> ii  bacula-bscan 9.6.7-7amd64network backup
>> service - bscan tool
>> ii  bacula-client9.6.7-7all  network backup
>> service - client metapackage
>> ii  bacula-common9.6.7-7amd64network backup
>> service - common support files
>> ii  bacula-common-mysql  9.6.7-7amd64network backup
>> service - MySQL common files
>> un  bacula-common-pgsql  (no description
>> available)
>> un  bacula-common-sqlite3(no description
>> available)
>> ii  bacula-console   9.6.7-7amd64network backup
>> service - text console
>> ii  bacula-director  9.6.7-7amd64network backup
>> service - Director daemon
>> un  bacula-director-database (no description
>> available)
>> ii  bacula-director-mysql9.6.7-7all  network backup
>> service - MySQL storage for Director
>> un  bacula-director-pgsql(no description
>> available)
>> un  bacula-director-sqlite3  (no description
>> available)
>> un  bacula-doc   (no description
>> available)
>> ii  bacula-fd9.6.7-7amd64network backup
>> service - file daemon
>> ii  bacula-sd9.6.7-7amd64network backup
>> service - storage daemon
>> un  bacula-sd-mysql  (no description
>> available)
>> un  bacula-sd-pgsql  (no description
>> available)
>> un  bacula-sd-sqlite3(no description
>> available)
>> ii  bacula-server9.6.7-7all  network backup
>> service - server metapackage
>> ii  bacularis2.7.0~bullseye all  The Bacularis
>> WebGUI enables administration and managing Bacula jobs.
>> ii  bacularis-apache22.7.0~bullseye all  This package
>> provides the Apache configuration for Bacularis.
>> un  bacularis-lighttpd   (no description
>> available)
>> un  bacularis-nginx  (no description
>> available)
>> root@bacula:~#
>>
>>
>> I am finding the naming convention /description difficult to understand.
>> So, I have a bacularis web container running.  It appears I need something
>> between the container and the director? but I cannot see what.
>>
>> regards
>>
>> Steven
>>
>> On Tue, 9 Apr 2024 at 05:17, Marcin Haba  wrote:
>>
>>> Hello Steven,
>>>
>>> Of course, you don't need to uninstall anything. Bacula daemons stay
>>> where they are. Don't worry, nothing changes here.
>>>
>>> In that container image description is a sentence:
>>>
>>> "It can be used to connect external Bacularis API server(s) in
>>> containers or outside them."
>>>
>>> This "outside them" means that you can install Bacularis API in any way
>>> that you want, Docker image is only one of the ways.
>>>
>>> Reading your description for that, what you would like to have, the
>>> easiest is to install only one Bacularis using binary packages on the
>>> Bacula Director host. It contains the Bacularis Web and Bacularis API
>>> together, so you don't need to split it or install anything else, just this
>>> one Bacularis instance. The installation wizard, that you will see 

Re: [Bacula-users] connecting bacularis to an existing bacula setup

2024-04-08 Thread steven

Hi,

It will not run on bare metal as it tries to run on port80, but I have 
apache containers on port 80 and 443 already which was why I went for a 
docker container to isolate bacularis that runs on 9097 OK but the 
wizard lacks connectivity to bacula.


regards

Steven

On 9/04/2024 2:16 pm, Marcin Haba wrote:

Hello Steven,

Bacularis API and Bacularis Web are one application called just 
Bacularis. So, as I see you already have it.


In the installation wizard there is possible to choose if you want to 
configure API or Web or both (typical case). After installation you 
need just to go to:


http://yourhost:9097

Best regards,
Marcin Haba (gani)

On Tue, 9 Apr 2024 at 01:15, Thing  wrote:

Google it seems does not like my email server...lets try again,
sorry if we get a duplicate.

Hi,

I dont see a bacualris API to install?

root@bacula:~# dpkg -l bacula*
Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name VersionArchitecture Description

+++--==--=
ii  bacula-bscan 9.6.7-7    amd64    network
backup service - bscan tool
ii  bacula-client    9.6.7-7    all  network
backup service - client metapackage
ii  bacula-common    9.6.7-7    amd64    network
backup service - common support files
ii  bacula-common-mysql  9.6.7-7    amd64    network
backup service - MySQL common files
un  bacula-common-pgsql      (no
description available)
un  bacula-common-sqlite3        (no
description available)
ii  bacula-console   9.6.7-7    amd64    network
backup service - text console
ii  bacula-director  9.6.7-7    amd64    network
backup service - Director daemon
un  bacula-director-database     (no
description available)
ii  bacula-director-mysql    9.6.7-7    all  network
backup service - MySQL storage for Director
un  bacula-director-pgsql        (no
description available)
un  bacula-director-sqlite3      (no
description available)
un  bacula-doc       (no
description available)
ii  bacula-fd    9.6.7-7    amd64    network
backup service - file daemon
ii  bacula-sd    9.6.7-7    amd64    network
backup service - storage daemon
un  bacula-sd-mysql      (no
description available)
un  bacula-sd-pgsql      (no
description available)
un  bacula-sd-sqlite3        (no
description available)
ii  bacula-server    9.6.7-7    all  network
backup service - server metapackage
ii  bacularis    2.7.0~bullseye all  The
Bacularis WebGUI enables administration and managing Bacula jobs.
ii  bacularis-apache2    2.7.0~bullseye all  This
package provides the Apache configuration for Bacularis.
un  bacularis-lighttpd       (no
description available)
un  bacularis-nginx      (no
description available)
root@bacula:~#


I am finding the naming convention /description difficult to
understand.  So, I have a bacularis web container running.  It
appears I need something between the container and the director?
but I cannot see what.

regards

Steven

On Tue, 9 Apr 2024 at 05:17, Marcin Haba  wrote:

Hello Steven,

Of course, you don't need to uninstall anything. Bacula
daemons stay where they are. Don't worry, nothing changes here.

In that container image description is a sentence:

"It can be used to connect external Bacularis API server(s) in
containers or outside them."

This "outside them" means that you can install Bacularis API
in any way that you want, Docker image is only one of the ways.

Reading your description for that, what you would like to
have, the easiest is to install only one Bacularis using
binary packages on the Bacula Director host. It contains the
Bacularis Web and Bacularis API together, so you don't need to
split it or install anything else, just this one Bacularis
instance. The installation wizard, that you will see after
installing, will lead you on all the configuration process.

In case problems or questions, please let us know. Thanks!

Best regards,
Marcin Haba (gani)

On Mon, 8 Apr 2024 at 09:22, steven 
wrote:

hi,

Ok I 

Re: [Bacula-users] Install.sh error trying to install manually Bacularis

2024-04-08 Thread Marcin Haba
Hello Neil,

I have checked installing Bacularis on FreeBSD and I have one more note.

By default in Apache is used PHP as Apache module. If you want to use it
this way, it is fine. Nothing else to do. If you will need to use PHP
through PHP-FPM, then you need to do a few changes in your httpd.conf to
disable the Apache PHP module and enable PHP-FPM.

First, you need to disable/comment the MPM Prefork module and libphp:

#LoadModule mpm_prefork_module libexec/apache24/mod_mpm_prefork.so
#LoadModule php_module libexec/apache24/libphp.so

and enable/uncomment these modules:

LoadModule mpm_event_module libexec/apache24/mod_mpm_event.so
LoadModule proxy_module libexec/apache24/mod_proxy.so
LoadModule proxy_fcgi_module libexec/apache24/mod_proxy_fcgi.so

Then you need to add these lines to the same httpd.conf:


SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1

SetHandler  "proxy:unix:/tmp/php-fpm.sock|fcgi://localhost/"



At the end in /usr/local/etc/php-fpm.d/www.conf you need to set permissions
for PHP-FPM unix socket:

listen.owner = www
listen.group = www
listen.mode = 0660

and restart the services:

# service php-fpm restart
# service apache24 restart

Best regards,
Marcin Haba (gani)

On Tue, 9 Apr 2024 at 04:54, Marcin Haba  wrote:

> Hello Neil,
>
> Thanks for your feedback with installing Bacularis on FreeBSD.
>
> It looks that in your environment this script uses the default FreeBSD
> shell /bin/sh (or any other) that does not support arrays.
>
> This is the Bash script so to use it you need to install Bash:
>
> # pkg install bash
>
> After that you need to update shebang in the install.sh script to:
>
> #!/usr/local/bin/bash
>
> Once it is done, it should start working well. In case problems, please
> let us know.
>
> Good luck!
>
> Best regards,
> Marcin Haba (gani)
>
> On Tue, 9 Apr 2024 at 02:38, Neil Balchin  wrote:
>
>> I’ve installed Bacula in a Freebsd Jail and all is well,  Also installed
>> Apache24, and the requisite php mods to run bacularis.
>>
>> I’ve followed the manual instructions to the letter but when I get to the
>> install.sh step I get this error output :
>>
>> root@Bacula1:/usr/local/www/bacularis/protected/tools # sh ./install.sh
>> -p /tmp/php-fpm.sock
>>
>>
>> +===+
>>
>> |  Welcome in the Bacularis install script  |
>>
>> +---+
>>
>> |  This script will help you to adjust privileges   |
>>
>> |  for Bacularis files and it will prepare  |
>>
>> |  configuration files for popular web servers. |
>>
>> +---+
>>
>>
>>
>> ./install.sh: 34: Syntax error: word unexpected (expecting ")")
>>
>> root@Bacula1:/usr/local/www/bacularis/protected/tools #
>>
>>
>>
>>
>> ___
>> Bacula-users mailing list
>> Bacula-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>
>
>
> --
>
> "Greater love hath no man than this, that a man lay down his life for his 
> friends." Jesus Christ
>
> "Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za 
> przyjaciół swoich." Jezus Chrystus
>
>

-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Install.sh error trying to install manually Bacularis

2024-04-08 Thread Marcin Haba
Hello Neil,

Thanks for your feedback with installing Bacularis on FreeBSD.

It looks that in your environment this script uses the default FreeBSD
shell /bin/sh (or any other) that does not support arrays.

This is the Bash script so to use it you need to install Bash:

# pkg install bash

After that you need to update shebang in the install.sh script to:

#!/usr/local/bin/bash

Once it is done, it should start working well. In case problems, please let
us know.

Good luck!

Best regards,
Marcin Haba (gani)

On Tue, 9 Apr 2024 at 02:38, Neil Balchin  wrote:

> I’ve installed Bacula in a Freebsd Jail and all is well,  Also installed
> Apache24, and the requisite php mods to run bacularis.
>
> I’ve followed the manual instructions to the letter but when I get to the
> install.sh step I get this error output :
>
> root@Bacula1:/usr/local/www/bacularis/protected/tools # sh ./install.sh
> -p /tmp/php-fpm.sock
>
>
> +===+
>
> |  Welcome in the Bacularis install script  |
>
> +---+
>
> |  This script will help you to adjust privileges   |
>
> |  for Bacularis files and it will prepare  |
>
> |  configuration files for popular web servers. |
>
> +---+
>
>
>
> ./install.sh: 34: Syntax error: word unexpected (expecting ")")
>
> root@Bacula1:/usr/local/www/bacularis/protected/tools #
>
>
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>


-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] connecting bacularis to an existing bacula setup

2024-04-08 Thread Marcin Haba
Hello Steven,

Bacularis API and Bacularis Web are one application called just Bacularis.
So, as I see you already have it.

In the installation wizard there is possible to choose if you want to
configure API or Web or both (typical case). After installation you need
just to go to:

http://yourhost:9097

Best regards,
Marcin Haba (gani)

On Tue, 9 Apr 2024 at 01:15, Thing  wrote:

> Google it seems does not like my email server...lets try again, sorry if
> we get a duplicate.
>
> Hi,
>
> I dont see a bacualris API to install?
>
> root@bacula:~# dpkg -l bacula*
> Desired=Unknown/Install/Remove/Purge/Hold
> |
> Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
> |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
> ||/ Name VersionArchitecture Description
>
> +++--==--=
> ii  bacula-bscan 9.6.7-7amd64network backup
> service - bscan tool
> ii  bacula-client9.6.7-7all  network backup
> service - client metapackage
> ii  bacula-common9.6.7-7amd64network backup
> service - common support files
> ii  bacula-common-mysql  9.6.7-7amd64network backup
> service - MySQL common files
> un  bacula-common-pgsql  (no description
> available)
> un  bacula-common-sqlite3(no description
> available)
> ii  bacula-console   9.6.7-7amd64network backup
> service - text console
> ii  bacula-director  9.6.7-7amd64network backup
> service - Director daemon
> un  bacula-director-database (no description
> available)
> ii  bacula-director-mysql9.6.7-7all  network backup
> service - MySQL storage for Director
> un  bacula-director-pgsql(no description
> available)
> un  bacula-director-sqlite3  (no description
> available)
> un  bacula-doc   (no description
> available)
> ii  bacula-fd9.6.7-7amd64network backup
> service - file daemon
> ii  bacula-sd9.6.7-7amd64network backup
> service - storage daemon
> un  bacula-sd-mysql  (no description
> available)
> un  bacula-sd-pgsql  (no description
> available)
> un  bacula-sd-sqlite3(no description
> available)
> ii  bacula-server9.6.7-7all  network backup
> service - server metapackage
> ii  bacularis2.7.0~bullseye all  The Bacularis
> WebGUI enables administration and managing Bacula jobs.
> ii  bacularis-apache22.7.0~bullseye all  This package
> provides the Apache configuration for Bacularis.
> un  bacularis-lighttpd   (no description
> available)
> un  bacularis-nginx  (no description
> available)
> root@bacula:~#
>
>
> I am finding the naming convention /description difficult to understand.
> So, I have a bacularis web container running.  It appears I need something
> between the container and the director? but I cannot see what.
>
> regards
>
> Steven
>
> On Tue, 9 Apr 2024 at 05:17, Marcin Haba  wrote:
>
>> Hello Steven,
>>
>> Of course, you don't need to uninstall anything. Bacula daemons stay
>> where they are. Don't worry, nothing changes here.
>>
>> In that container image description is a sentence:
>>
>> "It can be used to connect external Bacularis API server(s) in containers
>> or outside them."
>>
>> This "outside them" means that you can install Bacularis API in any way
>> that you want, Docker image is only one of the ways.
>>
>> Reading your description for that, what you would like to have, the
>> easiest is to install only one Bacularis using binary packages on the
>> Bacula Director host. It contains the Bacularis Web and Bacularis API
>> together, so you don't need to split it or install anything else, just this
>> one Bacularis instance. The installation wizard, that you will see after
>> installing, will lead you on all the configuration process.
>>
>> In case problems or questions, please let us know. Thanks!
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Mon, 8 Apr 2024 at 09:22, steven  wrote:
>>
>>> hi,
>>>
>>> Ok I am confused.   The way I read it,
>>>
>>> - for File Daemons bacularis-api-fd,
>>>  - for Storage Daemons bacularis-api-sd,
>>>  - for Directors bacularis-api-dir.
>>>
>>> All have the particular bacula daemon built in?I dont need a daemon,
>>> I already have all the daemons running and have been for 6 odd years
>>> now. What I was hoping for was to have a web interface on top of Bacula.
>>> The docker container is running on the bacula director so it is local
>>> stuff. So I have to remove  the bacula-director and add in the
>>> 

  1   2   3   4   5   6   7   8   9   10   >