Discussion:
[bareos-users] list all the files from a job
Chris Imm
2018-07-26 07:21:38 UTC
Permalink
Hi,

I would need to list all the files in a job.
According to the documentation this is perfectly possible:
list files job=<job-name>

However, if I execute this command, the console returns this message:
jobid not found in db, access to job or client denied by ACL, or client not found in db

Do you have any idea how to fix this problem ?

Thanks
--
You received this message because you are subscribed to the Google Groups "bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users+***@googlegroups.com.
To post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Damiano Verzulli
2018-07-26 13:54:16 UTC
Permalink
Post by Chris Imm
Hi,
I would need to list all the files in a job.
list files job=<job-name>
I'm not sure about what exactly such a command would return, but I confirm
it's mentioned in paragraph 15.25 of the official BareOS manual
<http://doc.bareos.org/master/html/bareos-manual-main-reference.html>. This
is what I read there, now:




I'm skeptical about the expected behaviour, 'cause the files processed by a
single "Job" could change from one run to another (due to files "added" or
"removed" on the underlying filyesystem, between two executions of the same
job).
Post by Chris Imm
jobid not found in db, access to job or client denied by ACL, or client not found in db
I tried with several version, always with same result.


* *list files job=disaster-DASTA jobid not found in db, access to job or
client denied by ACL, or client not found in db*

I also noted that by using an explicitely wrong keyword, I got the same
result:


**list files jobdd=1901jobid not found in db, access to job or client
denied by ACL, or client not found in db*

I also noted that when performing a "jobid=" list, like the following:

**list files jobid=1901*

everything works fine and (by enabling query-logging on the underlying DB)
I see the following query launched by BareOS:

*SELECT
VolSessionId,VolSessionTime,PoolId,StartTime,EndTime,JobFiles,JobBytes,JobTDate,Job,JobStatus,Type,Level,ClientId,Name,PriorJobId,RealEndTime,JobId,FileSetId,SchedTime,RealEndTime,ReadBytes,HasBase,PurgedFiles
FROM Job WHERE JobId=1901*

Conversely, when launching the "job=" or "jobdd=" command, I see **NO**
query run by BareOS.
Post by Chris Imm
Do you have any idea how to fix this problem ?
Based on the above, it looks to me that the "job=<job-name>" option, is
currently not implemented.

Am I wrong?

Bye,
DV

P.S.: I made tests, up to 17.2.4
--
You received this message because you are subscribed to the Google Groups "bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users+***@googlegroups.com.
To post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Chris IMM
2018-07-26 14:07:20 UTC
Permalink
Hello, thank you for your reply,
Based on the above, it looks to me that the "job=<job-name>" option, is currently not implemented.
I also think that this function was not implemented (yet?).

Anyway I bypassed the problem with a script that retrieved the list of previous jobs and included them an exclude-file list.

My initial need was to ignore evry files saved which was later modified.

thanks

ps : i'am also in 17.2.4
--
You received this message because you are subscribed to the Google Groups "bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users+***@googlegroups.com.
To post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Bruno Friedmann
2018-07-27 19:29:09 UTC
Permalink
Post by Chris IMM
Hello, thank you for your reply,
Post by Damiano Verzulli
Based on the above, it looks to me that the "job=<job-name>" option, is
currently not implemented.
I also think that this function was not implemented (yet?).
Anyway I bypassed the problem with a script that retrieved the list of
previous jobs and included them an exclude-file list.
My initial need was to ignore evry files saved which was later modified.
thanks
ps : i'am also in 17.2.4
Well it works as expected, don't forget a job is a definition a jobid is a job
that was done.

So if you have a job with id 4529
a simple command like this will serve your desire ;-)

list files job=Catalog jobid=4529
--
Bruno Friedmann
Ioda-Net Sàrl www.ioda-net.ch
Bareos Partner, openSUSE Member, fsfe fellowship
GPG KEY : D5C9B751C4653227
irc: tigerfoot

openSUSE Tumbleweed
Linux 4.16.9-1-default x86_64 GNU/Linux, nvidia: 390.59
Qt: 5.10.0, KDE Frameworks: 5.46.0, Plasma: 5.12.5, kmail2 5.8.1
--
You received this message because you are subscribed to the Google Groups "bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users+***@googlegroups.com.
To post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Damiano Verzulli
2018-07-28 22:00:44 UTC
Permalink
Post by Bruno Friedmann
[...]
So if you have a job with id 4529
a simple command like this will serve your desire ;-)
list files job=Catalog jobid=4529
Hi Bruno,

while I clearly see the reasoning of:

*# list files jobid=4529*

I can't figure out how the addition of *job=Catalog* change the behaviour
of the command.

I mean: when explicitely reporting the "*jobid*", I cannot see how I can
further "restrict" or "enlarge" the set of retrieved files (not only via
the "*job=*" option, but also via any other further options).

Can you (or others) spend few words on this?

Bye,
DV
--
You received this message because you are subscribed to the Google Groups "bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users+***@googlegroups.com.
To post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...