Re: [Bacula-users] Baculum 9.6.5.1

2020-10-01 Thread Marcin Haba
Hello Elias,

Thanks for this debug output.

Could you execute in bconsole a 'sql' command and after that the
following SQL query?

SELECT 'D', tmp.PathId, 0, tmp.Path, JobId, LStat, FileId, FileIndex
FROM (SELECT PathHierarchy.PPathId AS PathId, '..' AS Path FROM
PathHierarchy JOIN PathVisibility USING (PathId) WHERE
PathHierarchy.PathId = 92295 AND PathVisibility.JobId IN (17911) UNION
SELECT 92295 AS PathId, '.' AS Path) AS tmp  LEFT JOIN ( SELECT
File1.PathId AS PathId, File1.JobId AS JobId, File1.LStat AS LStat,
File1.FileId AS FileId, File1.FileIndex AS FileIndex, Job1.JobTDate AS
JobTDate FROM File AS File1 JOIN Job AS Job1 USING (JobId)WHERE
File1.FilenameId = 3 AND File1.JobId IN (17911)) AS listfile1 ON
(tmp.PathId = listfile1.PathId) ORDER BY tmp.Path, JobTDate DESC;

Also it might be useful output from:

SELECT * FROM Path WHERE Path='';

SELECT * FROM Path WHERE PathId=92295;

Best regards,
Marcin Haba (gani)

On Fri, 2 Oct 2020 at 05:46, Elias Pereira  wrote:
>
> Thanks, Marcin!!
>
> bacula-dir: ua_dotcmds.c:177-0 Cmd: .bvfs_lsdirs jobid=17911 path=
> bacula-dir: ua_cmds.c:2613-0 UA Open database
> bacula-dir: mysql.c:119-0 db_init_database first time
> bacula-dir: mysql.c:224-0 mysql_init done
> bacula-dir: mysql.c:263-0 mysql_real_connect done
> bacula-dir: mysql.c:265-0 db_user=bacula db_name=bacula db_password=x
> bacula-dir: mysql.c:301-0 opendb ref=1 connected=1 db=7f17f4003480
> bacula-dir: ua_cmds.c:2662-0 DB bacula opened
> bacula-dir: bvfs.c:139-0 No ACL
> bacula-dir: bvfs.c:1084-0 ls_special_dirs(92295)
> bacula-dir: bvfs.c:1121-0 q=SELECT 'D', tmp.PathId, 0, tmp.Path, JobId, 
> LStat, FileId, FileIndex FROM (SELECT PathHierarchy.PPathId AS PathId, '..' 
> AS Path FROM  PathHierarchy JOIN PathVisibility USING (PathId) WHERE  
> PathHierarchy.PathId = 92295 AND PathVisibility.JobId IN (17911) UNION SELECT 
> 92295 AS PathId, '.' AS Path) AS tmp  LEFT JOIN ( SELECT File1.PathId AS 
> PathId, File1.JobId AS JobId, File1.LStat AS LStat, File1.FileId AS FileId, 
> File1.FileIndex AS FileIndex, Job1.JobTDate AS JobTDate FROM File AS File1 
> JOIN Job AS Job1 USING (JobId)WHERE File1.FilenameId = 3 AND File1.JobId IN 
> (17911)) AS listfile1 ON (tmp.PathId = listfile1.PathId) ORDER BY tmp.Path, 
> JobTDate DESC
> bacula-dir: ua_dotcmds.c:418-0 type=D
> bacula-dir: bvfs.c:1128-0 ls_dirs(92295)
> bacula-dir: bvfs.c:1193-0 q=SELECT 'D', PathId,  0,Path, JobId, LStat, 
> FileId, FileIndex FROM ( SELECT Path1.PathId AS PathId, Path1.Path AS Path, 
> lower(Path1.Path) AS lpath, listfile1.JobId AS JobId, listfile1.LStat AS 
> LStat, listfile1.FileId AS FileId, listfile1.JobTDate AS JobTDate, 
> listfile1.FileIndex AS FileIndex FROM ( SELECT DISTINCT PathHierarchy1.PathId 
> AS PathId FROM PathHierarchy AS PathHierarchy1 JOIN Path AS Path2 ON 
> (PathHierarchy1.PathId = Path2.PathId) JOIN PathVisibility AS PathVisibility1 
> ON (PathHierarchy1.PathId = PathVisibility1.PathId) WHERE 
> PathHierarchy1.PPathId = 92295 AND PathVisibility1.JobId IN (17911)  ) AS 
> listpath1 JOIN Path AS Path1 ON (listpath1.PathId = Path1.PathId) LEFT JOIN ( 
> SELECT File1.PathId AS PathId, File1.JobId AS JobId, File1.LStat AS LStat, 
> File1.FileId AS FileId, File1.FileIndex, Job1.JobTDate AS JobTDate FROM File 
> AS File1 JOIN Job AS Job1 USING (JobId) WHERE File1.FilenameId = 3 AND 
> File1.JobId IN (17911)) AS listfile1 ON (listpath1.PathId = listfile1.PathId) 
> ) AS A ORDER BY Path,JobTDate DESC LIMIT 2000 OFFSET 0
> bacula-dir: ua_dotcmds.c:418-0 type=D
> bacula-dir: mysql.c:325-0 closedb ref=0 connected=1 db=7f17f4003480
> bacula-dir: mysql.c:332-0 close db=7f17f4003480
> bacula-dir: job.c:1466-0 Start dird free_jcr
> bacula-dir: mem_pool.c:372-0 garbage collect memory pool
> bacula-dir: job.c:1522-0 End dird free_jcr
>
> On Fri, Oct 2, 2020 at 12:23 AM Marcin Haba  wrote:
>>
>> Hello Elias,
>>
>> There is something wrong with BVFS on your side. As far as I can see
>> Webacula doesn't use BVFS but it uses restore command directly, so it
>> can explain why you see files there.
>>
>> You can enable Director debug and check if there is anything wrong.
>> You can do it for example by the bconsole command:
>>
>> setdebug level=400 tags=bvfs,sql trace=1 dir
>>
>> In the Director working directory you will have a bacula-dir.trace
>> file. You can try this command once again:
>>
>> .bvfs_lsdirs jobid=17911 path=
>>
>> and then please past here the trace content starting from line like
>> below to the end:
>>
>> bacula-dir: ua_dotcmds.c:177-0 Cmd: .bvfs_lsdirs jobid=17911 path=
>>
>> Thanks in advance for this checking.
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Fri, 2 Oct 2020 at 05:00, Elias Pereira  wrote:
>> >
>> > Still not showing the files to restore.
>> >
>> > On Thu, Oct 1, 2020 at 10:24 PM Jose Alberto  wrote:
>> >>
>> >> For the moments. It only occurs to me to clear the bvfs cache and 
>> >> generate it. This should preferably be run when a backup is not running.
>> >>
>> >> 

Re: [Bacula-users] Baculum 9.6.5.1

2020-10-01 Thread Elias Pereira
Thanks, Marcin!!

bacula-dir: ua_dotcmds.c:177-0 Cmd: .bvfs_lsdirs jobid=17911 path=
bacula-dir: ua_cmds.c:2613-0 UA Open database
bacula-dir: mysql.c:119-0 db_init_database first time
bacula-dir: mysql.c:224-0 mysql_init done
bacula-dir: mysql.c:263-0 mysql_real_connect done
bacula-dir: mysql.c:265-0 db_user=bacula db_name=bacula
db_password=x
bacula-dir: mysql.c:301-0 opendb ref=1 connected=1 db=7f17f4003480
bacula-dir: ua_cmds.c:2662-0 DB bacula opened
bacula-dir: bvfs.c:139-0 No ACL
bacula-dir: bvfs.c:1084-0 ls_special_dirs(92295)
bacula-dir: bvfs.c:1121-0 q=SELECT 'D', tmp.PathId, 0, tmp.Path, JobId,
LStat, FileId, FileIndex FROM (SELECT PathHierarchy.PPathId AS PathId, '..'
AS Path FROM  PathHierarchy JOIN PathVisibility USING (PathId) WHERE
 PathHierarchy.PathId = 92295 AND PathVisibility.JobId IN (17911) UNION
SELECT 92295 AS PathId, '.' AS Path) AS tmp  LEFT JOIN ( SELECT
File1.PathId AS PathId, File1.JobId AS JobId, File1.LStat AS LStat,
File1.FileId AS FileId, File1.FileIndex AS FileIndex, Job1.JobTDate AS
JobTDate FROM File AS File1 JOIN Job AS Job1 USING (JobId)WHERE
File1.FilenameId = 3 AND File1.JobId IN (17911)) AS listfile1 ON
(tmp.PathId = listfile1.PathId) ORDER BY tmp.Path, JobTDate DESC
bacula-dir: ua_dotcmds.c:418-0 type=D
bacula-dir: bvfs.c:1128-0 ls_dirs(92295)
bacula-dir: bvfs.c:1193-0 q=SELECT 'D', PathId,  0,Path, JobId, LStat,
FileId, FileIndex FROM ( SELECT Path1.PathId AS PathId, Path1.Path AS Path,
lower(Path1.Path) AS lpath, listfile1.JobId AS JobId, listfile1.LStat AS
LStat, listfile1.FileId AS FileId, listfile1.JobTDate AS JobTDate,
listfile1.FileIndex AS FileIndex FROM ( SELECT DISTINCT
PathHierarchy1.PathId AS PathId FROM PathHierarchy AS PathHierarchy1 JOIN
Path AS Path2 ON (PathHierarchy1.PathId = Path2.PathId) JOIN PathVisibility
AS PathVisibility1 ON (PathHierarchy1.PathId = PathVisibility1.PathId)
WHERE PathHierarchy1.PPathId = 92295 AND PathVisibility1.JobId IN (17911)
 ) AS listpath1 JOIN Path AS Path1 ON (listpath1.PathId = Path1.PathId)
LEFT JOIN ( SELECT File1.PathId AS PathId, File1.JobId AS JobId,
File1.LStat AS LStat, File1.FileId AS FileId, File1.FileIndex,
Job1.JobTDate AS JobTDate FROM File AS File1 JOIN Job AS Job1 USING (JobId)
WHERE File1.FilenameId = 3 AND File1.JobId IN (17911)) AS listfile1 ON
(listpath1.PathId = listfile1.PathId) ) AS A ORDER BY Path,JobTDate DESC
LIMIT 2000 OFFSET 0
bacula-dir: ua_dotcmds.c:418-0 type=D
bacula-dir: mysql.c:325-0 closedb ref=0 connected=1 db=7f17f4003480
bacula-dir: mysql.c:332-0 close db=7f17f4003480
bacula-dir: job.c:1466-0 Start dird free_jcr
bacula-dir: mem_pool.c:372-0 garbage collect memory pool
bacula-dir: job.c:1522-0 End dird free_jcr

On Fri, Oct 2, 2020 at 12:23 AM Marcin Haba  wrote:

> Hello Elias,
>
> There is something wrong with BVFS on your side. As far as I can see
> Webacula doesn't use BVFS but it uses restore command directly, so it
> can explain why you see files there.
>
> You can enable Director debug and check if there is anything wrong.
> You can do it for example by the bconsole command:
>
> setdebug level=400 tags=bvfs,sql trace=1 dir
>
> In the Director working directory you will have a bacula-dir.trace
> file. You can try this command once again:
>
> .bvfs_lsdirs jobid=17911 path=
>
> and then please past here the trace content starting from line like
> below to the end:
>
> bacula-dir: ua_dotcmds.c:177-0 Cmd: .bvfs_lsdirs jobid=17911 path=
>
> Thanks in advance for this checking.
>
> Best regards,
> Marcin Haba (gani)
>
> On Fri, 2 Oct 2020 at 05:00, Elias Pereira  wrote:
> >
> > Still not showing the files to restore.
> >
> > On Thu, Oct 1, 2020 at 10:24 PM Jose Alberto  wrote:
> >>
> >> For the moments. It only occurs to me to clear the bvfs cache and
> generate it. This should preferably be run when a backup is not running.
> >>
> >> .bvfs_clear_cache yes
> >>
> >> .bvfs_update
> >>
> >>
> >>
> >>
> >> On Thu, Oct 1, 2020 at 5:58 PM Elias Pereira 
> wrote:
> >>>
> >>> Enter a period to cancel a command.
> >>> *list files jobid=17911
> >>> Automatically selected Catalog: MyCatalog
> >>> Using Catalog "MyCatalog"
> >>> +--+
> >>> | Filename |
> >>> +--+
> >>> | /home/backup/datapump/BDETCOM.log |
> >>> | /home/backup/datapump/BDETCOM.dmp |
> >>> | /home/backup/datapump/ |
> >>> | /home/backup/ |
> >>> +--+
> >>>
> ++---+-+--+---+--++---+
> >>> | JobId  | Name  | StartTime   | Type | Level |
> JobFiles | JobBytes   | JobStatus |
> >>>
> ++---+-+--+---+--++---+
> >>> | 17,911 | Backup_SCA_Oracle | 2020-10-01 12:02:16 | B| D |
> 6 | 27,396,081 | T |
> >>>
> ++---+-+--+---+--++---+
> >>> You have messages.
> >>>
> >>> As I have already said. Through the webacula I can check 

Re: [Bacula-users] Baculum 9.6.5.1

2020-10-01 Thread Marcin Haba
Hello Elias,

There is something wrong with BVFS on your side. As far as I can see
Webacula doesn't use BVFS but it uses restore command directly, so it
can explain why you see files there.

You can enable Director debug and check if there is anything wrong.
You can do it for example by the bconsole command:

setdebug level=400 tags=bvfs,sql trace=1 dir

In the Director working directory you will have a bacula-dir.trace
file. You can try this command once again:

.bvfs_lsdirs jobid=17911 path=

and then please past here the trace content starting from line like
below to the end:

bacula-dir: ua_dotcmds.c:177-0 Cmd: .bvfs_lsdirs jobid=17911 path=

Thanks in advance for this checking.

Best regards,
Marcin Haba (gani)

On Fri, 2 Oct 2020 at 05:00, Elias Pereira  wrote:
>
> Still not showing the files to restore.
>
> On Thu, Oct 1, 2020 at 10:24 PM Jose Alberto  wrote:
>>
>> For the moments. It only occurs to me to clear the bvfs cache and generate 
>> it. This should preferably be run when a backup is not running.
>>
>> .bvfs_clear_cache yes
>>
>> .bvfs_update
>>
>>
>>
>>
>> On Thu, Oct 1, 2020 at 5:58 PM Elias Pereira  wrote:
>>>
>>> Enter a period to cancel a command.
>>> *list files jobid=17911
>>> Automatically selected Catalog: MyCatalog
>>> Using Catalog "MyCatalog"
>>> +--+
>>> | Filename |
>>> +--+
>>> | /home/backup/datapump/BDETCOM.log |
>>> | /home/backup/datapump/BDETCOM.dmp |
>>> | /home/backup/datapump/ |
>>> | /home/backup/ |
>>> +--+
>>> ++---+-+--+---+--++---+
>>> | JobId  | Name  | StartTime   | Type | Level | 
>>> JobFiles | JobBytes   | JobStatus |
>>> ++---+-+--+---+--++---+
>>> | 17,911 | Backup_SCA_Oracle | 2020-10-01 12:02:16 | B| D |
>>> 6 | 27,396,081 | T |
>>> ++---+-+--+---+--++---+
>>> You have messages.
>>>
>>> As I have already said. Through the webacula I can check the files in the 
>>> restore, but through the baculum nothing appears.
>>>
>>> On Thu, Oct 1, 2020 at 5:51 PM Jose Alberto  wrote:

 Hi.

 No show  when  go to Restore   or  when"info Job" 

 prune files?  for FileRetention.

 list files jobid=17911

 show files?



 On Thu, Oct 1, 2020 at 9:02 AM Elias Pereira  wrote:
>
> Hello,
>
> I updated my old version to 9.6.5.1, but now the recovery function 
> doesn't show job files. I verify this via webacula and the files are 
> there.
>
> Any idea?
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users



 --
 #
 #   Sistema Operativo: Debian  #
 #Caracas, Venezuela  #
 #
>>>
>>>
>>>
>>> --
>>> Elias Pereira
>>
>>
>>
>> --
>> #
>> #   Sistema Operativo: Debian  #
>> #Caracas, Venezuela  #
>> #
>
>
>
> --
> Elias Pereira
> ___
> 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] Baculum 9.6.5.1

2020-10-01 Thread Elias Pereira
Still not showing the files to restore.

On Thu, Oct 1, 2020 at 10:24 PM Jose Alberto  wrote:

> For the moments. It only occurs to me to clear the bvfs cache and generate
> it. This should preferably be run when a backup is not running.
>
> .bvfs_clear_cache yes
>
> .bvfs_update
>
>
>
>
> On Thu, Oct 1, 2020 at 5:58 PM Elias Pereira  wrote:
>
>> Enter a period to cancel a command.
>> *list files jobid=17911
>> Automatically selected Catalog: MyCatalog
>> Using Catalog "MyCatalog"
>> +--+
>> | Filename |
>> +--+
>> | /home/backup/datapump/BDETCOM.log |
>> | /home/backup/datapump/BDETCOM.dmp |
>> | /home/backup/datapump/ |
>> | /home/backup/ |
>> +--+
>>
>> ++---+-+--+---+--++---+
>> | JobId  | Name  | StartTime   | Type | Level |
>> JobFiles | JobBytes   | JobStatus |
>>
>> ++---+-+--+---+--++---+
>> | 17,911 | Backup_SCA_Oracle | 2020-10-01 12:02:16 | B| D |
>>  6 | 27,396,081 | T |
>>
>> ++---+-+--+---+--++---+
>> You have messages.
>>
>> As I have already said. Through the webacula I can check the files in the
>> restore, but through the baculum nothing appears.
>>
>> On Thu, Oct 1, 2020 at 5:51 PM Jose Alberto  wrote:
>>
>>> Hi.
>>>
>>> No show  when  go to Restore   or  when"info Job" 
>>>
>>> prune files?  for FileRetention.
>>>
>>> list files jobid=17911
>>>
>>> show files?
>>>
>>>
>>>
>>> On Thu, Oct 1, 2020 at 9:02 AM Elias Pereira  wrote:
>>>
 Hello,

 I updated my old version to 9.6.5.1, but now the recovery function
 doesn't show job files. I verify this via webacula and the files are there.

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

>>>
>>>
>>> --
>>> #
>>> #   Sistema Operativo: Debian  #
>>> #Caracas, Venezuela  #
>>> #
>>>
>>
>>
>> --
>> Elias Pereira
>>
>
>
> --
> #
> #   Sistema Operativo: Debian  #
> #Caracas, Venezuela  #
> #
>


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


Re: [Bacula-users] Baculum 9.6.5.1

2020-10-01 Thread Jose Alberto
For the moments. It only occurs to me to clear the bvfs cache and generate
it. This should preferably be run when a backup is not running.

.bvfs_clear_cache yes

.bvfs_update




On Thu, Oct 1, 2020 at 5:58 PM Elias Pereira  wrote:

> Enter a period to cancel a command.
> *list files jobid=17911
> Automatically selected Catalog: MyCatalog
> Using Catalog "MyCatalog"
> +--+
> | Filename |
> +--+
> | /home/backup/datapump/BDETCOM.log |
> | /home/backup/datapump/BDETCOM.dmp |
> | /home/backup/datapump/ |
> | /home/backup/ |
> +--+
>
> ++---+-+--+---+--++---+
> | JobId  | Name  | StartTime   | Type | Level |
> JobFiles | JobBytes   | JobStatus |
>
> ++---+-+--+---+--++---+
> | 17,911 | Backup_SCA_Oracle | 2020-10-01 12:02:16 | B| D |
>  6 | 27,396,081 | T |
>
> ++---+-+--+---+--++---+
> You have messages.
>
> As I have already said. Through the webacula I can check the files in the
> restore, but through the baculum nothing appears.
>
> On Thu, Oct 1, 2020 at 5:51 PM Jose Alberto  wrote:
>
>> Hi.
>>
>> No show  when  go to Restore   or  when"info Job" 
>>
>> prune files?  for FileRetention.
>>
>> list files jobid=17911
>>
>> show files?
>>
>>
>>
>> On Thu, Oct 1, 2020 at 9:02 AM Elias Pereira  wrote:
>>
>>> Hello,
>>>
>>> I updated my old version to 9.6.5.1, but now the recovery function
>>> doesn't show job files. I verify this via webacula and the files are there.
>>>
>>> Any idea?
>>> ___
>>> Bacula-users mailing list
>>> Bacula-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>>
>>
>>
>> --
>> #
>> #   Sistema Operativo: Debian  #
>> #Caracas, Venezuela  #
>> #
>>
>
>
> --
> Elias Pereira
>


-- 
#
#   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 9.6.5.1

2020-10-01 Thread Elias Pereira
Enter a period to cancel a command.
*list files jobid=17911
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
+--+
| Filename |
+--+
| /home/backup/datapump/BDETCOM.log |
| /home/backup/datapump/BDETCOM.dmp |
| /home/backup/datapump/ |
| /home/backup/ |
+--+
++---+-+--+---+--++---+
| JobId  | Name  | StartTime   | Type | Level |
JobFiles | JobBytes   | JobStatus |
++---+-+--+---+--++---+
| 17,911 | Backup_SCA_Oracle | 2020-10-01 12:02:16 | B| D |
 6 | 27,396,081 | T |
++---+-+--+---+--++---+
You have messages.

As I have already said. Through the webacula I can check the files in the
restore, but through the baculum nothing appears.

On Thu, Oct 1, 2020 at 5:51 PM Jose Alberto  wrote:

> Hi.
>
> No show  when  go to Restore   or  when"info Job" 
>
> prune files?  for FileRetention.
>
> list files jobid=17911
>
> show files?
>
>
>
> On Thu, Oct 1, 2020 at 9:02 AM Elias Pereira  wrote:
>
>> Hello,
>>
>> I updated my old version to 9.6.5.1, but now the recovery function
>> doesn't show job files. I verify this via webacula and the files are there.
>>
>> Any idea?
>> ___
>> Bacula-users mailing list
>> Bacula-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>
>
>
> --
> #
> #   Sistema Operativo: Debian  #
> #Caracas, Venezuela  #
> #
>


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


Re: [Bacula-users] Baculum 9.6.5.1

2020-10-01 Thread Jose Alberto
Hi.

No show  when  go to Restore   or  when"info Job" 

prune files?  for FileRetention.

list files jobid=17911

show files?



On Thu, Oct 1, 2020 at 9:02 AM Elias Pereira  wrote:

> Hello,
>
> I updated my old version to 9.6.5.1, but now the recovery function doesn't
> show job files. I verify this via webacula and the files are there.
>
> Any idea?
> ___
> 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 9.6.5.1

2020-10-01 Thread Elias Pereira
Enter a period to cancel a command.
*.bvfs_update jobid=17911
Using Catalog "MyCatalog"
*.bvfs_lsdirs jobid=17911 path=
root@bacula:~#

On Thu, Oct 1, 2020 at 3:52 PM Elias Pereira  wrote:

> It occurs the same as in my previous post.
>
> Enter a period to cancel a command.
> *.bvfs_lsdirs jobid=17911 path=
> Using Catalog "MyCatalog"
> root@bacula:~#
>
> On Thu, Oct 1, 2020 at 3:46 PM Marcin Haba  wrote:
>
>> Hello Elias,
>>
>> Thanks for this test.
>>
>> Could I ask you about manual updating BVFS cache:
>>
>> .bvfs_update jobid=17911
>>
>> and trying this command once again?
>>
>> .bvfs_lsdirs jobid=17911 path=
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Thu, 1 Oct 2020 at 19:45, Elias Pereira  wrote:
>> >
>> > hello Marcin, thanks for the help!!
>> >
>> > Output:
>> > root@bacula:~# bconsole
>> > Connecting to Director xxx.xxx.xxx.xxx:9101
>> > 1000 OK: 103 bacula-dir Version: 9.6.6 (20 September 2020)
>> > Enter a period to cancel a command.
>> > *.bvfs_lsdirs jobid=17911 path=
>> > Using Catalog "MyCatalog"
>> > root@bacula:~#
>> >
>> >
>> >
>> > On Thu, Oct 1, 2020 at 2:36 PM Marcin Haba  wrote:
>> >>
>> >> Hello Elias,
>> >>
>> >> On Thu, 1 Oct 2020 at 15:02, Elias Pereira  wrote:
>> >> >
>> >> > Hello,
>> >> >
>> >> > I updated my old version to 9.6.5.1, but now the recovery function
>> doesn't show job files. I verify this via webacula and the files are there.
>> >> >
>> >> > Any idea?
>> >>
>> >> Do you mean list dirs/files in the restore wizard? If yes, could I ask
>> >> you about checking in bconsole the following command:
>> >>
>> >> .bvfs_lsdirs jobid= path=
>> >>
>> >> where  is jobid job that you want to restore
>> >>
>> >> For example:
>> >>
>> >> .bvfs_lsdirs jobid=14534 path=
>> >> 30269 0 0 0 A A A A A A A A A A A A A A .
>> >> 30268 0 0 0 A A A A A A A A A A A A A A /
>> >>
>> >> Thanks in advance for sharing the result.
>> >>
>> >> Best regards,
>> >> Marcin Haba (gani)
>> >>
>> >>  ___
>> >> > 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
>> >
>> >
>> >
>> > --
>> > Elias Pereira
>>
>>
>>
>> --
>> "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
>>
>
>
> --
> Elias Pereira
>


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


Re: [Bacula-users] Baculum 9.6.5.1

2020-10-01 Thread Elias Pereira
It occurs the same as in my previous post.

Enter a period to cancel a command.
*.bvfs_lsdirs jobid=17911 path=
Using Catalog "MyCatalog"
root@bacula:~#

On Thu, Oct 1, 2020 at 3:46 PM Marcin Haba  wrote:

> Hello Elias,
>
> Thanks for this test.
>
> Could I ask you about manual updating BVFS cache:
>
> .bvfs_update jobid=17911
>
> and trying this command once again?
>
> .bvfs_lsdirs jobid=17911 path=
>
> Best regards,
> Marcin Haba (gani)
>
> On Thu, 1 Oct 2020 at 19:45, Elias Pereira  wrote:
> >
> > hello Marcin, thanks for the help!!
> >
> > Output:
> > root@bacula:~# bconsole
> > Connecting to Director xxx.xxx.xxx.xxx:9101
> > 1000 OK: 103 bacula-dir Version: 9.6.6 (20 September 2020)
> > Enter a period to cancel a command.
> > *.bvfs_lsdirs jobid=17911 path=
> > Using Catalog "MyCatalog"
> > root@bacula:~#
> >
> >
> >
> > On Thu, Oct 1, 2020 at 2:36 PM Marcin Haba  wrote:
> >>
> >> Hello Elias,
> >>
> >> On Thu, 1 Oct 2020 at 15:02, Elias Pereira  wrote:
> >> >
> >> > Hello,
> >> >
> >> > I updated my old version to 9.6.5.1, but now the recovery function
> doesn't show job files. I verify this via webacula and the files are there.
> >> >
> >> > Any idea?
> >>
> >> Do you mean list dirs/files in the restore wizard? If yes, could I ask
> >> you about checking in bconsole the following command:
> >>
> >> .bvfs_lsdirs jobid= path=
> >>
> >> where  is jobid job that you want to restore
> >>
> >> For example:
> >>
> >> .bvfs_lsdirs jobid=14534 path=
> >> 30269 0 0 0 A A A A A A A A A A A A A A .
> >> 30268 0 0 0 A A A A A A A A A A A A A A /
> >>
> >> Thanks in advance for sharing the result.
> >>
> >> Best regards,
> >> Marcin Haba (gani)
> >>
> >>  ___
> >> > 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
> >
> >
> >
> > --
> > Elias Pereira
>
>
>
> --
> "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
>


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


Re: [Bacula-users] Baculum 9.6.5.1

2020-10-01 Thread Marcin Haba
Hello Elias,

Thanks for this test.

Could I ask you about manual updating BVFS cache:

.bvfs_update jobid=17911

and trying this command once again?

.bvfs_lsdirs jobid=17911 path=

Best regards,
Marcin Haba (gani)

On Thu, 1 Oct 2020 at 19:45, Elias Pereira  wrote:
>
> hello Marcin, thanks for the help!!
>
> Output:
> root@bacula:~# bconsole
> Connecting to Director xxx.xxx.xxx.xxx:9101
> 1000 OK: 103 bacula-dir Version: 9.6.6 (20 September 2020)
> Enter a period to cancel a command.
> *.bvfs_lsdirs jobid=17911 path=
> Using Catalog "MyCatalog"
> root@bacula:~#
>
>
>
> On Thu, Oct 1, 2020 at 2:36 PM Marcin Haba  wrote:
>>
>> Hello Elias,
>>
>> On Thu, 1 Oct 2020 at 15:02, Elias Pereira  wrote:
>> >
>> > Hello,
>> >
>> > I updated my old version to 9.6.5.1, but now the recovery function doesn't 
>> > show job files. I verify this via webacula and the files are there.
>> >
>> > Any idea?
>>
>> Do you mean list dirs/files in the restore wizard? If yes, could I ask
>> you about checking in bconsole the following command:
>>
>> .bvfs_lsdirs jobid= path=
>>
>> where  is jobid job that you want to restore
>>
>> For example:
>>
>> .bvfs_lsdirs jobid=14534 path=
>> 30269 0 0 0 A A A A A A A A A A A A A A .
>> 30268 0 0 0 A A A A A A A A A A A A A A /
>>
>> Thanks in advance for sharing the result.
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>>  ___
>> > 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
>
>
>
> --
> Elias Pereira



-- 
"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] Baculum 9.6.5.1

2020-10-01 Thread Elias Pereira
hello Marcin, thanks for the help!!

Output:
root@bacula:~# bconsole
Connecting to Director xxx.xxx.xxx.xxx:9101 
1000 OK: 103 bacula-dir Version: 9.6.6 (20 September 2020)
Enter a period to cancel a command.
*.bvfs_lsdirs jobid=17911 path=
Using Catalog "MyCatalog"
root@bacula:~#



On Thu, Oct 1, 2020 at 2:36 PM Marcin Haba  wrote:

> Hello Elias,
>
> On Thu, 1 Oct 2020 at 15:02, Elias Pereira  wrote:
> >
> > Hello,
> >
> > I updated my old version to 9.6.5.1, but now the recovery function
> doesn't show job files. I verify this via webacula and the files are there.
> >
> > Any idea?
>
> Do you mean list dirs/files in the restore wizard? If yes, could I ask
> you about checking in bconsole the following command:
>
> .bvfs_lsdirs jobid= path=
>
> where  is jobid job that you want to restore
>
> For example:
>
> .bvfs_lsdirs jobid=14534 path=
> 30269 0 0 0 A A A A A A A A A A A A A A .
> 30268 0 0 0 A A A A A A A A A A A A A A /
>
> Thanks in advance for sharing the result.
>
> Best regards,
> Marcin Haba (gani)
>
>  ___
> > 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
>


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


Re: [Bacula-users] Baculum 9.6.5.1

2020-10-01 Thread Marcin Haba
Hello Elias,

On Thu, 1 Oct 2020 at 15:02, Elias Pereira  wrote:
>
> Hello,
>
> I updated my old version to 9.6.5.1, but now the recovery function doesn't 
> show job files. I verify this via webacula and the files are there.
>
> Any idea?

Do you mean list dirs/files in the restore wizard? If yes, could I ask
you about checking in bconsole the following command:

.bvfs_lsdirs jobid= path=

where  is jobid job that you want to restore

For example:

.bvfs_lsdirs jobid=14534 path=
30269 0 0 0 A A A A A A A A A A A A A A .
30268 0 0 0 A A A A A A A A A A A A A A /

Thanks in advance for sharing the result.

Best regards,
Marcin Haba (gani)

 ___
> 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] Baculum GUI question

2020-10-01 Thread Marcin Haba
Hello Deepak,

On Thu, 1 Oct 2020 at 09:45, deepak rohilla  wrote:
>
> Dear  Marcin Haba,
>
> Thank you very much for the information shared by you.
>
> >So far using one administrator account it isn't possible to see the
> >status of backup jobs from many API hosts on the same interface.
> Did you mean we can achieve this by having more than one administrator account
> or if that is also not possible?

Yes, it is possible from version 9.6.5.

> Just want to clarify a bit more from your previous mail:
> >For getting the Catalog and Bconsole access from many API
> >hosts in one Baculum Web interface you need to use at least one admin
> >account per one API host. You can assign API hosts to users that every
> >user after authentication can have access to his own API host with
> >Catalog and Bconsole resources. If on assigned API hosts is enabled
> >also configuration and remote actions, they become available for those
> >users as well.
> When we will be having a separate admin account for each baculam API on 
> Baclumal web.
> And, if we enable configuration and remote actions on each baculam API, we 
> will be able to
> see backup status(Bconsole and Catalog) of all such baculam API on a single 
> user(administrator) dashboard?

No. These admin accounts, that I mentioned, are to assign API hosts
for them. Assuming that you have one Baculum Web and three API hosts
that share Catalog and Bconsole resources then the dependency can look
like below:

admin user 1 => Baculum Web 1 => Baculum API 1
admin user 2 => Baculum Web 1 => Baculum API 2
admin user 3 => Baculum Web 1 => Baculum API 3

but not like this:

 | Baculum API 1
  admin user => Baculum Web 1 => | Baculum API 2
 | Baculum API 3


The second scheme above works for configuration and remote actions but
not for Catalog and Bconsole.

I hope now it is easier to understand :-)

Maybe you can install Baculum to try. If we see what we are talking
about, it is always easier to understand.

Best regards,
Marcin Haba (gani)

> R's
> Deepak
>
>
> On Thu, 1 Oct 2020 at 10:33, Marcin Haba  wrote:
>>
>> Hello Deepak,
>>
>> So far using one administrator account it isn't possible to see the
>> status of backup jobs from many API hosts on the same interface.
>> Backup status is related to Bconsole and Catalog access that requires
>> one admin account per one API host.
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Thu, 1 Oct 2020 at 06:53, deepak rohilla  
>> wrote:
>> >
>> > Dear  Marcin Haba,
>> >
>> > Thank you very much for your prompt response and sharing valuable 
>> > information.
>> >
>> > Regarding configuration now things are pretty much clear to me, but I am 
>> > still not clear about displaying information from multiple baclula servers 
>> > via baculum API integration with Baculum Web.
>> >
>> > If I simply ask, can I be able to see the status of backup jobs from two 
>> > or more  bacula servers(Baculum API) on the dashboard of Baculum Web(with 
>> > administrator account)? As my requirement is to check the status of backup 
>> > jobs from 5 bacula servers of different sites in a collective way on the 
>> > Baculum GUI dashboard.
>> >
>> > R's
>> > Deepak
>> >
>> >
>> >
>> >
>> > R's
>> > Deepak
>> >
>> >
>> > On Thu, 1 Oct 2020 at 00:12, Marcin Haba  wrote:
>> >>
>> >> Hello Deepak,
>> >>
>> >> Baculum API can be configured to provide access to different Bacula
>> >> resources: Catalog, Bconsole, configuration and remote actions (as
>> >> component start/stop/restart). To manage the configuration from many
>> >> API hosts and to remote actions you can do it from one administrator
>> >> account. For getting the Catalog and Bconsole access from many API
>> >> hosts in one Baculum Web interface you need to use at least one admin
>> >> account per one API host. You can assign API hosts to users that every
>> >> user after authentication can have access to his own API host with
>> >> Catalog and Bconsole resources. If on assigned API hosts is enabled
>> >> also configuration and remote actions, they become available for those
>> >> users as well.
>> >>
>> >> By the way, for the next minor Baculum release there have been
>> >> prepared improvements in splitting API resources between users and
>> >> restricted user access. This version should be available soon. It will
>> >> be same independent Baculum release.
>> >>
>> >> Best regards,
>> >> Marcin Haba (gani)
>> >>
>> >> On Wed, 30 Sep 2020 at 17:03, deepak rohilla  
>> >> wrote:
>> >> >
>> >> > Hi Team,
>> >> >
>> >> >
>> >> >
>> >> > I would like to take your help for one of my query related to Baculum 
>> >> > GUI.
>> >> >
>> >> >
>> >> >
>> >> > I was checking below link related to one of my query related to baculum 
>> >> > GUI.
>> >> >
>> >> > https://www.mail-archive.com/bacula-users@lists.sourceforge.net/msg69326.html
>> >> >
>> >> >
>> >> >
>> >> > I came to know that we will be able to configure/manage multiple 
>> >> > Baculum 

Re: [Bacula-users] Multiple messages for every copied job

2020-10-01 Thread djosip+news

On 2020-10-01 13:41, Martin Simmons wrote:


I think Josip wants a single email that combines the logs from the job 
that
reads the old volume (the Copy job) and the job that writes to the new 
volume

(the new Backup job).

This would be like the single email that you get for a normal backup 
job,

which combines messages from the FD (reading) with the SD (writing).


Exactly that. :-)

If you start a Copy job which starts additional Job that does the actual
work, and they are closely bound and they finish at the same time, why
would you get two e-mails where one would only contain few lines about
work done by the storage-daemon?

What is even worse, the job started by the Copy has the same subject
as the original Backup job that has been copied some time ago.

To me, it makes sense that everything related to the Copy job gets
sent in a single message. Right now it looks a bit off and it's hard
to filter those messages in e-mail clients.

--
Josip Deanovic


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


Re: [Bacula-users] Multiple messages for every copied job

2020-10-01 Thread djosip+news

On 2020-10-01 10:47, Radosław Korzeniewski wrote:

Hello,

I have an impression that you and I are talking about two totally
distinctive things, so to progress with our discussion all things
have to be cleared out.


It looks like it but not completely.
I hope it will be more clear after my answers to the questions below.

I am sorry for taking your time here but at least we will all learn
something. :-)



śr., 30 wrz 2020 o 14:04  napisał(a):

Storage daemon sends it to the Director which sends it to the user
after it combines the messages if it finds the corresponding Job IDs.



Yes, it is true to some extent.


Hm, I believe it happens in all cases.
In what case it wouldn't be true?

Here is an example of the only Messages resource in my Storage daemon
configuration and most people have the same configuration as it's
sound and even comes within the default configuration files:

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


And the bkp1-dir Director has its own Messages resource named
Standard (this is the default name and I chose to keep it) which
has the directives such as mailcommand, operatorcommand, mail,
operator, console, append and catalog defined.



The messages in the Catalog are not stored by the Storage daemon and
as far as I know, they are not used for anything else but for manual
browsing by some tools like BAT.



So, below is an example of the copied job log I have on hand:

2020-05-03 01:14:25 backup-dir JobId 167991: Start Backup JobId 167991,
Job=xxx.2020-05-03_01.00.00_30
2020-05-03 01:14:30 backup-dir JobId 167991: Using Device 
"File-Drive-01"

to write.
2020-05-03 01:14:30 backup-dir JobId 167991: Using Volume "vol2292" 
from

'Scratch' pool.
2020-05-03 01:14:30 backup-dir JobId 167991: Recycled volume "vol2292"
2020-05-03 01:14:35 backup-dir JobId 167991: Max Volume jobs=1 
exceeded.

Marking Volume "vol2292" as Used.
2020-05-03 01:14:35 backup-sd JobId 167991: Recycled volume "vol2292" 
on

File device "File-Drive-01" (/backup/volumes), all previous data lost.
2020-05-03 01:14:37 backup-fd JobId 167991: Backup "xxx" (vm-240) 
start.

2020-05-03 01:15:05 backup-fd JobId 167991: There are 2 disks.
2020-05-03 01:15:05 backup-fd JobId 167991: create snapshot name
xxx.2020-05-03_01.00.00_30 succeeded.
2020-05-03 01:28:16 backup-fd JobId 167991: Dump vmdk
6000C294-0861-4dda-579d-9c3578e287d2 succeeded.
2020-05-03 01:28:16 backup-fd JobId 167991: VDDK Transport "nbd" 
selected

2020-05-03 01:28:35 backup-fd JobId 167991: Dump vmdk
6000C29d-9771-8fc3-df55-61031caec345 succeeded.
2020-05-03 01:28:35 backup-fd JobId 167991: VDDK Transport "nbd" 
selected
2020-05-03 01:28:40 backup-dir JobId 167991: Bacula Enterprise 
backup-dir

12.0.1 (02Jul19):
  Build OS:   x86_64-redhat-linux-gnu-bacula-enterprise 
redhat

Enterprise release
  JobId:  167991
  Job:xxx.2020-05-03_01.00.00_30
  Backup Level:   Full
  Client: "xxx" 12.0.1 (02Jul19)
x86_64-redhat-linux-gnu-bacula-enterprise,redhat,Enterprise release
  FileSet:"xxx" 2018-11-17 01:00:00
  Pool:   "xxx" (From Job resource)
  Catalog:"xxx" (From Client resource)
  Storage:"backup-sd" (From Pool resource)
  Scheduled time: 03-May-2020 01:00:00
  Start time: 03-May-2020 01:14:35
  End time:   03-May-2020 01:28:40
  Elapsed time:   14 mins 5 secs
  Priority:   10
  FD Files Written:   8
  SD Files Written:   8
  FD Bytes Written:   17,544,329,232 (17.54 GB)
  SD Bytes Written:   17,544,331,241 (17.54 GB)
  Rate:   20762.5 KB/s
  Software Compression:   42.6% 1.7:1
  Comm Line Compression:  None
  Snapshot/VSS:   no
  Encryption: no
  Accurate:   yes
  Volume name(s): vol2292
  Volume Session Id:  507
  Volume Session Time:1587987580
  Last Volume Bytes:  17,559,722,646 (17.55 GB)
  Non-fatal FD errors:0
  SD Errors:  0
  FD termination status:  OK
  SD termination status:  OK
  Termination:Backup OK

2020-05-03 01:28:40 backup-sd JobId 167991: Sending spooled attrs to 
the

Director. Despooling 2,350 bytes ...
2020-05-03 01:28:40 backup-sd JobId 167991: Elapsed time=00:14:05, 
Transfer

rate=20.76 M Bytes/second
2020-05-03 01:28:40 backup-fd JobId 167991: BACKUP OK xxx (vm-240)
2020-05-03 01:28:40 backup-fd JobId 167991: Delete snapshot
xxx.2020-05-03_01.00.00_30 succeeded.
2020-10-01 09:35:21 backup-dir JobId 177827: Using Device
"Cloud-xxx-Drive-01" to write.
2020-10-01 09:35:22 backup-sd JobId 177827: Volume "cloud178569" 
previously

written, moving to end of data.
2020-10-01 09:35:22 backup-sd JobId 177827: Using S3 cloud driver 
Host=xxx

Bucket=bacula
2020-10-01 09:38:01 backup-sd JobId 177827: Elapsed time=00:02:39, 
Transfer

rate=110.3 M Bytes/second
2020-10-01 09:38:01 backup-sd JobId 177827: Cloud Upload transfers:

[Bacula-users] Baculum 9.6.5.1

2020-10-01 Thread Elias Pereira
Hello,

I updated my old version to 9.6.5.1, but now the recovery function doesn't
show job files. I verify this via webacula and the files are there.

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


Re: [Bacula-users] Multiple messages for every copied job

2020-10-01 Thread Martin Simmons
> On Thu, 1 Oct 2020 10:47:12 +0200, Radosław Korzeniewski said:
> 
> Hello,
> 
> I have an impression that you and I are talking about two totally
> distinctive things, so to progress with our discussion all things have to
> be cleared out.
> 
> śr., 30 wrz 2020 o 14:04  napisał(a):
> 
> > >> And indeed, messages in the second e-mail which correspond to the
> > >> original Job seems to be sent by the Storage daemon.
> > >
> > > It is technically impossible as SD does not store job termination
> > > status
> > > messages for the original job. So it cannot send it to the user. These
> > > messages are stored in the catalog and simply copied by the Director
> > > during
> > > copy job execution.
> >
> > Storage daemon sends it to the Director which sends it to the user
> > after it combines the messages if it finds the corresponding Job IDs.
> >
> 
> Yes, it is true to some extent.
> 
> 
> >
> > The messages in the Catalog are not stored by the Storage daemon and
> > as far as I know, they are not used for anything else but for manual
> > browsing by some tools like BAT.
> >
> >
> So, below is an example of the copied job log I have on hand:
> 
> 2020-05-03 01:14:25 backup-dir JobId 167991: Start Backup JobId 167991, 
> Job=xxx.2020-05-03_01.00.00_30
> 2020-05-03 01:14:30 backup-dir JobId 167991: Using Device "File-Drive-01" to 
> write.
> 2020-05-03 01:14:30 backup-dir JobId 167991: Using Volume "vol2292" from 
> 'Scratch' pool.
> 2020-05-03 01:14:30 backup-dir JobId 167991: Recycled volume "vol2292"
> 2020-05-03 01:14:35 backup-dir JobId 167991: Max Volume jobs=1 exceeded. 
> Marking Volume "vol2292" as Used.
> 2020-05-03 01:14:35 backup-sd JobId 167991: Recycled volume "vol2292" on File 
> device "File-Drive-01" (/backup/volumes), all previous data lost.
> 2020-05-03 01:14:37 backup-fd JobId 167991: Backup "xxx" (vm-240) start.
> 2020-05-03 01:15:05 backup-fd JobId 167991: There are 2 disks.
> 2020-05-03 01:15:05 backup-fd JobId 167991: create snapshot name 
> xxx.2020-05-03_01.00.00_30 succeeded.
> 2020-05-03 01:28:16 backup-fd JobId 167991: Dump vmdk 
> 6000C294-0861-4dda-579d-9c3578e287d2 succeeded.
> 2020-05-03 01:28:16 backup-fd JobId 167991: VDDK Transport "nbd" selected
> 2020-05-03 01:28:35 backup-fd JobId 167991: Dump vmdk 
> 6000C29d-9771-8fc3-df55-61031caec345 succeeded.
> 2020-05-03 01:28:35 backup-fd JobId 167991: VDDK Transport "nbd" selected
> 2020-05-03 01:28:40 backup-dir JobId 167991: Bacula Enterprise backup-dir 
> 12.0.1 (02Jul19):
>   Build OS:   x86_64-redhat-linux-gnu-bacula-enterprise redhat 
> Enterprise release
>   JobId:  167991
>   Job:xxx.2020-05-03_01.00.00_30
>   Backup Level:   Full
>   Client: "xxx" 12.0.1 (02Jul19) 
> x86_64-redhat-linux-gnu-bacula-enterprise,redhat,Enterprise release
>   FileSet:"xxx" 2018-11-17 01:00:00
>   Pool:   "xxx" (From Job resource)
>   Catalog:"xxx" (From Client resource)
>   Storage:"backup-sd" (From Pool resource)
>   Scheduled time: 03-May-2020 01:00:00
>   Start time: 03-May-2020 01:14:35
>   End time:   03-May-2020 01:28:40
>   Elapsed time:   14 mins 5 secs
>   Priority:   10
>   FD Files Written:   8
>   SD Files Written:   8
>   FD Bytes Written:   17,544,329,232 (17.54 GB)
>   SD Bytes Written:   17,544,331,241 (17.54 GB)
>   Rate:   20762.5 KB/s
>   Software Compression:   42.6% 1.7:1
>   Comm Line Compression:  None
>   Snapshot/VSS:   no
>   Encryption: no
>   Accurate:   yes
>   Volume name(s): vol2292
>   Volume Session Id:  507
>   Volume Session Time:1587987580
>   Last Volume Bytes:  17,559,722,646 (17.55 GB)
>   Non-fatal FD errors:0
>   SD Errors:  0
>   FD termination status:  OK
>   SD termination status:  OK
>   Termination:Backup OK
> 
> 2020-05-03 01:28:40 backup-sd JobId 167991: Sending spooled attrs to the 
> Director. Despooling 2,350 bytes ...
> 2020-05-03 01:28:40 backup-sd JobId 167991: Elapsed time=00:14:05, Transfer 
> rate=20.76 M Bytes/second
> 2020-05-03 01:28:40 backup-fd JobId 167991: BACKUP OK xxx (vm-240)
> 2020-05-03 01:28:40 backup-fd JobId 167991: Delete snapshot 
> xxx.2020-05-03_01.00.00_30 succeeded.
> 2020-10-01 09:35:21 backup-dir JobId 177827: Using Device 
> "Cloud-xxx-Drive-01" to write.
> 2020-10-01 09:35:22 backup-sd JobId 177827: Volume "cloud178569" previously 
> written, moving to end of data.
> 2020-10-01 09:35:22 backup-sd JobId 177827: Using S3 cloud driver Host=xxx 
> Bucket=bacula
> 2020-10-01 09:38:01 backup-sd JobId 177827: Elapsed time=00:02:39, Transfer 
> rate=110.3 M Bytes/second
> 2020-10-01 09:38:01 backup-sd JobId 177827: Cloud Upload transfers:
> 2020-10-01 09:38:04 backup-sd JobId 177827: cloud178569/part.6 state=done
> size=1.073 GB duration=71s
> 2020-10-01 09:39:55 

Re: [Bacula-users] Multiple messages for every copied job

2020-10-01 Thread Radosław Korzeniewski
Hello,

I have an impression that you and I are talking about two totally
distinctive things, so to progress with our discussion all things have to
be cleared out.

śr., 30 wrz 2020 o 14:04  napisał(a):

> >> And indeed, messages in the second e-mail which correspond to the
> >> original Job seems to be sent by the Storage daemon.
> >
> > It is technically impossible as SD does not store job termination
> > status
> > messages for the original job. So it cannot send it to the user. These
> > messages are stored in the catalog and simply copied by the Director
> > during
> > copy job execution.
>
> Storage daemon sends it to the Director which sends it to the user
> after it combines the messages if it finds the corresponding Job IDs.
>

Yes, it is true to some extent.


>
> The messages in the Catalog are not stored by the Storage daemon and
> as far as I know, they are not used for anything else but for manual
> browsing by some tools like BAT.
>
>
So, below is an example of the copied job log I have on hand:

2020-05-03 01:14:25 backup-dir JobId 167991: Start Backup JobId 167991,
Job=xxx.2020-05-03_01.00.00_30
2020-05-03 01:14:30 backup-dir JobId 167991: Using Device "File-Drive-01"
to write.
2020-05-03 01:14:30 backup-dir JobId 167991: Using Volume "vol2292" from
'Scratch' pool.
2020-05-03 01:14:30 backup-dir JobId 167991: Recycled volume "vol2292"
2020-05-03 01:14:35 backup-dir JobId 167991: Max Volume jobs=1 exceeded.
Marking Volume "vol2292" as Used.
2020-05-03 01:14:35 backup-sd JobId 167991: Recycled volume "vol2292" on
File device "File-Drive-01" (/backup/volumes), all previous data lost.
2020-05-03 01:14:37 backup-fd JobId 167991: Backup "xxx" (vm-240) start.
2020-05-03 01:15:05 backup-fd JobId 167991: There are 2 disks.
2020-05-03 01:15:05 backup-fd JobId 167991: create snapshot name
xxx.2020-05-03_01.00.00_30 succeeded.
2020-05-03 01:28:16 backup-fd JobId 167991: Dump vmdk
6000C294-0861-4dda-579d-9c3578e287d2 succeeded.
2020-05-03 01:28:16 backup-fd JobId 167991: VDDK Transport "nbd" selected
2020-05-03 01:28:35 backup-fd JobId 167991: Dump vmdk
6000C29d-9771-8fc3-df55-61031caec345 succeeded.
2020-05-03 01:28:35 backup-fd JobId 167991: VDDK Transport "nbd" selected
2020-05-03 01:28:40 backup-dir JobId 167991: Bacula Enterprise backup-dir
12.0.1 (02Jul19):
  Build OS:   x86_64-redhat-linux-gnu-bacula-enterprise redhat
Enterprise release
  JobId:  167991
  Job:xxx.2020-05-03_01.00.00_30
  Backup Level:   Full
  Client: "xxx" 12.0.1 (02Jul19)
x86_64-redhat-linux-gnu-bacula-enterprise,redhat,Enterprise release
  FileSet:"xxx" 2018-11-17 01:00:00
  Pool:   "xxx" (From Job resource)
  Catalog:"xxx" (From Client resource)
  Storage:"backup-sd" (From Pool resource)
  Scheduled time: 03-May-2020 01:00:00
  Start time: 03-May-2020 01:14:35
  End time:   03-May-2020 01:28:40
  Elapsed time:   14 mins 5 secs
  Priority:   10
  FD Files Written:   8
  SD Files Written:   8
  FD Bytes Written:   17,544,329,232 (17.54 GB)
  SD Bytes Written:   17,544,331,241 (17.54 GB)
  Rate:   20762.5 KB/s
  Software Compression:   42.6% 1.7:1
  Comm Line Compression:  None
  Snapshot/VSS:   no
  Encryption: no
  Accurate:   yes
  Volume name(s): vol2292
  Volume Session Id:  507
  Volume Session Time:1587987580
  Last Volume Bytes:  17,559,722,646 (17.55 GB)
  Non-fatal FD errors:0
  SD Errors:  0
  FD termination status:  OK
  SD termination status:  OK
  Termination:Backup OK

2020-05-03 01:28:40 backup-sd JobId 167991: Sending spooled attrs to the
Director. Despooling 2,350 bytes ...
2020-05-03 01:28:40 backup-sd JobId 167991: Elapsed time=00:14:05, Transfer
rate=20.76 M Bytes/second
2020-05-03 01:28:40 backup-fd JobId 167991: BACKUP OK xxx (vm-240)
2020-05-03 01:28:40 backup-fd JobId 167991: Delete snapshot
xxx.2020-05-03_01.00.00_30 succeeded.
2020-10-01 09:35:21 backup-dir JobId 177827: Using Device
"Cloud-xxx-Drive-01" to write.
2020-10-01 09:35:22 backup-sd JobId 177827: Volume "cloud178569" previously
written, moving to end of data.
2020-10-01 09:35:22 backup-sd JobId 177827: Using S3 cloud driver Host=xxx
Bucket=bacula
2020-10-01 09:38:01 backup-sd JobId 177827: Elapsed time=00:02:39, Transfer
rate=110.3 M Bytes/second
2020-10-01 09:38:01 backup-sd JobId 177827: Cloud Upload transfers:
2020-10-01 09:38:04 backup-sd JobId 177827: cloud178569/part.6
state=donesize=1.073 GB duration=71s
2020-10-01 09:39:55 backup-sd JobId 177827: cloud178569/part.7
state=donesize=1.073 GB duration=72s
2020-10-01 09:41:18 backup-sd JobId 177827: cloud178569/part.8
state=donesize=1.073 GB duration=72s
2020-10-01 09:42:46 backup-sd JobId 177827: cloud178569/part.9
state=donesize=1.073 GB duration=71s
2020-10-01 09:43:57 

Re: [Bacula-users] Baculum GUI question

2020-10-01 Thread deepak rohilla
Dear  Marcin Haba,

Thank you very much for the information shared by you.

>So far using one administrator account it isn't possible to see the
>status of backup jobs from many API hosts on the same interface.
Did you mean we can achieve this by having more than one administrator
account
or if that is also not possible?

*Just want to clarify a bit more from your previous mail:*
>For getting the Catalog and Bconsole access from many API
>hosts in one Baculum Web interface you need to use at least one admin
>account per one API host. You can assign API hosts to users that every
>user after authentication can have access to his own API host with
>Catalog and Bconsole resources. If on assigned API hosts is enabled
>also configuration and remote actions, they become available for those
>users as well.
When we will be having a separate admin account for each baculam API on
Baclumal web.
And, if we enable configuration and remote actions on each baculam API, we
will be able to
see backup status(Bconsole and Catalog) of all such baculam API on a single
user(administrator) dashboard?

R's
Deepak


On Thu, 1 Oct 2020 at 10:33, Marcin Haba  wrote:

> Hello Deepak,
>
> So far using one administrator account it isn't possible to see the
> status of backup jobs from many API hosts on the same interface.
> Backup status is related to Bconsole and Catalog access that requires
> one admin account per one API host.
>
> Best regards,
> Marcin Haba (gani)
>
> On Thu, 1 Oct 2020 at 06:53, deepak rohilla 
> wrote:
> >
> > Dear  Marcin Haba,
> >
> > Thank you very much for your prompt response and sharing valuable
> information.
> >
> > Regarding configuration now things are pretty much clear to me, but I am
> still not clear about displaying information from multiple baclula servers
> via baculum API integration with Baculum Web.
> >
> > If I simply ask, can I be able to see the status of backup jobs from two
> or more  bacula servers(Baculum API) on the dashboard of Baculum Web(with
> administrator account)? As my requirement is to check the status of backup
> jobs from 5 bacula servers of different sites in a collective way on the
> Baculum GUI dashboard.
> >
> > R's
> > Deepak
> >
> >
> >
> >
> > R's
> > Deepak
> >
> >
> > On Thu, 1 Oct 2020 at 00:12, Marcin Haba  wrote:
> >>
> >> Hello Deepak,
> >>
> >> Baculum API can be configured to provide access to different Bacula
> >> resources: Catalog, Bconsole, configuration and remote actions (as
> >> component start/stop/restart). To manage the configuration from many
> >> API hosts and to remote actions you can do it from one administrator
> >> account. For getting the Catalog and Bconsole access from many API
> >> hosts in one Baculum Web interface you need to use at least one admin
> >> account per one API host. You can assign API hosts to users that every
> >> user after authentication can have access to his own API host with
> >> Catalog and Bconsole resources. If on assigned API hosts is enabled
> >> also configuration and remote actions, they become available for those
> >> users as well.
> >>
> >> By the way, for the next minor Baculum release there have been
> >> prepared improvements in splitting API resources between users and
> >> restricted user access. This version should be available soon. It will
> >> be same independent Baculum release.
> >>
> >> Best regards,
> >> Marcin Haba (gani)
> >>
> >> On Wed, 30 Sep 2020 at 17:03, deepak rohilla 
> wrote:
> >> >
> >> > Hi Team,
> >> >
> >> >
> >> >
> >> > I would like to take your help for one of my query related to Baculum
> GUI.
> >> >
> >> >
> >> >
> >> > I was checking below link related to one of my query related to
> baculum GUI.
> >> >
> >> >
> https://www.mail-archive.com/bacula-users@lists.sourceforge.net/msg69326.html
> >> >
> >> >
> >> >
> >> > I came to know that we will be able to configure/manage multiple
> Baculum API with single Baculum Web.
> >> >
> >> > Now my main question/doubt is that if it possible to view data from
> all Baculum API through administrator account in its dashboard?
> >> >
> >> >
> >> >
> >> > Very thanks in advance for your work and support.
> >> >
> >> >
> >> >
> >> > R’s
> >> >
> >> > Deepak
> >> >
> >> > ___
> >> > 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

Re: [Bacula-users] 5th and 6th week of the month

2020-10-01 Thread djosip+news
Apologies Kern, I have responded directly to your e-mail instead
of the mailing list. 


On 2020-09-28 15:05, Kern Sibbald wrote:
> Hello,
> 
> You have to look at the problem from a slightly different point of 
> view.
> 
> The filters or specifiers 1st, ... 6th simply say that if the
> current day of the year falls on the Nth week of a particular
> month then the Job will run, otherwise, that particular run
> directive will be disregarded.

Yes, but for me the definition of the "1st" week of the month was
unclear and I used the definition of the week which says:
"A week starts with Monday and ends with Sunday.".

> A week is defined as Monday through Sunday.  This is an arbitrary
> definition that is fixed in Bacula.  That is 1st applies to any day
> that falls in the 1st week of a month.  Note: not all weeks have
> a Monday or a Tuesday or any other day (see below for a
> month that has only Sunday in the first week).  The 1st week may
> only be a Sunday if the first day of a given month is on Sunday.
> In that case the following day (Monday) will be in the 2nd week of the
> month.

Excellent. That answers my questions and doubts about week of the month.
Thank you very much.

> With that logic, it turns out that it is possible to have a month
> that has at least one day in each of 6 separate weeks.

Yes, the November of 2020 is the example of such month where the
first day of the month will be Sunday and the last day of the month
will be Monday and therefore November of 2020 will have 6 weeks.

Thank you for the clarification.

> Take as an example a 31 day month where the first day of the
> month falls on a Sunday.  In that case, the 30th and 31st days
> of the month will fall on Monday and Tuesday in the 6th week
> of that month thus the need for 6th.

Yes, March of the 2020 would match your example.
I understand the logic now.
What I needed was the logic which was used behind that and I failed
to find it in the documentation as well as in the mailing list archives.


Regards!

-- 
Josip Deanovic


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