bacula軟體備份功能的實戰示範

來源:互聯網
上載者:User

一、執行個體示範bacula的完全備份功能

1.建立卷組

執行如下命令,串連到bacula控制端,執行備份恢複操作:

[root@baculaserver opt]#/opt/bacula/sbin/bconsole  Connecting to Director 192.168.12.188:9101  1000 OK: f10-64-build-dir Version: 3.0.2 (18 July 2009)  Enter a period to cancel a command  *label  Automatically selected Storage: dbsd       Enter new Volume name: cicro4   #卷組名稱,可隨意指定,指定完畢後會在  #bacula-dir.conf檔案的指定位置產生一個cicro4檔案  Defined Pools:       1: dbpool       2: Scratch  Select the Pool (1-2): 1  #指定卷組的置放位置,即為SD名稱。  #Dbpool在bacula-dir.conf中定義  Connecting to Storage daemon dbsd at 192.168.12.188:9103 ...  #由於指定SD在  #192.168.12.188主機上,因此將卷cicro4建立到了此主機上  Sending label command for Volume "cicro4" Slot 0 ...  3000 OK label. VolBytes=191 DVD=0 Volume="cicro4" Device="dbdev" (/cicro/backup2)  Catalog record for Volume "cicro4", Slot 0  successfully created.  Requesting to mount dbdev ...  3906 File device "dbdev" (/cicro/backup2) is always mounted.

2.利用run命令執行備份操作

下面繼續在bacula控制端執行備份操作:

*run  A job name must be specified.  The defined Job resources are:        1: Client1  #這裡的Client1 是在bacula-dir.conf中定義的一個Job執行任務       2: Client   #這裡的Client 也是在bacula-dir.conf中定義的一個Job執行任務       3: BackupCatalog       4: RestoreFiles  Select Job resource (1-2): 1  Run Backup job  JobName:  Client1  Level:    Incremental  Client:   dbfd  FileSet:  dbfs  Pool:     dbpool (From Job resource)  Storage:  dbsd (From Job resource)  When:     2009-08-21 13:40:13  Priority: 10  OK to run? (yes/mod/no): yes  Job queued. JobId=67

到此為止,可以開始執行備份,在bacula-dir.conf檔案中定義的Client1是一個增量備份,因此這個備份只是個增量操作。由於這是第一個備份,因此預設Client1會做一個完全備,第二次備份時,才執行增量備份。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.