Hello

 Still no luck, "dir=" option is not recognized:

 # cat /root/miprueba
 restore client=wiki current dir="/root/" yes

 # bconsole -c /etc/bacula/bconsole.conf < /root/miprueba
 Connecting to Director backup-virtual:9101
 1000 OK: backup-virtual-dir Version: 5.0.3 (30 August 2010)
 Enter a period to cancel a command.
 restore client=wiki current dir="/root/" yes
 Using Catalog "MyCatalog"
 Unknown keyword: dir
 You have messages.


 Bacula version: 5.0.3


 Regards

 Maria


----- Original Message -----
From: Martin Simmons
Sent: 03/26/12 01:10 PM
To: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Restoring from bconsole in a shell script

 >>>>> On Mon, 26 Mar 2012 10:32:15 +0200, Maria Arrea said: > > Hello 
 >>>>> Bacula-list > > Any other idea about how to restore a directory from a 
 >>>>> backup within a > shell script? There is an undocumented "dir=" option 
 >>>>> to the restore command that you can use instead of "file=". __Martin > 
 >>>>> ----- Original Message ----- > From: Maria Arrea > Sent: 03/23/12 12:30 
 >>>>> PM > To: bacula-users@lists.sourceforge.net > Subject: [Bacula-users] 
 >>>>> Restoring from bconsole in a shell script > > Hello > > I am trying to 
 >>>>> restore a directory tree (and the files inside) with bconsole in a shell 
 >>>>> script with no success. > > Restoring a single file works: > > bconsole 
 >>>>> -c /etc/bacula/bconsole.conf < /root/miprueba > > Content of 
 >>>>> /root/miprueba: > > restore client=wiki current 
 >>>>> file="/root/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm" yes > > > But 
 >>>>> what do I have to do to restore a full directory tree like /etc/* ? Any 
 >>>>> wildcard? > > Regards > > Maria > > 
 >>>>> --========GMXBoundary134761332750735426686 > Content-Type: text/html; 
 >>>>> charset="utf-8" > Content-Transfer-Encoding: quoted-printable > > <span 
 >>>>> style=3D'font-family:Verdana'><span style=3D'font-size:12px'><br />= > 
 >>>>> =20 > <br />=20 > Hello Bacula-list<br />=20 > <br />=20 > Any other 
 >>>>> idea about how to restore a directory from a backup within a shel= > l 
 >>>>> script?<br />=20 > <br />=20 > Regards<br />=20 > <br />=20 > Maria<br 
 >>>>> />=20 > <p style=3D"margin:0px; padding:0px;" >=20 > =C2=A0</p>=20 > 
 >>>>> <blockquote style=3D"border-left: 1px solid #CCC; padding-left: 5px; 
 >>>>> margin= > -left: 5px; margin-bottom: 0px; margin-top: 0px; margin-right: 
 >>>>> 0px;" type= > =3D"cite">=20 > <p style=3D"margin:0px; padding:0px;" >=20 
 >>>>> > <span style=3D"font-family:Verdana"><span 
 >>>>> style=3D"font-size:12px">----- = > Original Message 
 >>>>> -----</span></span></p>=20 > <p style=3D"margin:0px; padding:0px;" >=20 
 >>>>> > <span style=3D"font-family:Verdana"><span 
 >>>>> style=3D"font-size:12px">From: = > Maria Arrea</span></span></p>=20 > <p 
 >>>>> style=3D"margin:0px; padding:0px;" >=20 > <span 
 >>>>> style=3D"font-family:Verdana"><span style=3D"font-size:12px">Sent: = > 
 >>>>> 03/23/12 12:30 PM</span></span></p>=20 > <p style=3D"margin:0px; 
 >>>>> padding:0px;" >=20 > <span style=3D"font-family:Verdana"><span 
 >>>>> style=3D"font-size:12px">To: ba= > 
 >>>>> cula-us...@lists.sourceforge.net</span></span></p>=20 > <p 
 >>>>> style=3D"margin:0px; padding:0px;" >=20 > <span 
 >>>>> style=3D"font-family:Verdana"><span style=3D"font-size:12px">Subjec= > 
 >>>>> t: [Bacula-users] Restoring from bconsole in a shell 
 >>>>> script</span></span></= > p>=20 > <br />=20 > <div>=20 > <span 
 >>>>> style=3D"font-family:Verdana"><span style=3D"font-size:12px"><span = > 
 >>>>> style=3D"font-family: verdana;"><span style=3D"font-size: 
 >>>>> 12px;">Hello<br /= > >=20 > <br />=20 > I am trying to restore a 
 >>>>> directory tree (and the files inside) with bcons= > ole in a shell 
 >>>>> script with no success.<br />=20 > <br />=20 > Restoring a single file 
 >>>>> works:</span></span><br />=20 > <br />=20 > bconsole -c 
 >>>>> /etc/bacula/bconsole.conf &lt; /root/miprueba<br />=20 > <br />=20 > 
 >>>>> Content of /root/miprueba:<br />=20 > <br />=20 > restore client=3Dwiki 
 >>>>> current file=3D"/root/rpmforge-release-0.3.6-1.el5.= > 
 >>>>> rf.x86_64.rpm"&nbsp; yes<br />=20 > <br />=20 > <br />=20 > But what do 
 >>>>> I have to do to restore a full directory tree like /etc/* ? A= > ny 
 >>>>> wildcard?<br />=20 > <br />=20 > Regards<br />=20 > <br />=20 > 
 >>>>> Maria</span></span></div>=20 > </blockquote>=20 > <p 
 >>>>> style=3D"margin:0px; padding:0px;" >=20 > =C2=A0</p>=20 > </span></span> 
 >>>>> > > --========GMXBoundary134761332750735426686-- > > > 
 >>>>> --===============2373911006917332974== > Content-Type: text/plain; 
 >>>>> charset="us-ascii" > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit 
 >>>>> > Content-Disposition: inline > > 
 >>>>> ------------------------------------------------------------------------------
 >>>>>  > This SF email is sponsosred by: > Try Windows Azure free for 90 days 
 >>>>> Click Here > http://p.sf.net/sfu/sfd2d-msazure > 
 >>>>> --===============2373911006917332974== > Content-Type: text/plain; 
 >>>>> charset="us-ascii" > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit 
 >>>>> > Content-Disposition: inline > > 
 >>>>> _______________________________________________ > Bacula-users mailing 
 >>>>> list > Bacula-users@lists.sourceforge.net > 
 >>>>> https://lists.sourceforge.net/lists/listinfo/bacula-users > > 
 >>>>> --===============2373911006917332974==-- > 
 >>>>> ------------------------------------------------------------------------------
 >>>>>  This SF email is sponsosred by: Try Windows Azure free for 90 days 
 >>>>> Click Here http://p.sf.net/sfu/sfd2d-msazure 
 >>>>> _______________________________________________ Bacula-users mailing 
 >>>>> list Bacula-users@lists.sourceforge.net 
 >>>>> https://lists.sourceforge.net/lists/listinfo/bacula-users
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to