Hello Heitor, Thanks for that. I was hoping there would be some way to do the selection as part of the file mark/selection dialog. I haven't been able to find anything, presumably it doesn't exist.
Regards Chris Wilkinson On Sun, 3 Feb 2019, 8:26 p.m. Heitor Faria <hei...@bacula.com.br wrote: > Hello Chris, > > I wonder if it is possible to define a restore job that will restore all > files with a given extension whilst preserving the directory structure? > > Ideally I would end up with a restored directory tree identical to the > backup but only containing the wanted files. > > The object is to recover these files and then copy them into the existing > hard disc directory structure. > > To be specific, I have a number of files file.ext within a directory > structure that I would like to restore. I would rather avoid restoring > everything and then filtering out the unwanted ones. > > This was the way I was able to do: > > echo "list files jobid=2747" | /opt/bacula/bin/bconsole | grep .sql | sed > 's/| //g; s/ |//g; s/ *$//' >/tmp/list > echo "restore jobid=2747 file=</tmp/list client=enterprisebacula-fd" > where=/tmp/bacula-restores yes | /opt/bacula/bin/bconsole > > Yes, it is ugly. Several years ago I proposed to Kern an un-formatted > bconsole commands output option. > > Regards > > Regards, > > Chris Wilkinson > > > > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > > > -- > > MSc Heitor Faria > CEO Bacula LATAM > mobile1: + 1 909 655-8971 > mobile2: + 55 61 98268-4220 > [image: linkedin icon] > <https://www.linkedin.com/in/msc-heitor-faria-5ba51b3> > [image: logo] <Http://www.bacula.com.br> > Brasilia - Miami - New York > www.bacula.com.br > >
_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users