Re: [Bacula-users] Restoring from bconsole in a shell script
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 yesBut 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-listbr /=20 br /=20 Any other idea about how to restore a directory from a backup within a shel= l script?br /=20 br /=20 Regardsbr /=20 br /=20 Mariabr /=20 p style=3Dmargin:0px; padding:0px; =20 =C2=A0/p=20 blockquote style=3Dborder-left: 1px solid #CCC; padding-left: 5px; margin= -left: 5px; margin-bottom: 0px; margin-top: 0px; margin-right: 0px; type= =3Dcite=20 p style=3Dmargin:0px; padding:0px; =20 span style=3Dfont-family:Verdanaspan style=3Dfont-size:12px- = Original Message -/span/span/p=20 p style=3Dmargin:0px; padding:0px; =20 span style=3Dfont-family:Verdanaspan style=3Dfont-size:12pxFrom: = Maria Arrea/span/span/p=20 p style=3Dmargin:0px; padding:0px; =20 span style=3Dfont-family:Verdanaspan style=3Dfont-size:12pxSent: = 03/23/12 12:30 PM/span/span/p=20 p style=3Dmargin:0px; padding:0px; =20 span style=3Dfont-family:Verdanaspan style=3Dfont-size:12pxTo: ba= cula-us...@lists.sourceforge.net/span/span/p=20 p style=3Dmargin:0px; padding:0px; =20 span style=3Dfont-family:Verdanaspan style=3Dfont-size:12pxSubjec= t: [Bacula-users] Restoring from bconsole in a shell script/span/span/= p=20 br /=20 div=20 span style=3Dfont-family:Verdanaspan style=3Dfont-size:12pxspan = style=3Dfont-family: verdana;span style=3Dfont-size: 12px;Hellobr /= =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/spanbr /=20 br /=20 bconsole -c /etc/bacula/bconsole.conf lt; /root/mipruebabr /=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.rpmnbsp; yesbr /=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 Regardsbr /=20 br /=20 Maria/span/span/div=20 /blockquote=20 p style=3Dmargin: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
Re: [Bacula-users] Restoring from bconsole in a shell script
Op 20120327 om 08:42 schreef Maria Arrea: 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 Not tested, but I expect that a _multi_ line miprueba gives a better result. So try # cat /root/miprueba restore client=wiki dir=/root current yes # bconsole -c /etc/bacula/bconsole.conf /root/miprueba and please provide feedback in the discussion order. ( In other words: Reply _below_ the previous text ) Cheers Geert Stappers -- 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
Re: [Bacula-users] Restoring from bconsole in a shell script
Op 20120327 om 08:42 schreef Maria Arrea: 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.3Regards Maria Not tested, but I expect that a _multi_ line miprueba gives a better result. So try # cat /root/miprueba restore client=wiki dir=/root current yes # bconsole -c /etc/bacula/bconsole.conf /root/miprueba and please provide feedback in the discussion order. ( In other words: Reply _below_ the previous text ) Sorry for the previous top-posting. Still no luck. [root@backup-virtual ~]# cat /root/miprueba restore client=wiki dir=/root current yes [root@backup-virtual ~]# 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 dir=/root Using Catalog MyCatalog Unknown keyword: dir You have messages. current current: is an invalid command. yes yes: is an invalid command. Regards Maria -- 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
Re: [Bacula-users] Restoring from bconsole in a shell script
On Tue, 27 Mar 2012 08:42:53 +0200, Maria Arrea said: 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. Sorry, it should be directory=. I was mislead by the comment in the code :-) You also need to specify jobid= to make it work. __Martin -- 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
Re: [Bacula-users] Restoring from bconsole in a shell script
Hello Bacula-list Any other idea about how to restore a directory from a backup within a shell script? Regards Maria - 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 -- 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
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-listbr /=20 br /=20 Any other idea about how to restore a directory from a backup within a shel= l script?br /=20 br /=20 Regardsbr /=20 br /=20 Mariabr /=20 p style=3Dmargin:0px; padding:0px; =20 =C2=A0/p=20 blockquote style=3Dborder-left: 1px solid #CCC; padding-left: 5px; margin= -left: 5px; margin-bottom: 0px; margin-top: 0px; margin-right: 0px; type= =3Dcite=20 p style=3Dmargin:0px; padding:0px; =20 span style=3Dfont-family:Verdanaspan style=3Dfont-size:12px- = Original Message -/span/span/p=20 p style=3Dmargin:0px; padding:0px; =20 span style=3Dfont-family:Verdanaspan style=3Dfont-size:12pxFrom: = Maria Arrea/span/span/p=20 p style=3Dmargin:0px; padding:0px; =20 span style=3Dfont-family:Verdanaspan style=3Dfont-size:12pxSent: = 03/23/12 12:30 PM/span/span/p=20 p style=3Dmargin:0px; padding:0px; =20 span style=3Dfont-family:Verdanaspan style=3Dfont-size:12pxTo: ba= cula-us...@lists.sourceforge.net/span/span/p=20 p style=3Dmargin:0px; padding:0px; =20 span style=3Dfont-family:Verdanaspan style=3Dfont-size:12pxSubjec= t: [Bacula-users] Restoring from bconsole in a shell script/span/span/= p=20 br /=20 div=20 span style=3Dfont-family:Verdanaspan style=3Dfont-size:12pxspan = style=3Dfont-family: verdana;span style=3Dfont-size: 12px;Hellobr /= =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/spanbr /=20 br /=20 bconsole -c /etc/bacula/bconsole.conf lt; /root/mipruebabr /=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.rpmnbsp; yesbr /=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 Regardsbr /=20 br /=20 Maria/span/span/div=20 /blockquote=20 p style=3Dmargin: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
[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 -- 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