Hello,
I will try to answer your questions below, but first, I would strongly
suggest that if you are not already in touch with Cartika, you should be.
We (Bacula Systems) have worked with them over the past 9 months to
implement a Cartika ISP/MSP service based on Bacula Enterprise
that probably covers everything you want to
do. If you want to do it yourself, that is OK, but from what we already
know, it will likely be a much bigger task than you imagine.
I am copying our CEO (Frank Barker) and our World Wide director of sales
(Aristide Cariccio), so if you need some help getting in touch with the
right people in Cartika, they can help you.
Concerning bconsole and parsing file lists:
- Other than a few internal @ commands, bconsole is nothing
but a network pass through to the Bacula Director. That is
bconsole has little or no intelligence. It is sort of like miniterm
or any TTY terminal program.
- Bacula has a number of ways of doing restores. If you want
to program something, you probably should look at the BVFS
(Bacula Virtual File System) commands that can be used through
bconsole to interface to the catalog. The BVFS commands are
documented in the manual.
- Concerning parsing file lists: There are many
ways of getting file lists from Bacula including directly from the
catalog
and "parsing" them depends on what programming language you are
using C, C++, Python, Perl, PHP, ...
- To a minimal extent, bconsole can be scripted. This is documented in the
manual, and there are many examples of scripting bconsole in
<bacula>/regress/tests/, which you can clone through our
git repository -- see the web site (www.bacula.org).
Your specific questions:
- Does it pass it to another program? Yes, it passes everything (well
almost)
directly to the Director.
- Use any intermediary files? No, not unless you use one of the @ commands
(@output, @tee) to redirect the tty output to a file.
- How does it store info on which files are marked for restore? All
state information
is inside Bacula core code either in the BVFS C++ code, or in the
interactive
restore built into Bacula which uses red/black trees and is also
written in C++.
Bottom line: I strongly recommend that you talk to Cartika as they have
already
done everything that I expect you want, and they have a very close working
relationship with Bacula Systems.
Best regards,
Kern
On 01/07/2013 11:03 PM, etanneh...@godaddy.com wrote:
I am working with a team creating automation via a web interface for
Bacula. A major hangup is the restore ability. The only way to get
good file restores is from bconsole as other methods may not follow
"accurate" or proper incremental restore locations and file permissions.
We are looking into creating a wrapper or method of simply parsing a
file list instead but need a greater understanding of how bconsole
handles restores.
Does it pass it to another program? Use any intermediary files? How
does it store info on which files are marked for restore?
Help in understanding the backbone of this process would be greatly
appreciated.
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel