bacula完全恢複與不完全恢複功能的實戰示範

來源:互聯網
上載者:User

一、執行個體示範bacula的完全恢複功能

1、通過差異備份進行完全恢複

操作步驟如下:

*status  Status available for:       1: Director       2: Storage       3: Client       4: All  Select daemon type for status (1-4): 1  f10-64-build-dir Version: 3.0.2 (18 July 2009) x86_64-unknown-linux-gnu redhat   Daemon started 21-Aug-09 15:01, 1 Job run since started.   Heap: heap=253,952 smbytes=84,808 max_bytes=85,641 bufs=266 max_bufs=279      Scheduled Jobs:  Level          Type     Pri  Scheduled          Name               Volume =======================================================================  Incremental    Backup    10  21-Aug-09 23:05    Client1            cicro4  Incremental    Backup    10  21-Aug-09 23:05    Client             cicro4  Incremental    Backup    10  21-Aug-09 23:05    BackupCatalog      cicro4       Running Jobs:  Console connected at 21-Aug-09 16:32  Console connected at 21-Aug-09 16:33  No Jobs running.       Terminated Jobs:   JobId  Level    Files      Bytes   Status   Finished        Name   ====================================================================      64                3    77.44 K  OK       19-Aug-09 16:57 RestoreFiles      65                1         0   OK       19-Aug-09 16:58 RestoreFiles      66                2    38.77 K  OK       19-Aug-09 16:59 RestoreFiles      67  Full         25    145.5 M  OK       21-Aug-09 13:41 Client1      68  Incr          2    3.908 M  OK       21-Aug-09 14:20 Client1      69  Full         26    149.4 M  OK       21-Aug-09 14:32 Client      70  Diff          2    3.908 M  OK       21-Aug-09 14:34 Client      71  Diff          3    7.817 M  OK       21-Aug-09 14:35 Client      72  Diff          4    11.72 M  OK       21-Aug-09 14:35 Client      73  Incr          4    11.72 M  OK       21-Aug-09 15:34 Client1

從這裡的備份狀態可知,JobId 為69的任務是一個完全備份,而JobId 為70、71、72的3個任務是差異備份。下面進行恢複操作:

* restore  Automatically selected Catalog: MyCatalog  Using Catalog "MyCatalog"     First you select one or more JobIds that contain files  to be restored. You will be presented several methods  of specifying the JobIds. Then you will be allowed to  select which files from those JobIds are to be restored.       To select the JobIds, you have the following choices:       1: List last 20 Jobs run       2: List Jobs where a given File is saved       3: Enter list of comma separated JobIds to select       4: Enter SQL list command       5: Select the most recent backup for a client       6: Select backup for a client before a specified time       7: Enter a list of files to restore       8: Enter a list of files to restore before a specified time       9: Find the JobIds of the most recent backup for a client      10: Find the JobIds for a backup for a client before a specified time      11: Enter a list of directories to restore for found JobIds      12: Select full restore to a specified JobId      13: Cancel  Select item:  (1-13): 3  Enter JobId(s), comma separated, to restore: 69,72  You have selected the following JobIds: 69,72

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.