二、实例演示bacula的增量备份功能
在上面的操作中,设定的备份资源Job本身就是一个增量备份,下面执行的备份操作与上面完全相同,不同的是,这里是第二次备份,bacula会按照设定执行增量备份,操作如下代码清单如下所示。
执行增量备份
* run Automatically selected Catalog: MyCatalog Using Catalog "MyCatalog" A job name must be specified. The defined Job resources are: 1: Client1 2: Client 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 14:20:24 Priority: 10 OK to run? (yes/mod/no): yes Job queued. JobId=68 *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 13:22, 2 Jobs run since started. Heap: heap=241,664 smbytes=84,576 max_bytes=97,749 bufs=218 max_bufs=252 Scheduled Jobs: Level Type Pri Scheduled Name Volume =============================================================================== Incremental Backup 10 21-Aug-09 23:05 Client1 cicro4 Running Jobs: Console connected at 21-Aug-09 14:19 No Jobs running. Terminated Jobs: JobId Level Files Bytes Status Finished Name ==================================================================== 59 Incr 2 3.908 M OK 19-Aug-09 16:51 Client1 60 Incr 2 8.377 K OK 19-Aug-09 16:52 Client1 61 Incr 1 0 OK 19-Aug-09 16:53 Client1 62 Incr 2 8.344 K OK 19-Aug-09 16:53 Client1 63 Incr 2 8.377 K OK 19-Aug-09 16:54 Client1 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
从最后的备份列表可以看出,系统进行了增量备份,“3.908 M”就是上次备份与这次备份之间的数据增加量。而JobId =68这个备份的Level级别为Incr也说明了此次备份为增量备份。