Bacula-users

Re: [Bacula-users] restore recent backup from shell script

2009-05-11 06:14:04
Subject: Re: [Bacula-users] restore recent backup from shell script
From: Dmitry Amirov <d.amirov AT it-cooperation DOT ru>
To: Yuri Timofeev <tim4dev AT gmail DOT com>, bacula-users AT lists.sourceforge DOT net
Date: Mon, 11 May 2009 16:11:02 +0600
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

------------------------------------------------------------------------------
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
<Prev in Thread] Current Thread [Next in Thread>