一、数据恢复:
在bacula服务器执行:
/opt/bacula/etc/ bconsole #进入交互窗口
*restore   #输入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:
: List last Jobs run
: List Jobs where a given File is saved
: Enter list of comma separated JobIds to select
: Enter SQL list command
: Select the most recent backup for a client
: Select backup for a client before a specified time
: Enter a list of files to restore
: Enter a list of files to restore before a specified time
: Find the JobIds of the most recent backup for a client
: Find the JobIds for a backup for a client before a specified time
: Enter a list of directories to restore for found JobIds
: Select full restore to a specified Job date
: Cancel
Select item: (-): #选择5
Defined Clients:
: ---
: 192.168.9.70-fd
: 192.168.9.71-fd
:
: DianTaiShenBan
: GongWenJiaoHuan
: GongZuoGuanLi
: HaiYangJianCe
: NeiWangMenHu
: ShengJuMenHuJiu
: ShengJuMenHuXin
: ShuJuKu
: ZhiBiaoBaoSong
: anquanjuizhu98
: anquanjuizhu98data
: bacula-server-fd
: client-192.168.9.71
: localhost.localdomain-fd
Select the Client (-): #选择客户端公文交换系统
The defined FileSet resources are:
: gwjh-tomcat_xchg
: test
Select FileSet resource (-): #选择要还原的数据
+-------+-------+----------+---------------+---------------------+------------+
| JobId | Level | JobFiles | JobBytes | StartTime | VolumeName |
+-------+-------+----------+---------------+---------------------+------------+
| | F | | ,,, | -- :: | test |
+-------+-------+----------+---------------+---------------------+------------+
You have selected the following JobId: Building directory tree for JobId(s) ...
files inserted into the tree. You are now entering file selection mode where you add (mark) and
remove (unmark) files to be restored. No files are initially added, unless
you used the "all" keyword on the command line.
Enter "done" to leave this mode. cwd is: /
$ mark * #还原所有
files marked.
$ done
Bootstrap records written to /opt/bacula/working/bacula-server-dir.restore..bsr
Bootstrap records written to /opt/bacula/working/bacula-server-dir.restore..bsr The Job will require the following (*=>InChanger):
Volume(s) Storage(s) SD Device(s)
=========================================================================== test File1 FileChgr1 Volumes marked with "*" are in the Autochanger.
files selected to be restored.
Using Catalog "MyCatalog"
Run Restore job
JobName: RestoreFiles
Bootstrap: /opt/bacula/working/bacula-server-dir.restore..bsr
Where: /tmp/bacula-restores
Replace: Always
FileSet: Full Set
Backup Client: GongWenJiaoHuan
Restore Client: GongWenJiaoHuan
Storage: File1
When: -- ::
Catalog: MyCatalog
Priority:
Plugin Options:
OK to run? (yes/mod/no): mod #输入mod,选择还原到那里
Parameters to modify:
: Level
: Storage
: Job
: FileSet
: Restore Client
: When
: Priority
: Bootstrap
: Where
: File Relocation
: Replace
: JobId
: Plugin Options
Select parameter to modify (-):
Please enter the full path prefix for restore (/ for none): / #选择还原到原来的位置
Run Restore job
JobName: RestoreFiles
Bootstrap: /opt/bacula/working/bacula-server-dir.restore..bsr
Where:
Replace: Always
FileSet: Full Set
Backup Client: GongWenJiaoHuan
Restore Client: GongWenJiaoHuan
Storage: File1
When: -- ::
Catalog: MyCatalog
Priority:
Plugin Options:
OK to run? (yes/mod/no): yes #执行操作
Job queued. JobId=
二、数据验证:
去还原的目录查看有无还原的数据:
进行MD5验证:
恢复之前的MD5值:
恢复后的MD5值:
两个一样则表明数据一样。

bacula 备份恢复的更多相关文章

  1. bacula备份工具

    源码下载:http://www.bacula.org bacula适合数据业务量巨大,每天都在迅速增长,还需要以tar打包方式进行低级备份而且没有异地容灾策略.Bacula是一个完美的增量备份功能,同 ...

  2. MySQL 系列(四)主从复制、备份恢复方案生产环境实战

    第一篇:MySQL 系列(一) 生产标准线上环境安装配置案例及棘手问题解决 第二篇:MySQL 系列(二) 你不知道的数据库操作 第三篇:MySQL 系列(三)你不知道的 视图.触发器.存储过程.函数 ...

  3. 基于MySQL MEB的备份恢复

    MEB(MySQL Enterprise Backup)是MySQL商业版中提供的备份工具,属于物理备份. 同XtraBackup一样,mysqlbackup的使用过程同样包含如下三个步骤: 备份(- ...

  4. Xtrabackup原理及使用innobackupex进行MySQL数据库备份恢复

    Xtrabackup是由percona提供的mysql数据库备份工具,据官方介绍,这也是世界上惟一一款开源的能够对innodb和xtradb数据库进行热备的工具. Xtrabackup中主要包含两个工 ...

  5. 在Linux操作系统下备份恢复技术的应用 转自https://yq.aliyun.com/articles/50205?spm=5176.100239.blogcont24250.9.CfBYE9

    摘要: 安全防护:在Linux操作系统下备份恢复技术的应用  原文参见:http://linux.chinaunix.net/techdoc/system/2005/12/19/925898.shtm ...

  6. mongodb 的备份恢复导入与导出

    导入导出 use hndb; db.s.save({name:'李四',age:18,score:80,address:'郑州'}); db.s.save({name:'李三',age:8,score ...

  7. [转]PLSQL Developer备份恢复oracle数据

    本文转自:http://www.cnblogs.com/iampkm/archive/2013/06/09/3128273.html 使用PL sql提供的功能可以快速的备份恢复oracle数据. 1 ...

  8. MongoDB学习(三)数据导入导出及备份恢复

    这几天想着公司要用MongoDB,自然就要用到数据导入导出,就自己学习了一下. 在Mongo学习(二)中就讲到了在bin目录下有一些工具,本篇就是使用这些工具进行数据的导入导出及备份恢复. 注意:以下 ...

  9. Oracle RMAN备份恢复指导书

    目 录 1 目的与范围... 1 2 术语和定义... 1 3 角色和职责... 2 4 使用RMAN备份数据库... 2 4.1.1 检查数据库模式... 2 4.1.2 连接到target数据库. ...

随机推荐

  1. iOS自定义转场动画实战讲解

    iOS自定义转场动画实战讲解   转场动画这事,说简单也简单,可以通过presentViewController:animated:completion:和dismissViewControllerA ...

  2. springmvc中action跳转

    return "redirect:/activity/listactivity.htm";

  3. LeetCode532. K-diff Pairs in an Array

    Description Given an array of integers and an integer k, you need to find the number of unique k-dif ...

  4. plsql programming 07 使用数据

    数据类型 char, Nchar varchar2, Nvarchar2 clob, Nclob number number(9, 2);  -- 定点小数, 小数点左边7位, 右边2位 number ...

  5. TP find() 查找

    如果用了find()进行查找数据.那么那么获取到这条对象的则是用find查找出的这条对象. 如果: $obj=$this->where('id'=>$id)->find(); 那么可 ...

  6. 有向图 加最少的边 成为强连通分量的证明 poj 1236 hdu 2767

    poj 1236: 题目大意:给出一个有向图, 任务一: 求最少的点,使得从这些点出发可以遍历整张图  任务二: 求最少加多少边 使整个图变成一个强连通分量. 首先任务一很好做, 只要缩点 之后 求 ...

  7. ajax的适用场景

    1.适用:基本所有的网站都有涉及到. 2.典型使用场景: 动态加载数据,按照需要取数据 改善用户体验 电子商务应用 访问第三方服务 数据局部刷新

  8. TensorFlow实战:Chapter-4(CNN-2-经典卷积神经网络(AlexNet、VGGNet))

    转载自:http://blog.csdn.net/u011974639/article/details/76146822 项目:https://www.cs.toronto.edu/~frossard ...

  9. redis 底层数据结构 整数集合intset

    整数集合是集合键的底层实现之一,当一个集合只包含整数值元素,并且这个集合的元素数量不多时Redis就会使用整数集合作为集合键的底层实现 整数集合是Redis用于保存整数值的集合抽象数据结构,它可以保存 ...

  10. sql duplicate key

    本文来自:高爽,转载请注明. 向数据库插入记录时,有时会有这种需求,当符合某种条件的数据存在时,去修改它,不存在时,则新增,也就是saveOrUpdate操作.这种控制可以放在业务层,也可以放在数据库 ...