Ubuntu 24.04
Sponsored Link

Bacula : バックアップ取得の操作2024/08/01

 

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

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

Connecting to Director localhost:9101
1000 OK: 10002 dlp.srv.world-dir Version: 13.0.4 (12 February 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-20240801
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-20240801" Slot 0 ...
3000 OK label. VolBytes=235 VolABytes=0 VolType=1 Volume="Vol-20240801" Device="FileChgr1-Dev1" (/tmp)
Catalog record for Volume "Vol-20240801", 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-08-01 00:03:05
Priority: 10
OK to run? (yes/mod/no): yes
Job queued. JobId=1
You have messages.

# メッセージ (ログ) を表示
*messages
01-Aug 00:03 dlp.srv.world-dir JobId 1: No prior or suitable Full backup found in catalog. Doing FULL backup.
01-Aug 00:03 dlp.srv.world-dir JobId 1: Start Backup JobId 1, Job=BackupClient1.2024-08-01_00.03.33_03
01-Aug 00:03 dlp.srv.world-dir JobId 1: Connected to Storage "File1" at dlp.srv.world:9103 with TLS
01-Aug 00:03 dlp.srv.world-dir JobId 1: Using Device "FileChgr1-Dev1" to write.
01-Aug 00:03 dlp.srv.world-dir JobId 1: Connected to Client "dlp.srv.world-fd" at localhost:9102 with TLS
01-Aug 00:03 dlp.srv.world-fd JobId 1: Connected to Storage at dlp.srv.world:9103 with TLS
01-Aug 00:03 dlp.srv.world-sd JobId 1: Wrote label to prelabeled Volume "Vol-20240801" on File device "FileChgr1-Dev1" (/tmp)
01-Aug 00:03 dlp.srv.world-sd JobId 1: Elapsed time=00:00:01, Transfer rate=2.795 M Bytes/second
01-Aug 00:03 dlp.srv.world-sd JobId 1: Sending spooled attrs to the Director. Despooling 418,829 bytes ...
01-Aug 00:03 dlp.srv.world-dir JobId 1: Bacula dlp.srv.world-dir 13.0.4 (12Feb24):
  Build OS:               x86_64-pc-linux-gnu ubuntu 24.04
  JobId:                  1
  Job:                    BackupClient1.2024-08-01_00.03.33_03
  Backup Level:           Full (upgraded from Incremental)
  Client:                 "dlp.srv.world-fd" 13.0.4 (12Feb24) x86_64-pc-linux-gnu,ubuntu,24.04
  FileSet:                "Full Set" 2024-08-01 00:03:33
  Pool:                   "File" (From Job resource)
  Catalog:                "MyCatalog" (From Client resource)
  Storage:                "File1" (From Job resource)
  Scheduled time:         01-Aug-2024 00:03:05
  Start time:             01-Aug-2024 00:03:36
  End time:               01-Aug-2024 00:03:37
  Elapsed time:           1 sec
  Priority:               10
  FD Files Written:       2,061
  SD Files Written:       2,061
  FD Bytes Written:       2,536,480 (2.536 MB)
  SD Bytes Written:       2,795,037 (2.795 MB)
  Rate:                   2536.5 KB/s
  Software Compression:   None
  Comm Line Compression:  50.9% 2.0:1
  Snapshot/VSS:           no
  Encryption:             no
  Accurate:               no
  Volume name(s):         Vol-20240801
  Volume Session Id:      1
  Volume Session Time:    1722470025
  Last Volume Bytes:      2,843,770 (2.843 MB)
  Non-fatal FD errors:    0
  SD Errors:              0
  FD termination status:  OK
  SD termination status:  OK
  Termination:            Backup OK

01-Aug 00:03 dlp.srv.world-dir JobId 1: Begin pruning Jobs older than 6 months .
01-Aug 00:03 dlp.srv.world-dir JobId 1: No Jobs found to prune.
01-Aug 00:03 dlp.srv.world-dir JobId 1: Begin pruning Files.
01-Aug 00:03 dlp.srv.world-dir JobId 1: No Files found to prune.
01-Aug 00:03 dlp.srv.world-dir JobId 1: End auto prune.

*exit

root@dlp:~#
ll /tmp/Vol*

-rw-r----- 1 bacula tape 2843770 Aug  1 00:03 /tmp/Vol-20240801
# バックアップが取得された
関連コンテンツ