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 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