Hi,
using where= like what you are trying looks correct.
Did you make sure your job definition starts with
Job {
Name = "restore-mysql"
...
}
Did you issue the reload command in bconsole after adding
your job definition? Did it throw any error?
Which version of Bareos are you using?
Regards,
Stephan
On 03/22/2017 01:24 PM, Christoph Haas wrote:
> Dear list,
>
> I'd like to do automated restores like this:
>
> restore comment=restore-mysql-for-dbrestore-from-maidnb
> restorejob=restore-mysql client=maindb-fd restoreclient=dbrestore-fd
> fileset=Mysql where=/srv/mysql select current all done yes
>
> The job defintion:
>
> Name = "restore-mysql"
> Type = Restore
> FileSet = "Mysql"
> Storage = Tape
> Pool = Tape
> Messages = Standard
> Where = /srv/mysql
> Client = bareos-fd
> }
>
> However the restores still goes to /mnt/snap/data and not into
> /srv/mysql where I wanted it to go ("Where" parameter).
>
> The running job also shows no signs of a "where":
>
> *show job=restore-mysql
> Job {
> Name = "restore-mysql"
> Type = Restore
> Messages = "Standard"
> Storage = "Tape"
> Pool = "Tape"
> Client = "bareos-fd"
> FileSet = "Mysql"
> }
>
> The only working solution I found was setting:
>
> Strip Prefix = /mnt/snap/data
> Add Prefix = /srv/mysql
>
> Also the strip_prefix=… parameter in bconsole does not appear to do
> anything.
>
> Any idea what I'm doing wrong?
>
> Best regards
> …Christoph
>
--
Stephan Dühr [email protected]
Bareos GmbH & Co. KG Phone: +49 221-630693-90
http://www.bareos.com
Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Komplementär: Bareos Verwaltungs-GmbH
Geschäftsführer: S. Dühr, M. Außendorf, J. Steffens, Philipp Storz
--
You received this message because you are subscribed to the Google Groups
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.