[root@dlp ~]# bconsole
Connecting to Director localhost:9101
1000 OK: 103 bacula-dir Version: 9.0.6 (20 November 2017)
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
Enter autochanger drive[0]:
# 任意のボリューム名を入力
Enter new Volume name: Vol-20200213
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-20200213" Slot 0 ...
3000 OK label. VolBytes=227 VolABytes=0 VolType=1 Volume="Vol-20200213" Device="FileChgr1-Dev1" (/tmp)
Catalog record for Volume "Vol-20200213", 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: bacula-fd
FileSet: Full Set
Pool: File (From Job resource)
Storage: File1 (From Job resource)
When: 2020-02-12 19:35:47
Priority: 10
OK to run? (yes/mod/no): yes
Job queued. JobId=1
You have messages.
# メッセージ (ログ) を表示
*messages
12-Feb 19:35 bacula-dir JobId 1: No prior Full backup Job record found.
12-Feb 19:35 bacula-dir JobId 1: No prior or suitable Full backup found in catalog. Doing FULL backup.
12-Feb 19:35 bacula-dir JobId 1: Start Backup JobId 1, Job=BackupClient1.2020-02-12_19.35.53_05
12-Feb 19:35 bacula-dir JobId 1: Using Device "FileChgr1-Dev1" to write.
12-Feb 19:35 bacula-sd JobId 1: Wrote label to prelabeled Volume "Vol-20200213" on File device "FileChgr1-Dev1" (/tmp)
12-Feb 19:35 bacula-sd JobId 1: Elapsed time=00:00:01, Transfer rate=952 Bytes/second
12-Feb 19:35 bacula-sd JobId 1: Sending spooled attrs to the Director. Despooling 1,098 bytes ...
12-Feb 19:35 bacula-dir JobId 1: Bacula bacula-dir 9.0.6 (20Nov17):
Build OS: x86_64-redhat-linux-gnu redhat (Core)
JobId: 1
Job: BackupClient1.2020-02-13_13.35.53_05
Backup Level: Full (upgraded from Incremental)
Client: "bacula-fd" 9.0.6 (20Nov17) x86_64-redhat-linux-gnu,redhat,(Core)
FileSet: "Full Set" 2020-02-12 19:35:53
Pool: "File" (From Job resource)
Catalog: "MyCatalog" (From Client resource)
Storage: "File1" (From Job resource)
Scheduled time: 12-Feb-2020 19:35:47
Start time: 12-Feb-2020 19:35:56
End time: 12-Feb-2020 19:35:56
Elapsed time: 1 sec
Priority: 10
FD Files Written: 6
SD Files Written: 6
FD Bytes Written: 394 (394 B)
SD Bytes Written: 952 (952 B)
Rate: 0.4 KB/s
Software Compression: None
Comm Line Compression: 1.8% 1.0:1
Snapshot/VSS: no
Encryption: no
Accurate: no
Volume name(s): Vol-20200213
Volume Session Id: 1
Volume Session Time: 1581567347
Last Volume Bytes: 1,747 (1.747 KB)
Non-fatal FD errors: 0
SD Errors: 0
FD termination status: OK
SD termination status: OK
Termination: Backup OK
12-Feb 19:35 bacula-dir JobId 1: Begin pruning Jobs older than 6 months .
12-Feb 19:35 bacula-dir JobId 1: No Jobs found to prune.
12-Feb 19:35 bacula-dir JobId 1: Begin pruning Files.
12-Feb 19:35 bacula-dir JobId 1: No Files found to prune.
12-Feb 19:35 bacula-dir JobId 1: End auto prune.
*exit
[root@dlp ~]#
total 4
drwx------. 3 root root 17 Feb 12 10:23 systemd-private-e3923256cb724d9fa8091054d65cbf15-chronyd.service-U4XZcS
drwx------. 3 root root 17 Feb 12 11:29 systemd-private-e3923256cb724d9fa8091054d65cbf15-mariadb.service-HLzEZb
-rw-r-----. 1 bacula tape 1747 Feb 12 19:35 Vol-20200213
# バックアップが取得された
|