Bacula-users

Re: [Bacula-users] Scripting restores?

2011-07-19 16:23:41
Subject: Re: [Bacula-users] Scripting restores?
From: "Jason A. Kates" <jason AT kates DOT org>
To: Roy Sigurd Karlsbakk <roy AT karlsbakk DOT net>
Date: Tue, 19 Jul 2011 16:20:49 -0400
You might combine things...

This is a restore that I have run as just a one off:

restore client=clientname restoreclient=otherclient pool=Weekly
where=/mnt/restore select current all done yes

so if you combine this with passing more in from the script (You can
even make the script from perl/shell/etc you can do anything.


                        -Jason



On Tue, 2011-07-19 at 21:40 +0200, Roy Sigurd Karlsbakk wrote:
> > > Alternatively you can simply script restores via bconsole.
> > > eg
> > >
> > > bconsole << EOF
> > > restore
> > > 7
> > > /example/DUMP/Archive/P_NW.mxi
> > > /example/ptec/storman_6_amd64.deb
> > > /example/DUMP/CC_Planning_3d.mxs
> > > /example/DUMP/CC_Planning_side.mxi
> > > /example/PLE/3D_N_StageC_.c4d
> > > /example/aw/05 3d/Mark/03/ViewNo01/B
> > > /example/sit/shops/Sheet-000921.pdf
> > > /example/arket/typical_side_winder.psd
> > > /example/2.25/elements2/gtc_.psd
> > > /example/for planners/Tiff/ordnance copy.
> > > /example/102__Binder.pdf
> > > /example/Thomas/rice
> > >
> > > yes
> > > EOF
> > 
> > Any chance of telling bconsole from which job it should extract this?
> 
> Seems this will only pull the latest version from the backup, which isn't 
> really what I want.
> 
> Vennlige hilsener / Best regards
> 
> roy
> --
> Roy Sigurd Karlsbakk
> (+47) 97542685
> roy AT karlsbakk DOT net
> http://blogg.karlsbakk.net/
> --
> I all pedagogikk er det essensielt at pensum presenteres intelligibelt. Det 
> er et elementært imperativ for alle pedagoger å unngå eksessiv anvendelse av 
> idiomer med fremmed opprinnelse. I de fleste tilfeller eksisterer adekvate og 
> relevante synonymer på norsk.
> 
> ------------------------------------------------------------------------------
> Magic Quadrant for Content-Aware Data Loss Prevention
> Research study explores the data loss prevention market. Includes in-depth
> analysis on the changes within the DLP market, and the criteria used to
> evaluate the strengths and weaknesses of these DLP solutions.
> http://www.accelacomm.com/jaw/sfnl/114/51385063/
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

estore
-- 
----------------------------------------------------------------------------
Jason A. Kates (jason AT kates DOT org) 
Fax:    208-975-1514
Phone:  660-960-0070
============================================================================


------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
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>