Discussion:
[bareos-users] How to use bscan on backup files, store on disk?
Brendan Legland
2018-08-24 08:44:19 UTC
Permalink
Hello,

I tried to follow the procedure of this site: http://www.bacula.org/5.1.x-manuals/de/utility/utility/Volume_Utility_Tools.html#SECTION00272000000000000000
title : Using bscan to Recreate a Catalog from a Volume

I wrote in the terminal :
bscan -V DATA-mois-0002 -v -s -c /etc/bareos/bareos-sd.d/storage/bareos-sd.conf /mnt/DISQUE1/DATA

the order to return :
bscan: butil.c:268-0 Could not find device "/mnt/DISQUE1/DATA" in config file /etc/bareos/bareos-sd.d/storage/bareos-sd.conf.
24-août 10:36 bscan JobId 0: Fatal error: butil.c:142 Cannot find device "/mnt/DISQUE1/DATA" in config file /etc/bareos/bareos-sd.d/storage/bareos-sd.conf.

conf of /etc/bareos/bareos-sd.d/storage/bareos-sd.conf :
Storage {
Name = bareos-sd
Maximum Concurrent Jobs = 20

# remove comment from "Plugin Directory" to load plugins from specified directory.
# if "Plugin Names" is defined, only the specified plugins will be loaded,
# otherwise all storage plugins (*-sd.so) from the "Plugin Directory".
#
# Plugin Directory = /usr/lib/bareos/plugins
# Plugin Names = ""
}


How to use bscan on backup files, store on disk?
--
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-08-27 06:13:30 UTC
Permalink
DATA is certainly your media when DISQUE1 look to be your media ?

if DATA is a subdirectory where you store your volumes, then try to add a final / to /mnt/DISQUE1/DATA/

Also it would certainly help if you try to read the bareos documentation available at
http://doc.bareos.org
Post by Brendan Legland
Hello,
http://www.bacula.org/5.1.x-manuals/de/utility/utility/Volume_Utility_Tools.html#SECTION00272000000000000000
title : Using bscan to Recreate a Catalog from a Volume
bscan -V DATA-mois-0002 -v -s -c
/etc/bareos/bareos-sd.d/storage/bareos-sd.conf /mnt/DISQUE1/DATA
bscan: butil.c:268-0 Could not find device "/mnt/DISQUE1/DATA" in
config file /etc/bareos/bareos-sd.d/storage/bareos-sd.conf.
24-août 10:36 bscan JobId 0: Fatal error: butil.c:142 Cannot find
device "/mnt/DISQUE1/DATA" in config file
/etc/bareos/bareos-sd.d/storage/bareos-sd.conf.
Storage {
Name = bareos-sd
Maximum Concurrent Jobs = 20
# remove comment from "Plugin Directory" to load plugins from specified directory.
# if "Plugin Names" is defined, only the specified plugins will be loaded,
# otherwise all storage plugins (*-sd.so) from the "Plugin Directory".
#
# Plugin Directory = /usr/lib/bareos/plugins
# Plugin Names = ""
}
How to use bscan on backup files, store on disk?
--
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
For more options, visit https://groups.google.com/d/optout.
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
--
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.
Brendan Legland
2018-08-27 09:10:19 UTC
Permalink
result :
#bscan -V DATA-mois-0002 -v -s -c /etc/bareos/bareos-sd.d/storage/bareos-sd.conf /mnt/DISQUE1/DATA/
bscan: butil.c:268-0 Could not find device "/mnt/DISQUE1/DATA/" in config file /etc/bareos/bareos-sd.d/storage/bareos-sd.conf.
27-août 09:39 bscan JobId 0: Fatal error: butil.c:142 Cannot find device "/mnt/DISQUE1/DATA/" in config file /etc/bareos/bareos-sd.d/storage/bareos-sd.conf.
No difference with or without / at the end.

the documentation does not make any changes to the error message:
http://doc.bareos.org/master/html/bareos-manual-main-reference.html#x1-552000C.3.4

see error : 27-août 11:08 bscan JobId 0: Fatal error: butil.c:142 Cannot find device "/mnt/DISQUE1/DATA/" in config file <NULL>.



--------------------------------------------------------------------
DATA is certainly your media when DISQUE1 look to be your media ?
if DATA is a subdirectory where you store your volumes, then try to add a final / to /mnt/DISQUE1/DATA/
Also it would certainly help if you try to read the bareos documentation available at
http://doc.bareos.org
--
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.
Brendan Legland
2018-09-18 08:23:29 UTC
Permalink
How to restore an unknown file in the catalog



"Bscan" allows to integrate a backup file deleted in error or from another server in the catalog of DATASELF. This integration is essential for disaster recovery.

Before launching "bscan", check the presence of your volume and that it is in the correct directory. If this is the case, copy your volume to the directory / mnt / disk0 / rep-data.

Write in your DATASELF terminal the syntax of the following command:

Syntax of the command:
#bscan -B postgresql -n bareos -u bareos -P '{Password}' -v -s -m -V {Name-Volume} {Device}

Replace "{Password}" with the password of the bareos user of the postgresql database.

Replace "{Name-Volume}" with the name of the volume you want to include in the catalog.

Replace "{Device}" with the absolute path of the directory containing the volume to be included in the catalog. The path must not end with "/".

-v: Verbose
-s: Synchronize with the catalog
-m: Update the volume information on the catalog.


example:
#bscan -B postgresql -n bareos -u bareos -P 'dbpassword' -v -s -m -V Data-0003 /mnt/disk0/rep-data
--
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...