FreeBSD 14
Sponsored Link

Bacula : バックアップ取得の操作2024/09/19

 

バックアップ取得の操作方法です。

[1] Bacula コンソールからバックアップの取得を実行します。
root@dlp:~ #
bconsole

Connecting to Director localhost:9101
1000 OK: 10002 140amd64-quarterly-job-22-dir Version: 15.0.2 (21 March 2024)
Enter a period to cancel a command.

# バックアップボリュームの定義
*label
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
# バックアップに使用する領域を選択
# 選択肢はいずれもデフォルト 且つ 同じ設定で [/tmp] 配下にバックアップデータが取得される
The defined Storage resources are:
     1: File1
     2: File2
Select Storage resource (1-2): 1
Connecting to Storage daemon File1 at dlp.srv.world:9103 ...
# Enter
Enter autochanger drive[0]:

# 任意のボリューム名を入力
Enter new Volume name: Vol-20240919-0
Enter slot (0 or Enter for none):
# プールを選択
Defined Pools:
     1: Default
     2: File
     3: Scratch
Select the Pool (1-3): 2
Connecting to Storage daemon File1 at dlp.srv.world:9103 ...
Sending label command for Volume "Vol-20240919-0" Slot 0 ...
3000 OK label. VolBytes=254 VolABytes=0 VolType=1 UseProtect=0 VolEncrypted=0 Volume="Vol-20240919-0" Device="FileChgr1-Dev1" (/tmp)
Catalog record for Volume "Vol-20240919-0", Slot 0  successfully created.
Requesting to mount FileChgr1 ...
3906 File device ""FileChgr1-Dev1" (/tmp)" is always mounted.

# バックアップジョブ実行
*run
A job name must be specified.
# ジョブ名を選択 (下例は全てデフォルト)
The defined Job resources are:
     1: BackupClient1
     2: BackupCatalog
     3: RestoreFiles
Select Job resource (1-3): 1
Run Backup job
JobName:  BackupClient1
Level:    Incremental
Client:   dlp.srv.world-fd
FileSet:  Full Set
Pool:     File (From Job resource)
Storage:  File1 (From Job resource)
When:     2024-09-19 10:53:53
Priority: 10
OK to run? (yes/mod/no): yes
Job queued. JobId=5
You have messages.

# メッセージ (ログ) を表示
*messages
19-Sep 10:54 dlp.srv.world-dir JobId 5: Start Backup JobId 5, Job=BackupClient1.2024-09-19_10.54.23_03
19-Sep 10:54 dlp.srv.world-dir JobId 5: Connected to Storage "File1" at dlp.srv.world:9103 with TLS
19-Sep 10:54 dlp.srv.world-dir JobId 5: Using Device "FileChgr1-Dev1" to write.
19-Sep 10:54 dlp.srv.world-dir JobId 5: Connected to Client "dlp.srv.world-fd" at localhost:9102 with TLS
19-Sep 10:54 dlp.srv.world-fd JobId 5: Connected to Storage at dlp.srv.world:9103 with TLS
19-Sep 10:54 dlp.srv.world-sd JobId 5: Wrote label to prelabeled Volume "Vol-20240919-0" on File device "FileChgr1-Dev1" (/tmp)
19-Sep 10:54 dlp.srv.world-sd JobId 5: Elapsed time=00:00:01, Transfer rate=0  Bytes/second
19-Sep 10:54 dlp.srv.world-sd JobId 5: Sending spooled attrs to the Director. Despooling 0 bytes ...
19-Sep 10:54 dlp.srv.world-dir JobId 5: Bacula dlp.srv.world-dir 15.0.2 (21Mar24):
  Build OS:               amd64-portbld-freebsd14.0 freebsd 14.0-RELEASE-p10
  JobId:                  5
  Job:                    BackupClient1.2024-09-19_10.54.23_03
  Backup Level:           Incremental, since=2024-09-19 10:20:42
  Client:                 "dlp.srv.world-fd" 15.0.2 (21Mar24) amd64-portbld-freebsd14.0,freebsd,14.0-RELEASE-p10
  FileSet:                "Full Set" 2024-09-19 09:35:23
  Pool:                   "File" (From Job resource)
  Catalog:                "MyCatalog" (From Client resource)
  Storage:                "File1" (From Job resource)
  Scheduled time:         19-Sep-2024 10:53:53
  Start time:             19-Sep-2024 10:54:26
  End time:               19-Sep-2024 10:54:26
  Elapsed time:           1 sec
  Priority:               10
  FD Files Written:       0
  SD Files Written:       0
  FD Bytes Written:       0 (0 B)
  SD Bytes Written:       0 (0 B)
  Rate:                   0.0 KB/s
  Software Compression:   None
  Comm Line Compression:  None
  Snapshot/VSS:           no
  Encryption:             no
  Accurate:               no
  Volume name(s):
  Volume Session Id:      1
  Volume Session Time:    1726710660
  Last Volume Bytes:      676 (676 B)
  Non-fatal FD errors:    0
  SD Errors:              0
  FD termination status:  OK
  SD termination status:  OK
  Termination:            Backup OK

19-Sep 10:54 dlp.srv.world-dir JobId 5: Begin pruning Jobs older than 6 months .
19-Sep 10:54 dlp.srv.world-dir JobId 5: No Jobs found to prune.
19-Sep 10:54 dlp.srv.world-dir JobId 5: Begin pruning Files.
19-Sep 10:54 dlp.srv.world-dir JobId 5: No Files found to prune.
19-Sep 10:54 dlp.srv.world-dir JobId 5: End auto prune.

*exit

root@dlp:~ #
ls -l /tmp/Vol*

-rw-r-----  1 bacula wheel uarch 2000993 Sep 19 10:20 /tmp/Vol-20240919-0
# バックアップが取得された
関連コンテンツ