1.   Bacula Client安装配置

1.1.   linux客户端安装

1.1.1.  安装依赖包

yum install libacl libacl-devel

1.1.2.  Client安装

tar zxf bacula-9.2.2.tar.gz

cd bacula-9.2.2

CFLAGS="-g -Wall" ./configure \

--sbindir=/usr/local/bacula/bin \

--sysconfdir=/usr/local/bacula/etc \

--with-pid-dir=/usr/local/bacula/working \

--with-subsys-dir=/usr/local/bacula/working \

--with-working-dir=/usr/local/bacula/working \

--enable-client-only

make&&make install&&make install-autostart-fd

1.1.3.  Client配置

vi /usr/local/bacula/etc/bacula-fd.conf

Director {

Name = server-dir

# 此Name为Director的名称,即server端名称而非client的名称。

Password = "3ydivk+gipxRjqbNCdwUeNi8ZWhGh3NXyvHXPZLAgMZ1"

# 定义client的密码,director需要通过此密码连接客户端

}

Director {

Name = server-mon

# 此Name为tray-monitor的名称,即monitor的名称而非client的名称。

Password = "w1yPbENlbfCMNrsD2gMarzBfLb+I1+kRN/UhUM3s5+VB"

# 配置 tray-monitor监控密码,详见《Tray Monitor服务》。。

Monitor = yes

1.1.4.  Client启动

cd /usr/local/bacula/bin

./bacula start

1.2.   Windows客户端安装

1.2.1.  Client安装

选择自定义安装

选择Client即可(console可以查看服务端备份任务的状态等,可以不用安装)

输入Client端信息(Name:client名称、port:默认9102、Max Jobs:默认10、Password:在服务端的dir配置文件中查看Client的password)

DIR配置(用于查看备份job信息,可以不配置)

(DIR Name:服务端DIR、DIR:9101默认端口、DIR Password:在服务端的dir或bconsole配置文件中查看password、DIR Address:DIR地址)

1.2.2.  Client配置

安装完成后,默认配置默认位于C:\Program Files\Bacula ,配置文件为bacula-fd.conf

配置文件中:

Director {

Name = bacula9-dir

Password = "3Kr1keeYcx6+uTO2sex17fT0D6ht6wTVIblPiihxfBtU"

}

# 此处配置为允许哪个Director连接此客户端。

# Name为Server Director的name,Password为Director定义的该Client密码。

# Send all messages except skipped files back to Director

Messages {

Name = Standard

director = bacula9-dir = all, !skipped, !restored

}

# Restricted Director, used by tray-monitor to get the

#   status of the file daemon

Director {

Name = desktop-d3xfd32-mon

# 此Name为tray-monitor的名称,即monitor的名称而非client的名称。

Password = "mDDIpbaqqkJvnFIXBTR00vJZqsE6dXjWR3GE6s8/0DTp"

# 配置 tray-monitor监控密码,详见《Tray Monitor服务》。。

Monitor = yes

}

1.2.3.  Client启动

配置完成后可检测配置文件是否有误

C:\Users\sky>cd C:\Program Files\Bacula

C:\Program Files\Bacula>bacula-fd.exe -c "C:\Program Files\Bacula\bacula-fd.conf"

查看客户端服务状态

1.3.   通过bacula-dir.conf创建新备份(Server端)

vi bacula-dir.conf

… …

1.3.1.  添加备份计划

Schedule {

Name = "schedule1"

Run = Level=Full sun at 0:00

Run = Level=Incremental hourly at 0:00

}

1.3.2.  添加备份Pool

Pool {

Name = Pool1

Pool Type = Backup

Recycle = yes                       # Bacula can automatically recycle Volumes

AutoPrune = yes                     # Prune expired volumes

Volume Retention = 365 days         # one year

Maximum Volume Bytes = 50G          # Limit Volume size to something reasonable

Maximum Volumes = 100               # Limit number of Volumes in Pool

Label Format = "backup-"

}

1.3.3.  添加Client

# linux client

Client{

Name = "linux-fd"

Address = linuxip

FDPort = 9102

Catalog = MyCatalog

Password = "yn2FnKAoucIbFMLtESgdARYmFUvqjuPYITyeLKwDwd9k"

}

# windows client

Client{

Name = "windows-fd"

Address = windowsip

FDPort = 9102

Catalog = MyCatalog

Password = "Hl0eg0yNSOQr/hS3j1RFXlPdziSJRgft5EIp7KUkxrH+"

}

1.3.4.  定义需要备份的目录

# For linux

FileSet {

Name = "FileSet1"

Include {

Options {

signature = MD5

Compression = GZIP

}

File = /var/log/

}

}

# For windows

FileSet {

Name = "FileSet2"

Include {

Options {

signature = MD5

Compression = GZIP

}

File = "C:/myfiles"

}

}

1.3.5.  添加备份任务

# linux job

Job {

Name = "linux-backup1"

JobDefs = "DefaultJob"

Type = Backup

Client = "linux-fd"

FileSet = "FileSet1"

Storage = File1

Pool = Pool1

Schedule = "Schedule1"

}

Job {

Name = "linux-restores1"

Type = Restore

Client = "linux-fd"

FileSet = "FileSet1"

Storage = File1

Pool = Pool1

Messages = Standard

Where = /tmp

}

# windows job

Job {

Name = "windows-backup1"

JobDefs = "DefaultJob"

Type = Backup

Client = "windows-fd"

FileSet = "FileSet2"

Storage = File1

Pool = Pool1

Schedule = "Schedule1"

}

Job {

Name = "windows-restores1"

Type = Restore

Client = "windows-fd"

FileSet = "FileSet2"

Storage = File1

Pool = Pool1

Messages = Standard

Where = "c:/tmp"

}

1.4.   通过baculum-web创建新备份(需要安装Bacula-gui,后面会介绍)

1.4.1.  添加client

密码为client端定义的密码,登录client,查看该fd密码。

vi /usr/local/bacula/etc/bacula-fd.conf

#

Director {

Name = server-dir

Password = "7oV+FkA+JLKw1DtYOevB+CKAjHvfuGPctgtvLyHf9dji"

# client密码为该密码

}

1.4.2.  添加Fileset

Fileset定义需要备份的内容

1.4.3.  添加Schedule

Name:不能使用中文(通过界面创建schedule功能不全,建议通过bacula-dir.conf配置)

每月第一周周六晚上23:00

1.4.4.  添加job

1.4.4.1. 添加备份任务

Name:最好能从名字确定系统和备份类型(如:centos01-backup、windows01-restore)

Type:选择备份类型

Storage:选择File1

Pool:选择默认的File

Client:选择刚创建的client

Fileset:选择刚创建需要备份的目录

1.4.4.2. 添加restore任务

Name:最好能从名字确定系统和备份类型(如:centos01-backup、windows01-restore)

Type:选择备份类型(此处是restore)

Storage:选择File1

Pool:选择默认的File

Client:选择刚创建的client

Fileset:选择备份的那个目的fileset

1.4.5.  运行备份job

在Jobs中选中需要运行的job,单击Run job

Job配置Storage为File1,在运行的时候如果选择File2是无效的,备份还是保存在File1中。

在Dashboard中查看完成的任务

1.4.6.  运行还原job

选择备份任务

选择restore

选择需要还原的文件

选择还原位置(默认为restore任务中配置的还原位置)

选择restore job

3.Bacula Client安装配置的更多相关文章

  1. Oracle Instant Client 安装配置

    一.下载 下载地址:http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html 这是Ora ...

  2. ubuntu 12.04 nfs-server/client安装配置

    由于opennebula的共享存储的方式需要nfs,为了opennebula 3.8在ubuntu 12.04上搭建做铺垫,先介绍下nfs server和client端的安装和配置.   1. nfs ...

  3. zabbix client安装配置执行

    1 创建zabbix 用户 groupadd zabbix; useradd -g zabbix zabbix; passwd zabbix; 两次输入password 2 下载获得zabbix的包, ...

  4. 开源网络备份软件 bacula 的安装、配置和运行

    安装bacula 1 bacula的几种网络备份拓扑 前面文章介绍了bacula有5个组成部分,在实际的应用中,没有必要将5个部分分别放在不同的服务器上,它们之间的某些部分是可以合并的,常见的bacu ...

  5. CentOS7安装配置Bacula yum方法

    参考: https://www.baidu.com/link?url=o2QIy2YZWjsJPAFJuYFhrH3nPvtyRkSe-o5Q_FqFZ5E1EMOsIOmGeKm0HAonwHOw8 ...

  6. 2.Bacula Server端安装配置

    1.  Bacula Server端安装配置 1.1.  Bacula Server端安装 1.1.1.  安装bacula依赖包 For Centos6: yum install -y mysql ...

  7. PL/SQL Developer 和 Instant Client客户端安装配置

    一. 准备工作 1. 点击此下载 PL/SQL Developer 2. 点击此下载 Instant Client 二. 配置Instant Client 1. 新建  %安装目录%\network\ ...

  8. vSphere Web Client使用指南之安装配置

    vSphere Web Client使用指南之安装配置 vSphere Web Client是为忙碌的管理员提供的一款通用的.基于浏览器的VMware管理工具,能够监控并管理VMware基础设施.在摆 ...

  9. 安装配置oracle11gR2、client、plsql developer及学习

    本文是一个目录,以后会持续更新 1,安装oracle11gR2 https://www.cnblogs.com/suterfo/p/10659208.html 2,安装oracle client及配置 ...

随机推荐

  1. 华为Liteos移植到stm32F03ZE

    华为Liteos和物联网设备侧sdk移植到stm32F03ZE霸道板子上 推荐官方教程:https://liteos.github.io/ 啥是LIteos "开源免费"的实时操作 ...

  2. python如何发布自已pip项目

    python如何发布自已pip项目前言因为自已平时会把一个常用到逻辑写成一个工具python脚本,像关于时间字符串处理,像关于路径和文件夹遍历什么的工具.每一次新建一个项目的时候都要把这些工具程序复制 ...

  3. 让SNIPER-MXNet从标准的COCO格式数据集中直接使用file_name作为图片路径

    告别项目中“依index生成路径”的方法,直接使用我们在生成.json标签时就已经写入的图片路径(这里我写入的是绝对路径 full path)来获取图片. 需要做的,用以下代码替换SNIPER/lib ...

  4. window环境下zookeeper的安装(自用---仅供参考)

    转自: https://www.cnblogs.com/ysw-go/p/11396343.html 第一部分:单机模式 1)下载地址:http://www.pirbot.com/mirrors/ap ...

  5. docker教程(1) - 快速使用

    docker 笔记(1) --docker安装.获取镜像.启动容器.删除容器 一.安装 Docker 官方文档 根据官方文档整理简单流程 从Docker Hub下载mac包 运行磁盘镜像,将Docke ...

  6. VS编译错误._CRT_SECURE_NO_WARNINGS、_WINSOCK_DEPRECATED_NO_WARNINGS

    1.不记得原来的情况了,记得大概是这样: 低版本的 VC编译器 使用 strcpy.sprintf 等它不会报错,但是 高版本的 VS编译就会报错,大意是 strcpy.sprintf 等函数 不安全 ...

  7. 记录一次SignalR服务端实现过程

    前言:最近手上一个项目需要后端实时推送数据到前端,第一个想到的就是微软的SignalR,由于之前都是平时没事写的Demo,没有用到实际项目中,这次恰好用到了,因此记录下来整个实现过程(网上也有很多类似 ...

  8. vue 解决jsonp跨域

    在Vue中使用jsonp 参考链接:https://blog.csdn.net/m0_38134431/article/details/87930647 在vue中使用vue-jsonp 参考链接:h ...

  9. [LuoguP2159][SHOI2009]舞会_动态规划_高精度_排列组合

    舞会 题目链接:https://www.luogu.org/problem/P2159 数据范围:略. 题解: 不会.... 看了题解觉得自己好傻逼啊

  10. 关于keepalived执行后日志狂刷IPVS: Can't initialize ipvs: Protocol not available的问题

    安装了keepalived+lvs,达到了高可用的负载均衡,但是今天再启用的时候发现keepalived不正常,通过 /var/log/messages 查看系统日志发现狂刷 IPVS: Can't ...