Re: [Bacula-users] Restoring from bconsole in a shell script
2012-03-27 03:45:36
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 )
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 AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
|
|