Re: [Bacula-users] scripted restore not failsafe

2014-02-19 Thread Martin Simmons
> On Wed, 19 Feb 2014 17:40:37 +0100, Christoph Kluenter said: > > Hi everybody, > > I have server1 which creates files at > /somewhere/$YEAR/$MONTH/$DAY/ on a daily basis. > > I want to restore this directory to server2. > So far, I have come up with this script: > > /usr/sbin/bconsole <<

[Bacula-users] scripted restore not failsafe

2014-02-19 Thread Christoph Kluenter
Hi everybody, I have server1 which creates files at /somewhere/$YEAR/$MONTH/$DAY/ on a daily basis. I want to restore this directory to server2. So far, I have come up with this script: /usr/sbin/bconsole << EOF restore client=server1 select current strip_prefix=/somewhere/$YEAR/$MONTH/$DAY add