Hello, śr., 7 paź 2020 o 10:31 <djosip+n...@linuxpages.net> napisał(a):
> > Hello, > > I am currently using Bacula 9.6.5 and I am trying to use bconsole > restore command like this: > > restore client=testbuild-fd restorejob=testbuild-restore > restoreclient=testbuild-fd where=/ current all yes > If the client=... and restoreclient=... are the same then it is not required to include the later. > > According to the 9.6.x documentation: > > https://www.bacula.org/9.6.x-manuals/en/main/Restore_Command.html#SECTION002750000000000000000 > > the above command should chose the most recent backup and should > mark all the files for restore but instead, I am getting a menu for > selection of JobIds and a prompt for file selection afterwards. > To be honest I would expect a question about a fileset unless it is a single fileset for this client. This is how I do in my case: *restore client=bacula-devel-lxc-fd restorejob=RestoreFiles fileset="Full Set" where=/tmp/restores select all current done yes +-------+-------+----------+-----------+---------------------+------------+ | jobid | level | jobfiles | jobbytes | starttime | volumename | +-------+-------+----------+-----------+---------------------+------------+ | 7 | F | 21 | 8,091,738 | 2020-09-30 15:51:55 | vol01 | | 8 | I | 1 | 107,112 | 2020-09-30 23:05:03 | vol01 | | 10 | I | 1 | 153,555 | 2020-10-01 23:05:02 | vol01 | | 12 | I | 20 | 8,045,545 | 2020-10-02 12:12:26 | vol01 | +-------+-------+----------+-----------+---------------------+------------+ You have selected the following JobIds: 7,8,10,12 Building directory tree for JobId(s) 7,8,10,12 ... 20 files inserted into the tree and marked for extraction. Bootstrap records written to /opt/bacula/working/bacula-devel-lxc-dir.restore.4.bsr The Job will require the following (*=>InChanger): Volume(s) Storage(s) SD Device(s) =========================================================================== vol01 File1 FileChgr1 Volumes marked with "*" are in the Autochanger. 20 files selected to be restored. Job queued. JobId=17 The above command selects all files from the last available backup for selected client and fileset. If you have a single restore job then it will be selected automatically. I hope it helps. -- Radosław Korzeniewski rados...@korzeniewski.net
_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users