root@dlp:~# bconsole
Connecting to Director localhost:9101
1000 OK: 103 dlp.srv.world-dir Version: 9.6.7 (10 December 2020)
Enter a period to cancel a command.
# start restore task
*restore
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
First you select one or more JobIds that contain files
to be restored. You will be presented several methods
of specifying the JobIds. Then you will be allowed to
select which files from those JobIds are to be restored.
To select the JobIds, you have the following choices:
1: List last 20 Jobs run
2: List Jobs where a given File is saved
3: Enter list of comma separated JobIds to select
4: Enter SQL list command
5: Select the most recent backup for a client
6: Select backup for a client before a specified time
7: Enter a list of files to restore
8: Enter a list of files to restore before a specified time
9: Find the JobIds of the most recent backup for a client
10: Find the JobIds for a backup for a client before a specified time
11: Enter a list of directories to restore for found JobIds
12: Select full restore to a specified Job date
13: Cancel
Select item: (1-13): 5
Automatically selected Client: dlp.srv.world-fd
Automatically selected FileSet: Full Set
+-------+-------+----------+-----------+---------------------+--------------+
| jobid | level | jobfiles | jobbytes | starttime | volumename |
+-------+-------+----------+-----------+---------------------+--------------+
| 1 | F | 1,472 | 2,016,948 | 2023-08-08 20:56:15 | Vol-20230809 |
+-------+-------+----------+-----------+---------------------+--------------+
You have selected the following JobId: 1
Building directory tree for JobId(s) 1 ... ++++++++++++++++++++++++++++++++++++++++++++
1,339 files inserted into the tree.
You are now entering file selection mode where you add (mark) and
remove (unmark) files to be restored. No files are initially added, unless
you used the "all" keyword on the command line.
Enter "done" to leave this mode.
cwd is: /
# show backup data
$ ls
etc/
# mark data you'd like to restore
$ mark etc
1,472 files marked.
# show marked file list
$ lsmark
*etc/
*.pwd.lock
*X11/
*Xsession.d/
*20dbus_xdg-runtime
*xkb
*adduser.conf
*adjtime
*aliases
.....
.....
# finish restore setting
$ done
Bootstrap records written to /var/lib/bacula/dlp.srv.world-dir.restore.1.bsr
The Job will require the following (*=>InChanger):
Volume(s) Storage(s) SD Device(s)
===========================================================================
Vol-20230809 File1 FileChgr1
Volumes marked with "*" are in the Autochanger.
1,472 files selected to be restored.
Using Catalog "MyCatalog"
Run Restore job
JobName: RestoreFiles
Bootstrap: /var/lib/bacula/dlp.srv.world-dir.restore.1.bsr
Where: /tmp
Replace: Always
FileSet: Full Set
Backup Client: dlp.srv.world-fd
Restore Client: dlp.srv.world-fd
Storage: File1
When: 2023-08-08 21:07:39
Catalog: MyCatalog
Priority: 10
Plugin Options: *None*
# run restore job
OK to run? (yes/mod/no): yes
Job queued. JobId=2
# show messages (log)
*messages
08-Aug 21:08 dlp.srv.world-dir JobId 2: Start Restore Job RestoreFiles.2023-08-08_21.08.03_05
08-Aug 21:08 dlp.srv.world-dir JobId 2: Restoring files from JobId(s) 1
08-Aug 21:08 dlp.srv.world-dir JobId 2: Using Device "FileChgr1-Dev2" to read.
08-Aug 21:08 dlp.srv.world-sd JobId 2: Ready to read from volume "Vol-20230809" on File device "FileChgr1-Dev2" (/tmp).
08-Aug 21:08 dlp.srv.world-sd JobId 2: Forward spacing Volume "Vol-20230809" to addr=234
08-Aug 21:08 dlp.srv.world-sd JobId 2: End of Volume "Vol-20230809" at addr=2236102 on device "FileChgr1-Dev2" (/tmp).
08-Aug 21:08 dlp.srv.world-sd JobId 2: Elapsed time=00:00:01, Transfer rate=2.202 M Bytes/second
08-Aug 21:08 dlp.srv.world-dir JobId 2: Bacula dlp.srv.world-dir 9.6.7 (10Dec20):
Build OS: x86_64-pc-linux-gnu debian bookworm/sid
JobId: 2
Job: RestoreFiles.2023-08-08_21.08.03_05
Restore Client: dlp.srv.world-fd
Where: /tmp
Replace: Always
Start time: 08-Aug-2023 21:08:05
End time: 08-Aug-2023 21:08:05
Elapsed time: 1 sec
Files Expected: 1,472
Files Restored: 1,472
Bytes Restored: 2,016,948 (2.016 MB)
Rate: 2016.9 KB/s
FD Errors: 0
FD termination status: OK
SD termination status: OK
Termination: Restore OK
08-Aug 21:08 dlp.srv.world-dir JobId 2: Begin pruning Jobs older than 6 months .
08-Aug 21:08 dlp.srv.world-dir JobId 2: No Jobs found to prune.
08-Aug 21:08 dlp.srv.world-dir JobId 2: Begin pruning Files.
08-Aug 21:08 dlp.srv.world-dir JobId 2: No Files found to prune.
08-Aug 21:08 dlp.srv.world-dir JobId 2: End auto prune.
*exit
root@dlp:~#
total 792
-rw-r--r-- 1 root root 3040 May 25 10:54 adduser.conf
-rw-r--r-- 1 root root 44 Jun 11 19:31 adjtime
-rw-r--r-- 1 root root 198 Aug 8 20:13 aliases
drwxr-xr-x 2 root root 16384 Aug 8 20:13 alternatives
drwxr-xr-x 2 root root 4096 Jun 11 19:27 apparmor
drwxr-xr-x 8 root root 4096 Jun 11 19:30 apparmor.d
drwxr-xr-x 9 root root 4096 Jun 18 21:44 apt
drwxr-xr-x 3 root root 4096 Aug 8 20:53 bacula
.....
.....
# backup data restored
|