Hi Yuri.
Привет, Юра.

You can do this with this script:

################
[r...@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.ami...@it-cooperation.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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to