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数据库. ...
随机推荐
- 常用校验算法CRC、MD5、SHA_转
1.算法概述 数据摘要算法是密码学算法中非常重要的一个分支,它通过对所有数据提取指纹信息以实现数据签名.数据完整性校验等功能,由于其不可逆性,有时候会被用做敏感信息的加密.数据摘要算法也被称为哈希(H ...
- hdu2588 GCD 给定n,m。求x属于[1,n]。有多少个x满足gcd(x,n)>=m; 容斥或者欧拉函数
GCD Time Limit: / MS (Java/Others) Memory Limit: / K (Java/Others) Total Submission(s): Accepted Sub ...
- Alluxio部署(local模式)
下载(pre-build for Hadoop 2.7) http://www.alluxio.org/download` 解压 tar -xvf alluxio-1.3.0-hadoop2.7-bi ...
- 配置LANMP环境(4)-- 安装MYSQL与安装相关软件,配置
一.安装MySQL 5.7 1.下载配置与安装 cd ~ wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm ...
- 第一百七十八节,jQuery-UI,知问前端--对话框 UI
jQuery-UI,知问前端--对话框 UI 学习要点: 1.开启多个 dialog 2.修改 dialog 样式 3.dialog()方法的属性 4.dialog()方法的事件 5.dialog 中 ...
- Spring MVC多解析器映射
如果想在spring mvc应用程序中使用多个视图解析器,那么可以使用order属性设置优先级顺序. 以下示例显示如何在Spring Web MVC框架中使用ResourceBundleViewRes ...
- 创建一个Material Design应用过程
创建一个使用Material主题的应用 1.这里需要先搭建一个应用的运行环境 创建一个AVD: 然后运行这个AVD. 2.创建应用 其中的Min SDK和Target SDK 都选择了L Preive ...
- 免安装mysql配置
1.下载压缩包:去官网下载免安装的MySQL的压缩包http://dev.mysql.com/downloads/mysql/根据机器选择64位或者32位: 2.解压到相应目录.我解压到了D:\Pro ...
- 阿里云里Centos 7 PHP7环境配置 LNMP
首先更新系统软件</str> $ yum update 安装nginx</str></str> 1.安装nginx源 $ yum localinstall http ...
- jconsole监控JVM
1.查找catalina.sh,使用tomcat中的catalina.sh 目录地址/opt/apache-tomcat-7.0.82/bin 2.配置JAVA_OPTS JAVA_OPTS=&quo ...


