bacula 备份恢复
一、数据恢复:
在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 备份恢复的更多相关文章
- bacula备份工具
源码下载:http://www.bacula.org bacula适合数据业务量巨大,每天都在迅速增长,还需要以tar打包方式进行低级备份而且没有异地容灾策略.Bacula是一个完美的增量备份功能,同 ...
- MySQL 系列(四)主从复制、备份恢复方案生产环境实战
第一篇:MySQL 系列(一) 生产标准线上环境安装配置案例及棘手问题解决 第二篇:MySQL 系列(二) 你不知道的数据库操作 第三篇:MySQL 系列(三)你不知道的 视图.触发器.存储过程.函数 ...
- 基于MySQL MEB的备份恢复
MEB(MySQL Enterprise Backup)是MySQL商业版中提供的备份工具,属于物理备份. 同XtraBackup一样,mysqlbackup的使用过程同样包含如下三个步骤: 备份(- ...
- Xtrabackup原理及使用innobackupex进行MySQL数据库备份恢复
Xtrabackup是由percona提供的mysql数据库备份工具,据官方介绍,这也是世界上惟一一款开源的能够对innodb和xtradb数据库进行热备的工具. Xtrabackup中主要包含两个工 ...
- 在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 ...
- mongodb 的备份恢复导入与导出
导入导出 use hndb; db.s.save({name:'李四',age:18,score:80,address:'郑州'}); db.s.save({name:'李三',age:8,score ...
- [转]PLSQL Developer备份恢复oracle数据
本文转自:http://www.cnblogs.com/iampkm/archive/2013/06/09/3128273.html 使用PL sql提供的功能可以快速的备份恢复oracle数据. 1 ...
- MongoDB学习(三)数据导入导出及备份恢复
这几天想着公司要用MongoDB,自然就要用到数据导入导出,就自己学习了一下. 在Mongo学习(二)中就讲到了在bin目录下有一些工具,本篇就是使用这些工具进行数据的导入导出及备份恢复. 注意:以下 ...
- Oracle RMAN备份恢复指导书
目 录 1 目的与范围... 1 2 术语和定义... 1 3 角色和职责... 2 4 使用RMAN备份数据库... 2 4.1.1 检查数据库模式... 2 4.1.2 连接到target数据库. ...
随机推荐
- php 结合md5的加密,解密方法
php 结合md5的加密,解密方法 张映 发表于 2012-06-28 分类目录: php 标签:md5, php 最近在整理代码发现了一个不错的东西,结合md5的加解密算法.网上关于php结合md5 ...
- 学习spring in action 第一天
这段时间,开始学习java吧,因为C sharp 学习了java的大量语法格式,所以,留意下,就不会错了,java 有的c sharp也有,而且之前我也学习过java的桌面开发,但是一下子上来就要自己 ...
- CPU亲和力
http://blog.chinaunix.net/uid-27714502-id-3515874.html http://www.tuicool.com/articles/I7NFzy http:/ ...
- 第一百九十七节,jQuery EasyUI,LinkButton(按钮)组件
jQuery EasyUI,LinkButton(按钮)组件 学习要点: 1.加载方式 2.属性列表 3.方法列表 本节课重点了解 EasyUI 中 LinkButton(按钮)组件的使用方法,这个组 ...
- ManicTime软件破解版自用
ManicTime(时间管理软件)专业版 附破解教程 By tchivs - 『脱壳破解区』 - 吾爱破解 - LCG - LSG |安卓破解|病毒分析|破解软件|www.52pojie.cn htt ...
- javascript iframe 操作(一)
[兼容所有浏览器 包括IE7/8/9] 1.父页面中获取IFRAME的WINDOW对象 获得了window对象后,就可以调用iframe页面中定义的方法等. IE:可以通过iframeId.windo ...
- VC++ 得到的函数地址与实际函数地址不一致的原因。
我想试验一个计算汇编指令长度的代码是否正确,因而写了如下code进行验证,但结果非常奇怪 #include <stdio.h> #include <Windows.h> int ...
- python静态网页爬虫之xpath
常用语句: 1.starts-with(@属性名称,属性字符相同部分)使用情形: 以相同的字符开头 <div id = 'test-1'>需要的内容1</div> <di ...
- VIM快速使用
1.VIM键盘图[转] 2.vi复制多行文本的方法 2.1 方法1:光标放到第6行, 输入:2yy 光标放到第9行, 输入:p 此方法适合复制少量行文本的情况,复制第6行(包括)下面的2行数据,放到第 ...
- Tomcat虚拟目录
x先来看一段server.xml文件里的配置: <Host appBase="" autoDeploy="true" debug="0" ...


