SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Experience with brestore.pl
Author Message
Post Experience with brestore.pl 
Still playing around. I managed to get brestore loading etc but I'm not sure
I'm doing it right. I have put brestore.pl and the brestore.glade file on my
Master (director) with the brestore.pl in my cgi-bin. When accessing it
through bweb it asks what I would like to open the file with so I used a local
copy (on a client) of brestore.pl abd set up the options there.

When I select jobs/restore brestore launches and can make connections to the
database etc but I can't find anything to restore? When I select a client and
pic a backup image and put soemthing like / in the location nothing shows up.

Here's my config:

DBD Chain: DBI:mysql:database=bacula;host=192.168.69.13;port=3306
Username: bacula
Pass: ******
GladeFile /etc/bacula/brestore.glade

Now these I know are working ... here's the "I'm not too sure part"

Under Bacula Connection:
BSR Destination String:
http://my.director.addy/bweb/cgi-bin/bconsole.pl (the cgi-bin where I have
bweb.pl and bconsole.pl on my master)

bconsole command: /usr/sbin/bconsole -n -c /etc/bacula/bconsole.conf

Default Restore Job: Restore (as defined in bacula-dir.conf)

Bweb URL:
http://my.director.addy/bweb/cgi-bin/bweb.pl
Mozilla path: /usr/bin/firefox

Anyone have any ideas?

Regards,
Lonny
--
"To mess up a Linux box, you need to work at it; to mess up your Windows box,
you just need to work ON it."

Post Experience with brestore.pl 
I'm not sure that Eric reads this list. I recommend that you either copy him
directly on bweb/brestore questions or copy the bacula-devel list.

On Saturday 17 March 2007 02:22, Lonny Selinger wrote:
Still playing around. I managed to get brestore loading etc but I'm not sure
I'm doing it right. I have put brestore.pl and the brestore.glade file on my
Master (director) with the brestore.pl in my cgi-bin. When accessing it
through bweb it asks what I would like to open the file with so I used a
local
copy (on a client) of brestore.pl abd set up the options there.

When I select jobs/restore brestore launches and can make connections to the
database etc but I can't find anything to restore? When I select a client
and
pic a backup image and put soemthing like / in the location nothing shows
up.


Here's my config:

DBD Chain: DBI:mysql:database=bacula;host=192.168.69.13;port=3306
Username: bacula
Pass: ******
GladeFile /etc/bacula/brestore.glade

Now these I know are working ... here's the "I'm not too sure part"

Under Bacula Connection:
BSR Destination String:
http://my.director.addy/bweb/cgi-bin/bconsole.pl (the cgi-bin where I have
bweb.pl and bconsole.pl on my master)

bconsole command: /usr/sbin/bconsole -n -c /etc/bacula/bconsole.conf

Default Restore Job: Restore (as defined in bacula-dir.conf)

Bweb URL:
http://my.director.addy/bweb/cgi-bin/bweb.pl
Mozilla path: /usr/bin/firefox

Anyone have any ideas?

Regards,
Lonny
--
"To mess up a Linux box, you need to work at it; to mess up your Windows
box,
you just need to work ON it."


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users < at > li...
https://lists.sourceforge.net/lists/listinfo/bacula-users


Post Experience with brestore.pl 
Hi,

Which version of brestore/bacula are you using ?

On Saturday 17 March 2007 02:22, Lonny Selinger wrote:
Still playing around. I managed to get brestore loading etc but I'm not
sure I'm doing it right. I have put brestore.pl and the brestore.glade
file on my Master (director) with the brestore.pl in my cgi-bin

brestore is not a part of bweb. This is a Gtk/Perl application, not a web
application.

First, you have to read brestore/INSTALL notes, and i think/hope it will be
more clear for you.

. When
accessing it through bweb it asks what I would like to open the file with
so I used a local copy (on a client) of brestore.pl abd set up the
options there.

It's better like this :)

When I select jobs/restore brestore launches and can make connections to
the database etc but I can't find anything to restore? When I select a
client and pic a backup image and put soemthing like / in the location
nothing shows up.

Could you run brestore in a terminal (like xterm or konsole) and see output ?
(You could also have messages in status bar)

The first time that you run brestore, it could be long to display files and
directories. Try an other job.

If you turn debug to on in preferences, you can try to execute SQL queries in
a terminal (mysql bacula) and see if you have results.

Here's my config:

DBD Chain: DBI:mysql:database=bacula;host=192.168.69.13;port=3306
Username: bacula
Pass: ******
GladeFile /etc/bacula/brestore.glade

Now these I know are working ... here's the "I'm not too sure part"

Under Bacula Connection:
BSR Destination String:
http://my.director.addy/bweb/cgi-bin/bconsole.pl (the cgi-bin where I
have bweb.pl and bconsole.pl on my master)

bconsole command: /usr/sbin/bconsole -n -c /etc/bacula/bconsole.conf

Default Restore Job: Restore (as defined in bacula-dir.conf)

Bweb URL:
http://my.director.addy/bweb/cgi-bin/bweb.pl
Mozilla path: /usr/bin/firefox

It sound good to me.

Bye

Anyone have any ideas?

-------------------------------------------------------

--
"I like when it comes by night and sucks the vital essence from
my ....computers."

Post Experience with brestore.pl 
Hi,

Hi Eric :)

Which version of brestore/bacula are you using ?

bacula-2.0.3 and got brestore from bacual-gui of the same version

On Saturday 17 March 2007 02:22, Lonny Selinger wrote:
Still playing around. I managed to get brestore loading etc but I'm not
sure I'm doing it right. I have put brestore.pl and the brestore.glade
file on my Master (director) with the brestore.pl in my cgi-bin

brestore is not a part of bweb. This is a Gtk/Perl application, not a web
application.

Indeed Wink I know this but I wasn't sure how the execution happened or how the
install actually took place.

First, you have to read brestore/INSTALL notes, and i think/hope it will be
more clear for you.

ALso what I was hoping for Smile ... I read the README but in the release I have
there is no INSTALL file :/

Here;s the directory listing:

# pwd && ls
/usr/local/src/bacula/bacula-gui-2.0.3/brestore
brestore.console_apps brestore.desktop.consolehelper brestore-fr.glade
brestore.pamd brestore.png README
brestore.desktop brestore.desktop.xsu brestore.glade
brestore.pl COPYING ReleaseNotes

. When
accessing it through bweb it asks what I would like to open the file with
so I used a local copy (on a client) of brestore.pl abd set up the
options there.

It's better like this :)

When I select jobs/restore brestore launches and can make connections to
the database etc but I can't find anything to restore? When I select a
client and pic a backup image and put soemthing like / in the location
nothing shows up.

Could you run brestore in a terminal (like xterm or konsole) and see output ?
(You could also have messages in status bar)

When I run it from a terminal I get the same thing. I can select a client, I
get a full list of backup images and if I put something like / in the
location field and hit enter, nothing happens. On the backend I see this:
ORDER BY 2,3 DESC ) As a
DBD::mysql::st execute failed: Every derived table must have its own alias at
./brestore.pl line 2463.
DBD::mysql::st fetchall_arrayref failed: fetch() without execute() at
./brestore.pl line 2464.
Bvfs::ls_dirs:2489 $VAR1 = [];
Bvfs::ls_files:2394 SELECT File.FilenameId, listfiles.id, listfiles.Name,
File.LStat, File.JobId
FROM
(SELECT Filename.Name, max(File.FileId) as id
FROM File, Filename
WHERE File.FilenameId = Filename.FilenameId
AND Filename.Name != ''
AND File.PathId IN (3)
AND File.JobId IN (25)
GROUP BY Filename.Name
ORDER BY Filename.Name) AS listfiles,
File
WHERE File.FileId = listfiles.id
Bvfs::ls_files:2395 SELECT File.FilenameId, listfiles.id, listfiles.Name,
File.LStat, File.JobId
FROM
(SELECT Filename.Name, max(File.FileId) as id
FROM File, Filename
WHERE File.FilenameId = Filename.FilenameId
AND Filename.Name != ''
AND File.PathId IN (3)
AND File.JobId IN (25)
GROUP BY Filename.Name
ORDER BY Filename.Name) AS listfiles,
File
WHERE File.FileId = listfiles.id
Bvfs::ls_files:2396 $VAR1 = [];
Bvfs::get_path:2352 Call with pathid = 3
Bvfs::get_path:2357 SELECT Path FROM Path WHERE PathId IN (?)
UNION
SELECT Path FROM brestore_missing_path WHERE PathId IN (?)

The first time that you run brestore, it could be long to display files and
directories. Try an other job.

If you turn debug to on in preferences, you can try to execute SQL queries in
a terminal (mysql bacula) and see if you have results.

Here's my config:

DBD Chain: DBI:mysql:database=bacula;host=192.168.69.13;port=3306
Username: bacula
Pass: ******
GladeFile /etc/bacula/brestore.glade

Now these I know are working ... here's the "I'm not too sure part"

Under Bacula Connection:
BSR Destination String:
http://my.director.addy/bweb/cgi-bin/bconsole.pl (the cgi-bin where I
have bweb.pl and bconsole.pl on my master)

bconsole command: /usr/sbin/bconsole -n -c /etc/bacula/bconsole.conf

Default Restore Job: Restore (as defined in bacula-dir.conf)

Bweb URL:
http://my.director.addy/bweb/cgi-bin/bweb.pl
Mozilla path: /usr/bin/firefox

It sound good to me.


Something else not being interpretted properly? It's like it's not
packing/assembling the query properly?

Thanks for the response!! :)

Lonny

Post Experience with brestore.pl 
Which version of brestore/bacula are you using ?

bacula-2.0.3 and got brestore from bacual-gui of the same version

On Saturday 17 March 2007 02:22, Lonny Selinger wrote:
Still playing around. I managed to get brestore loading etc but I'm
not sure I'm doing it right. I have put brestore.pl and the
brestore.glade file on my Master (director) with the brestore.pl in my
cgi-bin

brestore is not a part of bweb. This is a Gtk/Perl application, not a web
application.

Indeed Wink I know this but I wasn't sure how the execution happened or how
the install actually took place.

First, you have to read brestore/INSTALL notes, and i think/hope it will
be more clear for you.

ALso what I was hoping for Smile ... I read the README but in the release I
have there is no INSTALL file :/

Ok, it will be ok for 2.0.4 :)

you can get it at :

http://bacula.svn.sourceforge.net/viewvc/*checkout*/bacula/branches/Branch-2.0/gui/brestore/INSTALL?revision=4341

When I select jobs/restore brestore launches and can make connections
to the database etc but I can't find anything to restore? When I
select a client and pic a backup image and put soemthing like / in the
location nothing shows up.

Could you run brestore in a terminal (like xterm or konsole) and see
output ? (You could also have messages in status bar)

When I run it from a terminal I get the same thing. I can select a client,
I get a full list of backup images and if I put something like / in the
location field and hit enter, nothing happens. On the backend I see this:
ORDER BY 2,3 DESC ) As a
DBD::mysql::st execute failed: Every derived table must have its own alias
at ./brestore.pl line 2463.
DBD::mysql::st fetchall_arrayref failed: fetch() without execute() at
./brestore.pl line 2464.

i see, i will try to fix this shortly

Bye

Post Experience with brestore.pl 
You can try this version, it fixes some mysql broken stuff

http://bacula.svn.sourceforge.net/viewvc/*checkout*/bacula/trunk/gui/bresto=
re/brestore.pl?revision=3D4356

You have to cleanup your database

drop table brestore_missing_path;
drop table brestore_pathhierarchy;
drop table brestore_pathvisibility;
drop table brestore_knownjobid;

Thanks for your feedback

Bye

Le Dimanche 18 Mars 2007 00:26, Lonny Selinger a =E9crit=A0:
Hi,

Hi Eric :)

Which version of brestore/bacula are you using ?

bacula-2.0.3 and got brestore from bacual-gui of the same version

On Saturday 17 March 2007 02:22, Lonny Selinger wrote:
Still playing around. I managed to get brestore loading etc but I'm
not sure I'm doing it right. I have put brestore.pl and the
brestore.glade file on my Master (director) with the brestore.pl in =
my
cgi-bin

brestore is not a part of bweb. This is a Gtk/Perl application, not a w=
eb
application.

Indeed Wink I know this but I wasn't sure how the execution happened or how
the install actually took place.

First, you have to read brestore/INSTALL notes, and i think/hope it will
be more clear for you.

ALso what I was hoping for Smile ... I read the README but in the release I
have there is no INSTALL file :/

Here;s the directory listing:

# pwd && ls
/usr/local/src/bacula/bacula-gui-2.0.3/brestore
brestore.console_apps brestore.desktop.consolehelper brestore-fr.glade
brestore.pamd brestore.png README
brestore.desktop brestore.desktop.xsu brestore.glade
brestore.pl COPYING ReleaseNotes

. When
accessing it through bweb it asks what I would like to open the file
with so I used a local copy (on a client) of brestore.pl abd set up
the options there.

It's better like this :)

When I select jobs/restore brestore launches and can make connections
to the database etc but I can't find anything to restore? When I
select a client and pic a backup image and put soemthing like / in t=
he
location nothing shows up.

Could you run brestore in a terminal (like xterm or konsole) and see
output ? (You could also have messages in status bar)

When I run it from a terminal I get the same thing. I can select a client,
I get a full list of backup images and if I put something like / in the
location field and hit enter, nothing happens. On the backend I see this:
ORDER BY 2,3 DESC ) As a
DBD::mysql::st execute failed: Every derived table must have its own alias
at ./brestore.pl line 2463.
DBD::mysql::st fetchall_arrayref failed: fetch() without execute() at
./brestore.pl line 2464.
Bvfs::ls_dirs:2489 $VAR1 =3D [];
Bvfs::ls_files:2394 SELECT File.FilenameId, listfiles.id,
listfiles.Name, File.LStat, File.JobId
FROM
(SELECT Filename.Name, max(File.FileId) as id
FROM File, Filename
WHERE File.FilenameId =3D Filename.FilenameId
AND Filename.Name !=3D ''
AND File.PathId IN (3)
AND File.JobId IN (25)
GROUP BY Filename.Name
ORDER BY Filename.Name) AS listfiles,
File
WHERE File.FileId =3D listfiles.id
Bvfs::ls_files:2395 SELECT File.FilenameId, listfiles.id,
listfiles.Name, File.LStat, File.JobId
FROM
(SELECT Filename.Name, max(File.FileId) as id
FROM File, Filename
WHERE File.FilenameId =3D Filename.FilenameId
AND Filename.Name !=3D ''
AND File.PathId IN (3)
AND File.JobId IN (25)
GROUP BY Filename.Name
ORDER BY Filename.Name) AS listfiles,
File
WHERE File.FileId =3D listfiles.id
Bvfs::ls_files:2396 $VAR1 =3D [];
Bvfs::get_path:2352 Call with pathid =3D 3
Bvfs::get_path:2357 SELECT Path FROM Path WHERE PathId IN (?)
UNION
SELECT Path FROM brestore_missing_path WHERE PathId IN (?)

The first time that you run brestore, it could be long to display files
and directories. Try an other job.

If you turn debug to on in preferences, you can try to execute SQL
queries in a terminal (mysql bacula) and see if you have results.

Here's my config:

DBD Chain: DBI:mysql:database=3Dbacula;host=3D192.168.69.13;port=3D=
3306
Username: bacula
Pass: ******
GladeFile /etc/bacula/brestore.glade

Now these I know are working ... here's the "I'm not too sure part"

Under Bacula Connection:
BSR Destination String:
http://my.director.addy/bweb/cgi-bin/bconsole.pl (the cgi-bin where=
I
have bweb.pl and bconsole.pl on my master)

bconsole command: /usr/sbin/bconsole -n -c /etc/bacula/bconsole.conf

Default Restore Job: Restore (as defined in bacula-dir.conf)

Bweb URL:
http://my.director.addy/bweb/cgi-bin/bweb.pl
Mozilla path: /usr/bin/firefox

It sound good to me.

Something else not being interpretted properly? It's like it's not
packing/assembling the query properly?

Thanks for the response!! :)

Lonny

=2D-=20
"I like when it comes by night and sucks the vital essence from=20
my ....computers."

Post Experience with brestore.pl 
You can try this version, it fixes some mysql broken stuff

http://bacula.svn.sourceforge.net/viewvc/*checkout*/bacula/trunk/gui/brestore/brestore.pl?revision=4356

You have to cleanup your database

drop table brestore_missing_path;
drop table brestore_pathhierarchy;
drop table brestore_pathvisibility;
drop table brestore_knownjobid;

Grea thanks for the help ... I'll try this tonight and report anything I find!!

Thanks for your feedback

Thanks for all your work!! I dont mind doing restores from command line but I
have a few other people that would like to be able to do some restores and a
GUI is more than handy and very appreciated!! ;-)

Talk to you soon,
Lonny
--
"To mess up a Linux box, you need to work at it; to mess up your Windows box,
you just need to work ON it."

Post Experience with brestore.pl 
You can try this version, it fixes some mysql broken stuff

http://bacula.svn.sourceforge.net/viewvc/*checkout*/bacula/trunk/gui/brestore/brestore.pl?revision=4356

You have to cleanup your database

drop table brestore_missing_path;
drop table brestore_pathhierarchy;
drop table brestore_pathvisibility;
drop table brestore_knownjobid;

Thanks for your feedback

This seems to have done the trick! Smile everything looks like it's working now
Thanks!!

--
Lonny
--
"To mess up a Linux box, you need to work at it; to mess up your Windows box,
you just need to work ON it."

Post Experience with brestore.pl 
Eric,

One more strange anomaly ... when I select the file I want, and then pick the
revision I want, then I hit restore and it says "No File To Restore" ... here
is the command line output:

Bvfs::get_all_file_versions:2662 SELECT File.JobId, File.FileIndex,
File.Lstat,
File.Md5, Media.VolumeName, Media.InChanger
FROM File, Job, Client, JobMedia, Media
WHERE File.FilenameId = 3
AND File.PathId=3
AND File.JobId = Job.JobId
AND Job.ClientId = Client.ClientId
AND Job.JobId = JobMedia.JobId
AND File.FileIndex >= JobMedia.FirstIndex
AND File.FileIndex <= JobMedia.LastIndex
AND JobMedia.MediaId = Media.MediaId
AND Client.Name = 'amanda-fd'
Bvfs::get_all_file_versions:2664 SELECT File.JobId, File.FileIndex,
File.Lstat,
File.Md5, Media.VolumeName, Media.InChanger
FROM File, Job, Client, JobMedia, Media
WHERE File.FilenameId = 3
AND File.PathId=3
AND File.JobId = Job.JobId
AND Job.ClientId = Client.ClientId
AND Job.JobId = JobMedia.JobId
AND File.FileIndex >= JobMedia.FirstIndex
AND File.FileIndex <= JobMedia.LastIndex
AND JobMedia.MediaId = Media.MediaId
AND Client.Name = 'amanda-fd'
No file to restore

It shows up in the image list as well as the revisions but I can't actually
restore anything. Any ideas what else I might need to do?

Thanks again!!!

Lonny
--
"To mess up a Linux box, you need to work at it; to mess up your Windows box,
you just need to work ON it."

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB