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数据库. ...
随机推荐
- hmtl表单
表单: <form id="" name="" method="post/get" action="负责处理的服务端&quo ...
- iOS开发中邮箱,电话号码,身份证,密码,昵称正则表达式验证
//邮箱 + (BOOL) validateEmail:(NSString *)email { NSString *emailRegex = @"[A-Z0-9a-z._%+-]+@ ...
- x264_param_t结构体解释,设置及对应函数位置
typedef struct x264_param_t { /* CPU 标志位 */ unsigned int cpu; int i_threads; /* 并行编码多帧 */ in ...
- important——》sql server 2000安装图解
MS Sql Server 2000包含两个部分:服务器组件和客户端工具,其中服务器组建是以Windows服务的方式运行的,有四种服务分别是:MSSqlServer.Distributed Trans ...
- java中.currentTimeMillis的用法和含义
用法:可以用法获取当前时间的毫秒数,可以通过毫秒数进行时间比较,时间转化以及时间格式化等.public class SystemTime {public static void main(String ...
- Spring学习笔记及资源
极客学院团队出品 Spring 教程 http://wiki.jikexueyuan.com/project/spring/ Spring 提供了以下两种不同类型的容器. 序号 容器 & 描 ...
- poj 3686(拆点+最小权匹配)
题目链接:http://poj.org/problem?id=3686 思路:显然工件为X集,机器为Y集合.由于每个机器一次只能加工一个部件,因此我们可以将一台机器拆成N个点,至于部件与机器之间连多大 ...
- Android无线测试之—UiAutomator UiObject API介绍二
点击与长按 一.组件区域位置关系 Rect 对象代表一个矩形区域 [Left,Top] [Right,Bottom] 二.点击与长按API 返回值 API 描述 boolean click() 点击对 ...
- CSS如何清除浮动流的多种方案
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...
- FW 配置一个私有的Docker仓库
思维 66 3月1日 发布 建分支 0 分支 收藏 0 收藏 我们在本地开发时,如果内网能部署一台Docker服务器,无疑会极大的方便镜像的分享发布,有些私有镜像就是可以直接放到内网服务器上,省去了不 ...


