9.3. Bacula, the Open Source, Enterprise ready, Network Backup Tool for Linux, Unix, Mac and Windows.

本文涉及的产品
云数据库 RDS MySQL,集群系列 2核4GB
推荐场景:
搭建个人博客
RDS MySQL Serverless 基础系列,0.5-2RCU 50GB
云数据库 RDS PostgreSQL,集群系列 2核4GB
简介:

http://www.bacula.org/

ubuntu 10.10

neo@backup:~$ apt-cache search bacula
bacula - network backup, recovery and verification - meta-package
bacula-client - network backup, recovery and verification - client meta-package
bacula-common - network backup, recovery and verification - common support files
bacula-common-mysql - network backup, recovery and verification - MySQL common files
bacula-common-pgsql - network backup, recovery and verification - PostgreSQL common files
bacula-common-sqlite3 - network backup, recovery and verification - SQLite v3 common files
bacula-console - network backup, recovery and verification - text console
bacula-director-common - network backup, recovery and verification - Director common files
bacula-director-mysql - network backup, recovery and verification - MySQL storage for Director
bacula-director-pgsql - network backup, recovery and verification - PostgreSQL storage for Director
bacula-director-sqlite3 - network backup, recovery and verification - SQLite 3 storage for Director
bacula-fd - network backup, recovery and verification - file daemon
bacula-sd - network backup, recovery and verification - storage daemon
bacula-sd-mysql - network backup, recovery and verification - MySQL SD tools
bacula-sd-pgsql - network backup, recovery and verification - PostgreSQL SD tools
bacula-sd-sqlite3 - network backup, recovery and verification - SQLite 3 SD tools
bacula-server - network backup, recovery and verification - server meta-package
bacula-console-qt - Bacula Administration Tool Console
bacula-director-sqlite - network backup, recovery and verification - SQLite 2 director transition
bacula-doc - Documentation for Bacula
bacula-sd-sqlite - network backup, recovery and verification - SQLite SD tools
bacula-traymonitor - network backup, recovery and verification - tray monitor
	

9.3.1. Install Backup Server

过程 9.3. 

  1. 安装bacula服务器

    $ sudo apt-get install bacula
    				

    启动脚本.

    neo@backup:/etc/bacula$ ls -1 /etc/init.d/bacula-*
    /etc/init.d/bacula-director
    /etc/init.d/bacula-fd
    /etc/init.d/bacula-sd
    				

    Bacula Config files

    neo@backup:~$ ls -1 /etc/bacula/
    bacula-dir.conf
    bacula-fd.conf
    bacula-sd.conf
    bconsole.conf
    common_default_passwords
    scripts
    				

    Checking Bacula Daemons Status

    neo@backup:~$ ps auwx | grep bacula
    bacula   25044  0.0  0.1  72624  2092 ?        Ssl  14:55   0:00 /usr/sbin/bacula-sd -c /etc/bacula/bacula-sd.conf -u bacula -g tape
    root     25659  0.0  0.0  60068  1376 ?        Ssl  14:56   0:00 /usr/sbin/bacula-fd -c /etc/bacula/bacula-fd.conf
    bacula   29551  0.0  0.1  87672  3096 ?        Ssl  15:48   0:00 /usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf -u bacula -g bacula
    neo      30344  0.0  0.0   7748   876 pts/0    S+   15:57   0:00 grep --color=auto bacula
    				
  2. bconsole

    neo@backup:/etc/bacula$ sudo bconsole
    Connecting to Director localhost:9101
    1000 OK: backup.example.com-dir Version: 5.0.2 (28 April 2010)
    Enter a period to cancel a command.
    *help
      Command       Description
      =======       ===========
      add           Add media to a pool
      autodisplay   Autodisplay console messages
      automount     Automount after label
      cancel        Cancel a job
      create        Create DB Pool from resource
      delete        Delete volume, pool or job
      disable       Disable a job
      enable        Enable a job
      estimate      Performs FileSet estimate, listing gives full listing
      exit          Terminate Bconsole session
      gui           Non-interactive gui mode
      help          Print help on specific command
      label         Label a tape
      list          List objects from catalog
      llist         Full or long list like list command
      messages      Display pending messages
      memory        Print current memory usage
      mount         Mount storage
      prune         Prune expired records from catalog
      purge         Purge records from catalog
      python        Python control commands
      quit          Terminate Bconsole session
      query         Query catalog
      restore       Restore files
      relabel       Relabel a tape
      release       Release storage
      reload        Reload conf file
      run           Run a job
      status        Report status
      setdebug      Sets debug level
      setip         Sets new client address -- if authorized
      show          Show resource records
      sqlquery      Use SQL to query catalog
      time          Print current time
      trace         Turn on/off trace to file
      unmount       Unmount storage
      umount        Umount - for old-time Unix guys, see unmount
      update        Update volume, pool or stats
      use           Use catalog xxx
      var           Does variable expansion
      version       Print Director version
      wait          Wait until no jobs are running
    
    When at a prompt, entering a period cancels the command.
    
    *
    				
  3. 修改配置文件,增加备份策略.

    备份配置文件,以免把文件改坏。

    root@backup:~# cd /etc/bacula/
    root@backup:/etc/bacula# mkdir original
    root@backup:/etc/bacula# cp *.conf original/
    root@backup:/etc/bacula#
    				

    bacula-dir.conf

    root@backup:/etc/bacula# vim bacula-dir.conf
    Job {
      Name = "BackupClient2"
      Client = web-fd
      JobDefs = "DefaultJob"
    }
    
    				

9.3.2. Install Backup Client

  • neo@web:~$ sudo apt-get install bacula-client
    				




原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

相关实践学习
如何在云端创建MySQL数据库
开始实验后,系统会自动创建一台自建MySQL的 源数据库 ECS 实例和一台 目标数据库 RDS。
全面了解阿里云能为你做什么
阿里云在全球各地部署高效节能的绿色数据中心,利用清洁计算为万物互联的新世界提供源源不断的能源动力,目前开服的区域包括中国(华北、华东、华南、香港)、新加坡、美国(美东、美西)、欧洲、中东、澳大利亚、日本。目前阿里云的产品涵盖弹性计算、数据库、存储与CDN、分析与搜索、云通信、网络、管理与监控、应用服务、互联网中间件、移动服务、视频服务等。通过本课程,来了解阿里云能够为你的业务带来哪些帮助     相关的阿里云产品:云服务器ECS 云服务器 ECS(Elastic Compute Service)是一种弹性可伸缩的计算服务,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。产品详情: https://www.aliyun.com/product/ecs
目录
相关文章
|
1月前
|
iOS开发 MacOS Windows
Mac air使用Boot Camp安装win10 ,拷贝 Windows 文件时出错
Mac air使用Boot Camp安装win10 ,拷贝 Windows 文件时出错
|
15天前
|
存储 Linux 编译器
cmake的单目录和多目录的使用(Linux和Windows)
本文介绍了在Windows和Linux平台上使用CMake构建单目录和多目录项目的步骤,包括如何配置CMakeLists.txt文件以及如何生成和使用可执行文件、库文件。
14 2
|
6天前
|
Linux
linux/mac 下查看、修改文件权限的命令
这篇文章介绍了在Linux和Mac操作系统下如何查看和修改文件及文件夹的权限。
13 0
|
9天前
|
关系型数据库 MySQL Linux
Navicat 连接 Windows、Linux系统下的MySQL 各种错误,修改密码。
使用Navicat连接Windows和Linux系统下的MySQL时可能遇到的四种错误及其解决方法,包括错误代码2003、1045和2013,以及如何修改MySQL密码。
79 0
|
29天前
|
Unix Linux Python
Cron定时设置在linux和mac中的使用
文章详细说明了如何在Linux和Mac操作系统中使用Cron进行定时任务的设置,并提供了多个Cron表达式的实例。
33 0
|
2月前
|
Unix Linux Ruby
在windows和linux上高效快捷地发布Dash应用
在windows和linux上高效快捷地发布Dash应用
|
1月前
|
Linux 开发者 Python
从Windows到Linux,Python系统调用如何让代码飞翔🚀
【9月更文挑战第10天】在编程领域,跨越不同操作系统的障碍是常见挑战。Python凭借其“编写一次,到处运行”的理念,显著简化了这一过程。通过os、subprocess、shutil等标准库模块,Python提供了统一的接口,自动处理底层差异,使代码在Windows和Linux上无缝运行。例如,`open`函数在不同系统中以相同方式操作文件,而`subprocess`模块则能一致地执行系统命令。此外,第三方库如psutil进一步增强了跨平台能力,使开发者能够轻松编写高效且易维护的代码。借助Python的强大系统调用功能,跨平台编程变得简单高效。
30 0
|
2月前
|
Linux Windows Python
最新 Windows\Linux 后台运行程序注解
本文介绍了在Windows和Linux系统后台运行程序的方法,包括Linux系统中使用nohup命令和ps命令查看进程,以及Windows系统中通过编写bat文件和使用PowerShell启动隐藏窗口的程序,确保即使退出命令行界面程序也继续在后台运行。
|
9天前
|
Linux 数据安全/隐私保护 Windows
命令方式:window向linux传文件
【10月更文挑战第6天】本文介绍了如何在Linux系统中通过命令`ip a`获取IP地址,并在Windows系统下使用CMD命令行工具和SCP命令实现文件传输。示例展示了如何将D盘中的`mm.jar`文件上传至IP地址为192.168.163.122的Linux系统的/up/目录下,最后在Linux系统中确认文件传输结果。
158 65
|
8天前
|
Web App开发 网络协议 Linux
linux命令总结(centos):shell常用命令汇总,平时用不到,用到就懵逼忘了,于是专门写了这篇论文,【便持续更新】
这篇文章是关于Linux命令的总结,涵盖了从基础操作到网络配置等多个方面的命令及其使用方法。
32 1
linux命令总结(centos):shell常用命令汇总,平时用不到,用到就懵逼忘了,于是专门写了这篇论文,【便持续更新】