一、数据恢复:
在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 学习笔记六 【APP中的文字和APP名字的国际化多语言处理】

    今天为新手解决下APP中的文字和APP名字的国际化多语言处理, 不多说了,直接上步骤: 1.打开你的项目,单机project名字,选中project,直接看图吧: 2.创建Localizable.st ...

  2. Win10 Anaconda下TensorFlow-GPU环境搭建详细教程(包含CUDA+cuDNN安装过程)(转载)

    win7(win10也适用)系统安装GPU/CPU版tensorflow Win10 Anaconda下TensorFlow-GPU环境搭建详细教程(包含CUDA+cuDNN安装过程) 目录 2.配置 ...

  3. windows 下node版管理

    linux 下的node 多版本管理有nvm,windows 下同样有这样的工具gnvm 安装步骤(无node环境): 1.下载并解压缩 gnvm.exe 保存到任意文件夹,并将此文件夹加入到环境变量 ...

  4. Servlet 国际化

    在我们开始之前,先来看看三个重要术语: 国际化(i18n):这意味着一个网站提供了不同版本的翻译成访问者的语言或国籍的内容. 本地化(l10n):这意味着向网站添加资源,以使其适应特定的地理或文化区域 ...

  5. Python 爬虫实战5 模拟登录淘宝并获取所有订单

    经过多次尝试,模拟登录淘宝终于成功了,实在是不容易,淘宝的登录加密和验证太复杂了,煞费苦心,在此写出来和大家一起分享,希望大家支持. 本篇内容 python模拟登录淘宝网页 获取登录用户的所有订单详情 ...

  6. (phpQuery)对网站产品信息采集代码的优化

    a.要采集的源链接: http://www.prospecbio.com/Recombinant_Proteins/ b.具体要求:

  7. json responseJson

    private void doResoponseJson(HttpServletResponse resp,String jsonString){ Trace.logError(Trace.COMPO ...

  8. 数据库的SQL模式

    1.定义:何为MySQL的严格模式,简单来说就是MySQL自身对数据进行严格的校验(格式.长度.类型等),比如一个整型字段我们写入一个字符串类型的数据,在非严格模式下MySQL不会报错,同样如果定义了 ...

  9. cocos2d-x:七彩连珠

    大学前,我一直以为学计算机就是学做游戏,或者玩游戏...(我果断的用大学的差不多五分之二实践了后面半块.) 大学后,人们一直以为学计算机的就是 修电脑.装机.盗qq号.word.excel....最近 ...

  10. TP数据删除

    [数据删除及执行原生sql语句] delete()  返回受影响的记录条数 $goods -> delete(30);   删除主键值等于30的记录信息 $goods -> delete( ...