Re: [Bacula-users] restore recent backup from shell script
2009-05-11 07:05:29
But you must have only the one restore job.
Yuri Timofeev wrote:
> Hi
>
> Thank you very much ;)
>
> Description I have found only in old documents
>
> http://www.bacula.org/en/rel-manual/Restore_Command.html#SECTION002240000000000000000
>
>
>
> 2009/5/11, Dmitry Amirov <d.amirov AT it-cooperation DOT ru>:
>> Hi Yuri.
>> Привет, Юра.
>>
>> You can do this with this script:
>>
>> ################
>> [root@mail ~]# cat /opt/bacula/scripts/do_restore.sh
>> #!/bin/bash
>>
>> CLIENT=$1
>>
>> bconsole <<EOD
>> restore client=$CLIENT storage=stor_$CLIENT pool=pool_$CLIENT select
>> current all done yes
>> EOD
>> ################
>>
>> Main parameter is name of client, so you can add needed parameters
>> manually. Hope this script will useful for you.
>>
>> Yuri Timofeev wrote:
>>> Hi
>>>
>>> How I can
>>> restore all the most recent backup for a client
>>> from a shell script ?
>>>
>>
>> --
>> С Уважением,
>> Дмитрий Амиров
>> директор ООО "АйТи-Кооперация"
>> E-Mail: d.amirov AT it-cooperation DOT ru
>> Тел.: 213-62-25
>> Моб.: +7-912-24-54971
>>
>
>
--
С Уважением,
Дмитрий Амиров
директор ООО "АйТи-Кооперация"
E-Mail: d.amirov AT it-cooperation DOT ru
Тел.: 213-62-25
Моб.: +7-912-24-54971
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
|
|