关于bacula网络备份软件的安装以及配置3

简介:
现在去看看备份路径下面是否生成了备份文件

 

# du -sh *

9.7M    woyun

可以看到这个卷有9.4M的大小了,原来是4K的文件,再次证明了备份成功了.

 

下面做还原的操作,我们把client端的被备份目录下面文件进行删除
 
[root@localhost bacula]# rm -rf *

[root@localhost bacula]# ls

 

  然后我们到directory端进行还原

 

# ./bconsole

Connecting to Director 10.10.2.226:9101

1000 OK: linux-0fdr-dir Version: 2.4.3 (10 October 2008)

Enter a period to cancel a command.

* restore

Automatically selected Catalog: dbcatalog

Using Catalog "dbcatalog"

 

To select the JobIds, you have the following choices:

     1: List last 20 Jobs run

     2: List Jobs where a given File is saved

     3: Enter list of comma separated JobIds to select

     4: Enter SQL list command

     5: Select the most recent backup for a client

     6: Select backup for a client before a specified time

     7: Enter a list of files to restore

     8: Enter a list of files to restore before a specified time

     9: Find the JobIds of the most recent backup for a client

    10: Find the JobIds for a backup for a client before a specified time

    11: Enter a list of directories to restore for found JobIds

    12: Cancel

Select item:  (1-12):  5

Automatically selected Client: dbfd

Automatically selected FileSet: dbfs

+-------+-------+----------+-----------+---------------------+------------+

| JobId | Level | JobFiles | JobBytes  | StartTime           | VolumeName |

+-------+-------+----------+-----------+---------------------+------------+

|    54 | F     |    1,628 | 9,773,751 | 2009-08-25 15:23:18 | woyun      |

+-------+-------+----------+-----------+---------------------+------------+

You have selected the following JobId: 54

 

Building directory tree for JobId 54 ...  +++++++++++++++++++++++++++++++++++++++++++++++++

1 Job, 1,621 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 home

1,628 files marked.

$  done

Bootstrap records written to /var/bacula/working/linux-0fdr-dir.restore.1.bsr

 

The job will require the following

   Volume(s)                 Storage(s)                SD Device(s)

===========================================================================

  

   woyun                     dbsd                      dbdev                   

 

 

1,628 files selected to be restored.

 

Run Restore job

JobName:         restrory

Bootstrap:       /var/bacula/working/linux-0fdr-dir.restore.1.bsr

Where:           /home/bacula/

Replace:         always

FileSet:         dbfs

Backup Client:   dbfd

Restore Client:  dbfd

Storage:         dbsd

When:            2009-08-25 16:09:03

Catalog:         dbcatalog

Priority:        10

OK to run? (yes/mod/no):  mod

Parameters to modify:

     1: Level

     2: Storage

     3: Job

     4: FileSet

     5: Restore Client

     6: When

     7: Priority

     8: Bootstrap

     9: Where

    10: File Relocation

    11: Replace

    12: JobId

Select parameter to modify (1-12):  9

Please enter path prefix for restore (/ for none): /home/bacula

Run Restore job

JobName:         restrory

Bootstrap:       /var/bacula/working/linux-0fdr-dir.restore.1.bsr

Where:           /home/bacula

Replace:         always

FileSet:         dbfs

Backup Client:   dbfd

Restore Client:  dbfd

Storage:         dbsd

When:            2009-08-25 16:09:03

Catalog:         dbcatalog

Priority:        10

OK to run? (yes/mod/no): yes

Job queued. JobId=55

* exit

 

OK 还原完成,我们现在到client端看看有什么还原回来

[root@localhost bacula]# ls

bacula-2.4.3    bacula-2.4.3.tar.gz

 

看到了已经还原回来了,说明我们的还原操作已经实现了.


本文转自wiliiwin 51CTO博客,原文链接:http://blog.51cto.com/wiliiwin/199297
相关文章
|
6月前
|
人工智能 运维 安全
配置驱动的动态 Agent 架构网络:实现高效编排、动态更新与智能治理
本文所阐述的配置驱动智能 Agent 架构,其核心价值在于为 Agent 开发领域提供了一套通用的、可落地的标准化范式。
2531 89
|
6月前
|
人工智能 安全 数据可视化
配置驱动的动态Agent架构网络:实现高效编排、动态更新与智能治理
本文系统性地提出并阐述了一种配置驱动的独立运行时Agent架构,旨在解决当前低代码/平台化Agent方案在企业级落地时面临困难,为Agent开发领域提供了一套通用的、可落地的标准化范式。
550 18
配置驱动的动态Agent架构网络:实现高效编排、动态更新与智能治理
|
5月前
|
网络协议 Linux 虚拟化
配置VM网络:如何设定静态IP以访问主机IP和互联网
以上就是设定虚拟机网络和静态IP地址的基本步骤。需要注意的是,这些步骤可能会因为虚拟机软件、操作系统以及网络环境的不同而有所差异。在进行设定时,应根据具体情况进行调整。
466 10
|
5月前
|
弹性计算 安全 应用服务中间件
阿里云渠道商:怎么配置阿里云网络ACL?
阿里云网络ACL是子网级无状态防火墙,支持精准流量控制、规则热生效且免费使用。本文详解5步配置流程,助您实现Web与数据库层的安全隔离,提升云上网络安全。
|
5月前
|
存储 机器学习/深度学习 监控
网络管理监控软件的 C# 区间树性能阈值查询算法
针对网络管理监控软件的高效区间查询需求,本文提出基于区间树的优化方案。传统线性遍历效率低,10万条数据查询超800ms,难以满足实时性要求。区间树以平衡二叉搜索树结构,结合节点最大值剪枝策略,将查询复杂度从O(N)降至O(logN+K),显著提升性能。通过C#实现,支持按指标类型分组建树、增量插入与多维度联合查询,在10万记录下查询耗时仅约2.8ms,内存占用降低35%。测试表明,该方案有效解决高负载场景下的响应延迟问题,助力管理员快速定位异常设备,提升运维效率与系统稳定性。
292 4
|
5月前
|
机器学习/深度学习 人工智能 监控
上海拔俗AI软件定制:让技术真正为你所用,拔俗网络这样做
在上海,企业正通过AI软件定制破解通用化难题。该模式以业务场景为核心,量身打造智能解决方案,涵盖场景化模型开发、模块化架构设计与数据闭环优化三大技术维度,推动技术与业务深度融合,助力企业实现高效、可持续的数字化转型。
210 0
|
监控 数据可视化 Linux
Cisco Nexus Dashboard 4.1(1g) 发布 - 云和数据中心网络管理软件
Cisco Nexus Dashboard 4.1(1g) - 云和数据中心网络管理软件
254 0
|
7月前
|
存储 监控 Linux
Dell OpenManage Enterprise 4.5 - Dell 服务器、存储和网络设备集中管理软件
Dell OpenManage Enterprise 4.5 - Dell 服务器、存储和网络设备集中管理软件
201 0
|
8月前
|
存储 监控 算法
基于 Python 跳表算法的局域网网络监控软件动态数据索引优化策略研究
局域网网络监控软件需高效处理终端行为数据,跳表作为一种基于概率平衡的动态数据结构,具备高效的插入、删除与查询性能(平均时间复杂度为O(log n)),适用于高频数据写入和随机查询场景。本文深入解析跳表原理,探讨其在局域网监控中的适配性,并提供基于Python的完整实现方案,优化终端会话管理,提升系统响应性能。
225 4

热门文章

最新文章