|
root@dlp:~ # bconsole
Connecting to Director localhost:9101
1000 OK: 10002 dlp.srv.world-dir Version: 15.0.3 (25 March 2025)
Enter a period to cancel a command.
# リストアタスクを開始
*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: Select object to restore
14: Cancel
Select item: (1-14): 5
Automatically selected Client: dlp.srv.world-fd
Automatically selected FileSet: Full Set
+-------+-------+----------+-----------+---------------------+----------------+
| jobid | level | jobfiles | jobbytes | starttime | volumename |
+-------+-------+----------+-----------+---------------------+----------------+
| 1 | F | 637 | 2,442,392 | 2026-02-13 09:14:42 | Vol-20260213-1 |
+-------+-------+----------+-----------+---------------------+----------------+
You have selected the following JobId: 1
Building directory tree for JobId(s) 1 ... ++++++++++++++++++++++++++++++++++++++++++++++
607 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: /
# バックアップデータを一覧表示
$ ls
etc/
# リストアしたいデータをマーキング
$ mark etc
637 files marked.
# マーキングしたデータを一覧表示
$ lsmark
.....
.....
*syslog.d/
*ftp.conf
*lpr.conf
*ppp.conf
*termcap
*termcap.small
*ttys
*unbound
*zfs/
*compatibility.d
*exports
*exports.lock
# リストア設定を終了
$ done
Bootstrap records written to /var/db/bacula/dlp.srv.world-dir.restore.1.bsr
The Job will require the following (*=>InChanger):
Volume(s) Storage(s) SD Device(s)
===========================================================================
Vol-20260213-1 File1 FileChgr1
Volumes marked with "*" are in the Autochanger.
637 files selected to be restored.
Using Catalog "MyCatalog"
Run Restore job
JobName: RestoreFiles
Bootstrap: /var/db/bacula/dlp.srv.world-dir.restore.1.bsr
Where: /tmp/bacula-restores
Replace: Always
FileSet: Full Set
Backup Client: dlp.srv.world-fd
Restore Client: dlp.srv.world-fd
Storage: File1
When: 2026-02-13 09:23:20
Catalog: MyCatalog
Priority: 10
Plugin Options: *None*
# リストアジョブ実行
OK to run? (yes/mod/no): yes
Job queued. JobId=3
# メッセージ (ログ) を表示
*messages
13-Feb 09:23 dlp.srv.world-dir JobId 3: Start Restore Job RestoreFiles.2026-02-13_09.23.46_08
13-Feb 09:23 dlp.srv.world-dir JobId 3: Restoring files from JobId(s) 1
13-Feb 09:23 dlp.srv.world-dir JobId 3: Connected to Storage "File1" at dlp.srv.world:9103 with TLS
13-Feb 09:23 dlp.srv.world-dir JobId 3: Using Device "FileChgr1-Dev2" to read.
13-Feb 09:23 dlp.srv.world-dir JobId 3: Connected to Client "dlp.srv.world-fd" at localhost:9102 with TLS
13-Feb 09:23 dlp.srv.world-fd JobId 3: Connected to Storage at dlp.srv.world:9103 with TLS
13-Feb 09:23 dlp.srv.world-sd JobId 3: Ready to read from volume "Vol-20260213-1" on File device "FileChgr1-Dev2" (/tmp).
13-Feb 09:23 dlp.srv.world-sd JobId 3: Forward spacing Volume "Vol-20260213-1" to addr=254
13-Feb 09:23 dlp.srv.world-sd JobId 3: End of Volume "Vol-20260213-1" at addr=2538748 on device "FileChgr1-Dev2" (/tmp).
13-Feb 09:23 dlp.srv.world-sd JobId 3: Elapsed time=00:00:01, Transfer rate=2.514 M Bytes/second
13-Feb 09:23 dlp.srv.world-dir JobId 3: Bacula dlp.srv.world-dir 15.0.3 (25Mar25):
Build OS: amd64-portbld-freebsd15.0 freebsd 15.0-RELEASE-p2
JobId: 3
Job: RestoreFiles.2026-02-13_09.23.46_08
Restore Client: "dlp.srv.world-fd" 15.0.3 (25Mar25) amd64-portbld-freebsd15.0,freebsd,15.0-RELEASE-p2
Where: /tmp/bacula-restores
Replace: Always
Start time: 13-Feb-2026 09:23:48
End time: 13-Feb-2026 09:23:49
Elapsed time: 1 sec
Files Expected: 637
Files Restored: 637
Bytes Restored: 2,442,392 (2.442 MB)
Rate: 2442.4 KB/s
FD Errors: 0
FD termination status: OK
SD termination status: OK
Termination: Restore OK
13-Feb 09:23 dlp.srv.world-dir JobId 3: Begin pruning Jobs older than 6 months .
13-Feb 09:23 dlp.srv.world-dir JobId 3: No Jobs found to prune.
13-Feb 09:23 dlp.srv.world-dir JobId 3: Begin pruning Files.
13-Feb 09:23 dlp.srv.world-dir JobId 3: No Files found to prune.
13-Feb 09:23 dlp.srv.world-dir JobId 3: End auto prune.
*exit
root@dlp:~ # ls -l /tmp/bacula-restores/etc
total 519
drwxr-xr-x 2 root wheel 2 Nov 28 12:42 X11
lrwxr-xr-x 1 root wheel 12 Nov 28 12:51 aliases -> mail/aliases
drwxr-xr-x 2 root wheel 2 Nov 28 12:42 authpf
-rw-r--r-- 1 root wheel 151 Nov 28 12:43 auto_master
drwxr-xr-x 2 root wheel 9 Nov 28 12:43 autofs
-rw-r--r-- 1 root wheel 615 Nov 28 12:43 blacklistd.conf
-rw-r--r-- 1 root wheel 413 Nov 28 12:43 blocklistd.conf
drwxr-xr-x 2 root wheel 5 Nov 28 12:45 bluetooth
drwxr-xr-x 2 root wheel 3 Nov 28 12:43 cron.d
-rw-r--r-- 1 root wheel 646 Nov 28 12:42 crontab
-rw-r--r-- 1 root wheel 40 Nov 28 12:43 csh.cshrc
-rw-r--r-- 1 root wheel 288 Nov 28 12:43 csh.login
-rw-r--r-- 1 root wheel 41 Nov 28 12:43 csh.logout
-rw-r--r-- 1 root wheel 494 Nov 28 12:42 ddb.conf
drwxr-xr-x 2 root wheel 6 Nov 28 12:43 defaults
.....
.....
# リストアされた
|