how to restore jobid purged

75 views
Skip to first unread message

itfmfe...@gmail.com

unread,
Dec 4, 2016, 7:27:00 PM12/4/16
to bareos-users
when restore jobid 1111 the message show:


For one or more of the JobIds selected, no files were found,
so file selection is not possible.
Most likely your retention policy pruned the files.

its possible only restore the total volume, not the jobid, how can I do reinsert of joid in catalog?

Please help-me, breaking my head. Thank's.

Bruno Friedmann

unread,
Dec 5, 2016, 1:36:16 AM12/5/16
to bareos...@googlegroups.com
bscan (check manual for the usage) the volume will allow to reinsert files
records in the db.


--

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.8.11-1-default x86_64 GNU/Linux, nvidia: 375.20
Qt: 5.7.0, KDE Frameworks: 5.28.0, Plasma: 5.8.4, kmail2 5.3.3 (QtWebEngine)

Fabio ferreira

unread,
Dec 5, 2016, 11:41:35 AM12/5/16
to Bruno Friedmann, bareos...@googlegroups.com
Thanks' Bruno,

So, use bscan with sintax below:
bscan -s -u user -n database -P password -m -c /opt/bareos/bareos-sd.conf -v -V tape01 /dev/nst0 -t 5432 -B postgresql -d 03 2>&1 >> /home/log-BSCAN &

Has been follow of the error:

bscan: butil.c:271-0 Using device: "/dev/nst0" for reading.
05-Dec 09:11 bscan JobId 0: No slot defined in catalog (slot=0) for Volume "tape-01" on "LTO5" (/dev/nst0).
05-Dec 09:11 bscan JobId 0: Cartridge change or "update slots" may be required.
05-Dec 09:11 bscan JobId 0: 3301 Issuing autochanger "loaded? drive 0" command.
05-Dec 09:11 bscan JobId 0: 3302 Autochanger "loaded? drive 0", result is Slot 6.
05-Dec 09:11 bscan JobId 0: Ready to read from volume "tape-01" on device "LTO5" (/dev/nst0).
bscan: bscan.c:337-0 Using Database: database, User: user
bscan: bscan.c:529-0 Pool record for Scratch found in DB.
bscan: bscan.c:543-0 Pool type "Backup" is OK.
bscan: bscan.c:1132-0 Created Media record for Volume: tape-01
bscan: bscan.c:574-0 Media type "LTO-5" is OK.
bscan: bscan.c:587-0 VOL_LABEL: OK for Volume: tape-01
bscan: bscan.c:767-0 Could not find Job for SessId=10 SessTime=1466856432 record.
bscan: bscan.c:767-0 Could not find Job for SessId=12 SessTime=1466856432 record.
bscan: bscan.c:767-0 Could not find Job for SessId=5 SessTime=1466856432 record.
bscan: bscan.c:767-0 Could not find Job for SessId=4 SessTime=1466856432 record.
bscan: bscan.c:767-0 Could not find Job for SessId=10 SessTime=1466856432 record.
bscan: bscan.c:767-0 Could not find Job for SessId=12 SessTime=1466856432 record.
bscan: bscan.c:767-0 Could not find Job for SessId=5 SessTime=1466856432 record.
bscan: bscan.c:767-0 Could not find Job for SessId=4 SessTime=1466856432 record.
bscan: bscan.c:767-0 Could not find Job for SessId=10 SessTime=1466856432 record.
bscan: bscan.c:767-0 Could not find Job for SessId=12 SessTime=1466856432 record.
bscan: bscan.c:767-0 Could not find Job for SessId=5 SessTime=1466856432 record.
bscan: bscan.c:767-0 Could not find Job for SessId=4 SessTime=1466856432 record.
bscan: bscan.c:767-0 Could not find Job for SessId=10 SessTime=1466856432 record.
bscan: bscan.c:767-0 Could not find Job for SessId=12 SessTime=1466856432 record.
bscan: bscan.c:767-0 Could not find Job for SessId=5 SessTime=1466856432 record.
bscan: bscan.c:767-0 Could not find Job for SessId=4 SessTime=1466856432 record.

Not find resolution in the manual about bscan, you could give me other sugestion, please...

Fabio Ferreira
(14) 99149-7227

--
You received this message because you are subscribed to a topic in the Google Groups "bareos-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bareos-users/m7Hp3AAxE9Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bareos-users+unsubscribe@googlegroups.com.
To post to this group, send email to bareos...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Stefan Klatt

unread,
Dec 9, 2016, 8:07:17 PM12/9/16
to bareos...@googlegroups.com
Hi Fabio,

could you try additionally the option "-s"?

Regards

Stefan
> <mailto:friedma...@gmail.com>>:
>
> On dimanche, 4 décembre 2016 16.27:00 h CET itfmfe...@gmail.com
> <mailto:itfmfe...@gmail.com> wrote:
> > when restore jobid 1111 the message show:
> >
> >
> > For one or more of the JobIds selected, no files were found,
> > so file selection is not possible.
> > Most likely your retention policy pruned the files.
> >
> > its possible only restore the total volume, not the jobid, how
> can I do
> > reinsert of joid in catalog?
> >
> > Please help-me, breaking my head. Thank's.
>
> bscan (check manual for the usage) the volume will allow to
> reinsert files
> records in the db.
>
>
> --
>
> Bruno Friedmann
> Ioda-Net Sàrl www.ioda-net.ch <http://www.ioda-net.ch>
> Bareos Partner, openSUSE Member, fsfe fellowship
> GPG KEY : D5C9B751C4653227
> irc: tigerfoot
>
> openSUSE Tumbleweed
> Linux 4.8.11-1-default x86_64 GNU/Linux, nvidia: 375.20
> Qt: 5.7.0, KDE Frameworks: 5.28.0, Plasma: 5.8.4, kmail2 5.3.3
> (QtWebEngine)
>
> --
> You received this message because you are subscribed to a topic in
> the Google Groups "bareos-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/bareos-users/m7Hp3AAxE9Q/unsubscribe
> <https://groups.google.com/d/topic/bareos-users/m7Hp3AAxE9Q/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email
> to bareos-users...@googlegroups.com
> <mailto:bareos-users%2Bunsu...@googlegroups.com>.
> To post to this group, send email to bareos...@googlegroups.com
> <mailto:bareos...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
> --
> 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
> <mailto:bareos-users...@googlegroups.com>.
> To post to this group, send email to bareos...@googlegroups.com
> <mailto:bareos...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

--
*CaC, Computer and Communication*
Inhaber Stefan Klatt
End-2-End Senior Network Consultant
Triftstrasse 9
60528 Frankfurt
Germany
USt-IdNr.: DE260461592

Tel.: +49-(0)172-6807809
Tel.: +49-(0)69-67808-900
Fax: +49-(0)69-67808-837
Email: stefan...@cac-netzwerk.de
Profil: http://www.cac-netzwerk.de/profil

Stefan Klatt

unread,
Dec 9, 2016, 8:49:55 PM12/9/16
to bareos...@googlegroups.com
Hi Fabio,

I found this errors too (with using the option "-s") if I scan a volume
which is not the first volume and has a part of a backup at the beginning.

Regards

Stefan

Stefan Klatt

unread,
Dec 9, 2016, 9:41:14 PM12/9/16
to bareos...@googlegroups.com
Hi Fabio,

I didn't got bscan running with the new directory structure of 16.2
(probabaly it's my fault?).
If I copy all parts together like the old configuration it works.

Regards

Stefan
Reply all
Reply to author
Forward
0 new messages