Bacula-users

[Bacula-users] extract/restore from backup-file using bextract

2010-06-30 17:22:30
Subject: [Bacula-users] extract/restore from backup-file using bextract
From: crazyzed <bacula-forum AT backupcentral DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 30 Jun 2010 12:24:00 -0400
Hello I'm new to this forum and I really need some help with bacula.

I have a home server (gentoo linux) with all of baculas components installed 
on, backup is done on "/boot" and "/" partitions on the server and stored as a 
file on another HD. There is only 1 backup-file which contains only the latest 
full backup. I use mysql as database!

I really don't know much about bacula, I followed a howto to get it setup over 
a year ago and once it was running I kind of forgot all about baculas config 
and such.

Now I have managed to remove a whole bunch of files from the server and it's no 
longer possible to boot into linux :(

I have booted a LiveCD and managed to copy the backup-file to my desktop 
computer, and also what I think is the bootstrap-file?? a file located in 
/var/lib/bacula/t1000.bsr  (the server name is t1000).

Now basically what I want to do is: from my desktop computer extract ALL files 
from the backup-file to a temporary location /tmp/t1000 

The backup-file "t1000Vol0001" is modified "May 31 2010"
and the ?bootstrap-file? "t1000.bsr" is modified "Jul 7 2009"
My question now is if this is correct? Is the bootstrap-file created once then 
left alone or should it change with every backup?

I should say at this point that all config files for bacula was removed by my 
mistake so I can't see how things were setup. The config files, of course, is 
included in the backup-file though!

Now to the possibility to extract files, can this be done from my situation?

On my desktop computer in /tmp I have placed both "t1000Vol0001" and 
"t1000.bsr" and created a folder /tmp/t1000 to were I'd like to place the 
extracted files. I have installed bacula (not changing any setup),
and tried to extract files with "bextract" first like this:

bextract -v -b t1000.bsr FileStorage /tmp/t1000
bextract&#58; butil.c&#58;281 Using device&#58; "FileStorage" for reading.
30-jun 14&#58;30 bextract JobId 0&#58; Ready to read from volume "t1000Vol0001" 
on device "FileStorage" &#40;/tmp&#41;.
30-jun 14&#58;30 bextract JobId 0&#58; Forward spacing Volume "t1000Vol0001" to 
file&#58;block 0&#58;195.
0 files restored.

No files were restored! Then I tried without the bootstrap:

bextract -v -V t1000Vol0001 FileStorage /tmp/t1000
bextract&#58; butil.c&#58;281 Using device&#58; "FileStorage" for reading.
30-jun 14&#58;38 bextract JobId 0&#58; Ready to read from volume "t1000Vol0001" 
on device "FileStorage" &#40;/tmp&#41;.
bextract JobId 0&#58; -rw-r--r--&nbsp; &nbsp;1 root&nbsp; &nbsp; 
&nbsp;root&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 77 2009-03-04 
18&#58;48&#58;21&nbsp; /tmp/t1000/root/crons.cron

And this never seem to stop, bextract is using the CPU at 100% but the only 
thing showing up in /tmp/t1000 is root/crons.cron and the file is empty! It has 
been working like this for a couple of hours now.

"t1000.bsr" looks like this:

# 07-jul-2009 23&#58;21&#58;35 - t1000Job.2009-07-07_23.02.10 - Full
Volume="t1000Vol0001"
MediaType="File"
VolSessionId=11
VolSessionTime=1244397210
VolFile=0-0
VolBlock=195-999935621
FileIndex=1-187910
Volume="t1000Vol0001"
MediaType="File"
VolSessionId=11
VolSessionTime=1244397210
VolFile=0-0
VolBlock=999935622-1905842238
FileIndex=187910-317000

Please help my guys! And remember that I don't know much about bacula when 
explaining.

+----------------------------------------------------------------------
|This was sent by crazyzed AT hotmail DOT com via Backup Central.
|Forward SPAM to abuse AT backupcentral DOT com.
+----------------------------------------------------------------------



------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>
  • [Bacula-users] extract/restore from backup-file using bextract, crazyzed <=