Bacula-users

Re: [Bacula-users] Restoring from bconsole in a shell script

2012-03-27 03:00:36
Subject: Re: [Bacula-users] Restoring from bconsole in a shell script
From: Geert Stappers <Geert.Stappers AT vanadgroup DOT com>
To: "bacula-users AT lists.sourceforge DOT net" <bacula-users AT lists.sourceforge DOT net>
Date: Tue, 27 Mar 2012 08:59:57 +0200
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 AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users