Re: [Bacula-users] Conflicting Include and Exclude resource

2020-07-26 Thread Shaligram Bhagat, Yateen (Nokia - IN/Bangalore)
Hi Heitor,
Thanks for your comment.

However, I have observed that the Exclude directive DOES work for a directory 
in a dynamic fileset.

What I mean is any file in a directory generated by dynamic fileset script, 
that matches the Exclude regex directive is NOT backed up, as expected.

However if a file appears as a single standalone file (not part of some top 
level dir) in a dynamic fileset, it is backed up even if it is supposed to be 
excluded.

For example,
The Exclude resource mentions *.mp3 to be excluded
Given below is the dynamic file set contents and its treatment by Bacula :


  1.  /home/yateen/testdir/foo1.txt  --> Backed up, as expected
  2.  /home/yateen/testdir/foo1.mp3 --> Not backed up , as expected
  3.  /home/yateen/foo3.mp3 --> Backed up, although supposed to be excluded

Note that the files in Sr No 1 & 2 above is part of a directory , whereas the 
Sr No 3 is a standalone file.

Regards,
Yateen Bhagat


What I have observed is that




From: Heitor Faria 
Sent: Sunday, July 26, 2020 7:25 PM
To: Shaligram Bhagat, Yateen (Nokia - IN/Bangalore) 
; bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Conflicting Include and Exclude resource


Hello Yateen,

I think dynamic fileset is not compatible with regular Include options, such as 
the RegEx diretive.
You must add that filter to your script.

Regards,
--
MSc Heitor Faria
CEO Bacula LatAm
mobile1: + 1 909 655-8971
mobile2: + 55 61 98268-4220

América Latina
[ http://bacula.lat/]


 Original Message 
From: "Shaligram Bhagat, Yateen (Nokia - IN/Bangalore)" 
mailto:yateen.shaligram_bha...@nokia.com>>
Sent: Sunday, July 26, 2020 09:28 AM
To: bacula-users 
mailto:bacula-users@lists.sourceforge.net>>
Subject: [Bacula-users] Conflicting Include and Exclude resource

Hello

I am using Bacula 9.4.4 on Centos 6

I have dynamic Fileset definition where the Fileset is created on the client 
side.
This generates some extra filenames (not dirs) for the dynamic Fileset that are 
also supposed to be excluded as per the Exclude resource.

I observed that Bacula is not excluding such files from backup at all and these 
files are getting backed up.
So my question is if a filename appears  in the Fileset and also there is a 
regex pattern for it in the Exclude resource, does Bacula override the Exclude 
directive ?

Thanks
Yateen Bhagat



___
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] Conflicting Include and Exclude resource

2020-07-26 Thread Heitor Faria
Hello Yateen,

I think dynamic fileset is not compatible with regular Include options, such as 
the RegEx diretive.
You must add that filter to your script.

Regards,
--
MSc Heitor Faria
CEO Bacula LatAm
mobile1: + 1 909 655-8971
mobile2: + 55 61 98268-4220

América Latina
[ http://bacula.lat/]

 Original Message 
From: "Shaligram Bhagat, Yateen (Nokia - IN/Bangalore)" 

Sent: Sunday, July 26, 2020 09:28 AM
To: bacula-users 
Subject: [Bacula-users] Conflicting Include and Exclude resource

>Hello
>
>I am using Bacula 9.4.4 on Centos 6
>
>I have dynamic Fileset definition where the Fileset is created on the client 
>side.
>This generates some extra filenames (not dirs) for the dynamic Fileset that 
>are also supposed to be excluded as per the Exclude resource.
>
>I observed that Bacula is not excluding such files from backup at all and 
>these files are getting backed up.
>So my question is if a filename appears  in the Fileset and also there is a 
>regex pattern for it in the Exclude resource, does Bacula override the Exclude 
>directive ?
>
>Thanks
>Yateen Bhagat
>
>
>
>___
>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] Conflicting Include and Exclude resource

2020-07-26 Thread Shaligram Bhagat, Yateen (Nokia - IN/Bangalore)
Hello

I am using Bacula 9.4.4 on Centos 6

I have dynamic Fileset definition where the Fileset is created on the client 
side.
This generates some extra filenames (not dirs) for the dynamic Fileset that are 
also supposed to be excluded as per the Exclude resource.

I observed that Bacula is not excluding such files from backup at all and these 
files are getting backed up.
So my question is if a filename appears  in the Fileset and also there is a 
regex pattern for it in the Exclude resource, does Bacula override the Exclude 
directive ?

Thanks
Yateen Bhagat



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


Re: [Bacula-users] BSR file not updated with every job

2020-07-26 Thread Dan Langille
> On Jul 24, 2020, at 6:00 PM, Martin Simmons  wrote:
> 
>> On Fri, 24 Jul 2020 09:09:12 -0400, Dan Langille said:
>> 
>> I'm using Bacula 9.6.5 on FreeBSD 12.1
>> 
>> I have noticed a BSR file which is not getting updated after every job run.
>> ...
>> This is the most recent job, from today:
>> 
>> 24-Jul 03:05 bacula-dir JobId 314258: Start Backup JobId 314258, 
>> Job=tallboy_home.2020-07-24_03.05.00_08
>> 24-Jul 03:05 bacula-dir JobId 314258: There are no more Jobs associated with 
>> Volume "IncrAuto-7393". Marking it purged.
>> 24-Jul 03:05 bacula-dir JobId 314258: All records pruned from Volume 
>> "IncrAuto-7393"; marking it "Purged"
>> 24-Jul 03:05 bacula-dir JobId 314258: Recycled volume "IncrAuto-7393"
>> 24-Jul 03:05 bacula-dir JobId 314258: Using Device "vDrive-IncrFile-6" to 
>> write.
>> 24-Jul 03:05 bacula-sd-01-sd JobId 314258: Recycled volume "IncrAuto-7393" 
>> on File device "vDrive-IncrFile-6" (/usr/local/bacula/volumes/IncrFile), all 
>> previous data lost.
>> 24-Jul 03:05 bacula-dir JobId 314258: Max Volume jobs=1 exceeded. Marking 
>> Volume "IncrAuto-7393" as Used.
>> 24-Jul 03:05 bacula-sd-01-sd JobId 314258: Elapsed time=00:00:03, Transfer 
>> rate=0  Bytes/second
>> 24-Jul 03:05 bacula-sd-01-sd JobId 314258: Sending spooled attrs to the 
>> Director. Despooling 0 bytes ...
>> 24-Jul 03:05 bacula-dir JobId 314258: Bacula bacula-dir 9.6.5 (11Jun20):
>>  Build OS:   amd64-portbld-freebsd12.1 freebsd 12.1-RELEASE-p7
>>  JobId:  314258
>>  Job:tallboy_home.2020-07-24_03.05.00_08
>>  Backup Level:   Incremental, since=2020-07-23 03:05:17
>>  Client: "tallboy-fd" 9.6.5 (11Jun20) 
>> amd64-portbld-freebsd12.1,freebsd,12.1-RELEASE-p7
>>  FileSet:"tallboy home" 2012-12-20 14:19:02
>>  Pool:   "IncrFile" (From Job IncPool override)
>>  Catalog:"MyCatalog" (From Client resource)
>>  Storage:"bacula-sd-01-IncrFile" (From Pool resource)
>>  Scheduled time: 24-Jul-2020 03:05:00
>>  Start time: 24-Jul-2020 03:05:17
>>  End time:   24-Jul-2020 03:05:21
>>  Elapsed time:   4 secs
>>  Priority:   10
>>  FD Files Written:   0
>>  SD Files Written:   0
>>  FD Bytes Written:   0 (0 B)
>>  SD Bytes Written:   0 (0 B)
> 
> This job wrote nothing to the volume, so there is nothing to add to the BSR
> file.

When I look at this post now, that's easy to see. I find myself smirking to 
myself when it see it now. Thanks.

Why was this a problem to me? I'm backing up my BSR files with an rsync to 
other hosts.

There is a monitoring script to make sure the rcync'd files are not more than 
48 hours old.

I have 'fixed' with with a crontab on the above referenced host:

0   0   *   *   *   touch ~/.backmeup

Cheers

-- 
Dan Langille - BSDCan / PGCon
d...@langille.org





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