how to restore files

72 views
Skip to first unread message

Ivan Mulhin

unread,
Nov 5, 2019, 2:43:30 AM11/5/19
to bareos-users
Hello, could you help us please, after our server was broken we have saved only a couple of files with backups, how to extract our files from bareos backup files without bareos
Thank you

Jörg Steffens

unread,
Nov 5, 2019, 4:56:27 AM11/5/19
to bareos...@googlegroups.com
On 05.11.19 at 08:43 wrote Ivan Mulhin:
> Hello, could you help us please, after our server was broken we have
> saved only a couple of files with backups, how to extract our files from
> bareos backup files without bareos

If you want to extract from Bareos Volume (files),
you can use the Bareos command line tools bls and bextract, see
https://docs.bareos.org/Appendix/BareosPrograms.html#bls


--
Jörg Steffens joerg.s...@bareos.com
Bareos GmbH & Co. KG Phone: +49 221 630693-91
http://www.bareos.com Fax: +49 221 630693-10

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Komplementär: Bareos Verwaltungs-GmbH
Geschäftsführer:
S. Dühr, M. Außendorf, Jörg Steffens, P. Storz

Ivan Mulhin

unread,
Nov 5, 2019, 6:06:34 AM11/5/19
to bareos-users
Could you help me with it, please, how to use bextract properly, I always receive errors while executing it



вторник, 5 ноября 2019 г., 13:56:27 UTC+4 пользователь Jörg Steffens написал:
On 05.11.19 at 08:43 wrote Ivan Mulhin:
> Hello, could you help us please, after our server was broken we have
> saved only a couple of files with backups, how to extract our files from
> bareos backup files without bareos

If you want to extract from Bareos Volume (files),
you can use the Bareos command line tools bls and bextract, see
https://docs.bareos.org/Appendix/BareosPrograms.html#bls


--
 Jörg Steffens                   joerg....@bareos.com

Brock Palen

unread,
Nov 5, 2019, 11:15:10 AM11/5/19
to Ivan Mulhin, bareos-users
Please provide how you are invoking it and the error. 

Sent from my iPhone
Brock Palen

On Nov 5, 2019, at 6:06 AM, Ivan Mulhin <ivanm...@gmail.com> wrote:


--
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 view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/35605143-d2a2-4ad1-aeef-1941535f3b82%40googlegroups.com.

Ivan Mulhin

unread,
Nov 6, 2019, 12:01:55 AM11/6/19
to bareos-users
It would be great if it is available to extract files without bare-os on the computer, but as I understand bextract still need bare-os, that's why I used it next way:

C:\Program Files\Bareos>bextract.exe -c "C:\ProgramData\Bareos\bareos-sd.d\dir\storage.conf" C:\temp\daily-back-0200 C:\temp
bextract: stored/butil.c:268-0 Could not find device "C:\temp" in config file C:\ProgramData\Bareos\bareos-sd.d\dir\storage.conf.
05-Nov 15:02 bextract JobId 0: Fatal error: stored/butil.c:142 Cannot find device "C:\temp" in config file C:\ProgramData\Bareos\bareos-sd.d\dir\storage.conf.

C:\Program Files\Bareos>bextract.exe -c "C:\ProgramData\Bareos\bareos-sd.d\dir\storage.conf" daily-back-0200 FileStorage
bextract: stored/butil.c:268-0 Could not find device "daily-back-0200" in config file C:\ProgramData\Bareos\bareos-sd.d\dir\storage.conf.
05-Nov 15:04 bextract JobId 0: Fatal error: stored/butil.c:142 Cannot find device "daily-back-0200" in config file C:\ProgramData\Bareos\bareos-sd.d\dir\storage.conf.

C:\Program Files\Bareos>bextract.exe -c "C:\ProgramData\Bareos\bareos-sd.d\dir\storage.conf" FileStorage C:\temp\daily-back-0200
bextract: stored/butil.c:273-0 Using device: "FileStorage" for reading.
06-Nov 08:59 bextract JobId 0: Fatal error: No volumes specified for reading. Job 0 canceled.

storage.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/lib64/bareos/plugins
  # Plugin Names = ""
}
Device {
  Name = FileStorage
  Media Type = File
#  Archive Device = /var/lib/bareos/storage
  Archive Device = C:\\temp
  LabelMedia = yes;                   # lets Bareos label unlabeled media
  Random Access = yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
  Description = "File device. A connecting Director must have the same Name and MediaType."
}


вторник, 5 ноября 2019 г., 11:43:30 UTC+4 пользователь Ivan Mulhin написал:

Oleg Volkov

unread,
Nov 6, 2019, 1:45:00 AM11/6/19
to bareos-users
Once I wrote DRP if my bareos server will dead.
It describes how to get working bareos server back using only media files.

Andreas Haase

unread,
Nov 6, 2019, 5:45:20 AM11/6/19
to Oleg Volkov, bareos-users
Hello,


Am 06.11.2019 um 07:45 schrieb Oleg Volkov <vol...@gmail.com>:

It describes how to get working bareos server back using only media files.

I think, that is quite a good documentation for disaster recovery. The only point I’d change, is the recommendation to completely delete the firewalld package. For someone reading your manual, who doesn’t know the consequences, that could be dangerous.

Regards,
Andreas

Ivan Mulhin

unread,
Nov 11, 2019, 1:28:06 AM11/11/19
to bareos-users
Thank you so much, Oleg, it was very helpfull.

среда, 6 ноября 2019 г., 10:45:00 UTC+4 пользователь Oleg Volkov написал:
Reply all
Reply to author
Forward
0 new messages