CentOS 7
Sponsored Link

Bacula : バックアップの操作2015/07/21

 
バックアップの操作方法です。
作業はサーバー/クライアントのどちらからでも可能です。当例ではサーバー上で実行します。
[1] バックアップを実行します。
[root@dlp ~]#
bconsole

Connecting to Director dlp.srv.world:9101
1000 OK: bacula-dir Version: 5.2.13 (19 February 2013)
Enter a period to cancel a command.
*
label
   
# バックアップ用ボリューム作成

Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
Automatically selected Storage: File
Enter new Volume name:
Vol-20150721
   
# 任意のラベル名を付与

Defined Pools:
     1: Default
     2: File
     3: Scratch
Select the Pool (1-3):
2
   
# 例として 2 を選択

Connecting to Storage daemon File at dlp.srv.world:9103 ...
Sending label command for Volume "Vol-20150721" Slot 0 ...
3000 OK label. VolBytes=207 DVD=0 Volume="Vol-20150721" Device="FileStorage" (/tmp)
Catalog record for Volume "Vol-20150721", Slot 0  successfully created.
Requesting to mount FileStorage ...
3906 File device ""FileStorage" (/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
   
# 定義したJobを選択 ( 例として 1 を選択 )
Run Backup job
JobName:  BackupClient1
Level:    Incremental
Client:   bacula-fd
FileSet:  Full Set
Pool:     File (From Job resource)
Storage:  File (From Job resource)
When:     2015-07-21 23:47:30
Priority: 10
OK to run? (yes/mod/no):
yes
   
# 実行

Job queued. JobId=1
You have messages.
*
messages
   
# メッセージを表示

22-Jul 14:48 bacula-dir JobId 1: No prior Full backup Job record found.
22-Jul 14:48 bacula-dir JobId 1: No prior or suitable Full backup found in catalog. Doing FULL backup.
22-Jul 14:48 bacula-dir JobId 1: Start Backup JobId 1, Job=BackupClient1.2015-07-21_23.48.20_04
22-Jul 14:48 bacula-dir JobId 1: Using Device "FileStorage" to write.
22-Jul 14:48 bacula-sd JobId 1: Wrote label to prelabeled Volume "Vol-20150721" on device "FileStorage" (/tmp)
22-Jul 14:48 bacula-sd JobId 1: Elapsed time=00:00:01, Transfer rate=839  Bytes/second
22-Jul 14:48 bacula-dir JobId 1: Bacula bacula-dir 5.2.13 (19Jan13):
  Build OS:               x86_64-redhat-linux-gnu unknown unknown
  JobId:                  1
  Job:                    BackupClient1.2015-07-21_23.48.20_04
  Backup Level:           Full (upgraded from Incremental)
  Client:                 "bacula-fd" 5.2.13 (19Jan13) x86_64-redhat-linux-gnu,unknown,unknown
  FileSet:                "Full Set" 2015-07-21 23:48:20
  Pool:                   "File" (From Job resource)
  Catalog:                "MyCatalog" (From Client resource)
  Storage:                "File" (From Job resource)
  Scheduled time:         21-Jul-2015 23:47:30
  Start time:             21-Jul-2015 23:48:23
  End time:               21-Jul-2015 23:48:23
  Elapsed time:           0 secs
  Priority:               10
  FD Files Written:       5
  SD Files Written:       5
  FD Bytes Written:       369 (369 B)
  SD Bytes Written:       839 (839 B)
  Rate:                   0.0 KB/s
  Software Compression:   16.5 %
  VSS:                    no
  Encryption:             no
  Accurate:               no
  Volume name(s):         Vol-20150721
  Volume Session Id:      1
  Volume Session Time:    1437542407
  Last Volume Bytes:      1,578 (1.578 KB)
  Non-fatal FD errors:    0
  SD Errors:              0
  FD termination status:  OK
  SD termination status:  OK
  Termination:            Backup OK

21-Jul 23:48 bacula-dir JobId 1: Begin pruning Jobs older than 6 months .
21-Jul 23:48 bacula-dir JobId 1: No Jobs found to prune.
21-Jul 23:48 bacula-dir JobId 1: Begin pruning Files.
21-Jul 23:48 bacula-dir JobId 1: No Files found to prune.
21-Jul 23:48 bacula-dir JobId 1: End auto prune.

*
exit
   
# 終了
[root@dlp ~]#
ll /tmp

total 4
drwx------ 3 root   root   16 Jul 22 11:33 systemd-private-L0EOqu
drwx------ 3 root   root   16 Jul 22 11:43 systemd-private-OMXOwg
-rw-r----- 1 bacula tape 1578 Jul 22 14:48 Vol-20150721
# バックアップが取得された

関連コンテンツ