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

本文涉及的产品
RDS MySQL Serverless 基础系列,0.5-2RCU 50GB
云数据库 RDS MySQL,集群系列 2核4GB
推荐场景:
搭建个人博客
云数据库 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 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

相关实践学习
如何快速连接云数据库RDS MySQL
本场景介绍如何通过阿里云数据管理服务DMS快速连接云数据库RDS MySQL,然后进行数据表的CRUD操作。
全面了解阿里云能为你做什么
阿里云在全球各地部署高效节能的绿色数据中心,利用清洁计算为万物互联的新世界提供源源不断的能源动力,目前开服的区域包括中国(华北、华东、华南、香港)、新加坡、美国(美东、美西)、欧洲、中东、澳大利亚、日本。目前阿里云的产品涵盖弹性计算、数据库、存储与CDN、分析与搜索、云通信、网络、管理与监控、应用服务、互联网中间件、移动服务、视频服务等。通过本课程,来了解阿里云能够为你的业务带来哪些帮助     相关的阿里云产品:云服务器ECS 云服务器 ECS(Elastic Compute Service)是一种弹性可伸缩的计算服务,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。产品详情: https://www.aliyun.com/product/ecs
目录
相关文章
|
6天前
|
存储 自然语言处理 安全
Arctera Backup Exec 25.0 Windows x64 - 数据备份和恢复
Arctera Backup Exec 25.0 Windows x64 - 数据备份和恢复
16 0
Arctera Backup Exec 25.0 Windows x64 - 数据备份和恢复
|
5月前
|
iOS开发 MacOS Windows
Mac air使用Boot Camp安装win10 ,拷贝 Windows 文件时出错
Mac air使用Boot Camp安装win10 ,拷贝 Windows 文件时出错
|
4月前
|
Linux
linux/mac 下查看、修改文件权限的命令
这篇文章介绍了在Linux和Mac操作系统下如何查看和修改文件及文件夹的权限。
158 0
|
5月前
|
Unix Linux Python
Cron定时设置在linux和mac中的使用
文章详细说明了如何在Linux和Mac操作系统中使用Cron进行定时任务的设置,并提供了多个Cron表达式的实例。
66 0
|
6月前
|
Ubuntu 安全 Unix
在Linux中,有哪几种linux/unix发行版本?
在Linux中,有哪几种linux/unix发行版本?
|
6月前
|
Linux 程序员 Python
python-office支持Mac和Linux吗?自动化办公用这个就够了
大家好,我是程序员晚枫。今天解答关于`python-office`是否支持Mac和Linux的问题。起初因需调用Office功能,该项目不完全支持这两个系统。现已通过拆分子项目解决了这一限制,例如`poexcel`可在多平台上运行Excel相关功能。只需简单修改导入语句,如使用`import poexcel`替代`import office`,即可在Mac和Linux上顺利执行。学习或使用中有任何疑问,欢迎留言交流!
|
6月前
|
Ubuntu Unix Linux
在Linux中,Unix和Linux之间的关系是什么?
在Linux中,Unix和Linux之间的关系是什么?
|
6月前
|
芯片 iOS开发 MacOS
Mac上运行windows软件-GPTK
Mac上运行windows软件-GPTK
312 1
|
6月前
|
Linux
【Linux 或Mac系统】自动生成项目结构目录并放在README.md文件中
如何在Linux或Mac系统中使用tree命令自动生成项目结构目录,并将其格式化后放入项目的README.md文件中以展示项目结构。
164 1
|
6月前
|
JavaScript 前端开发 Shell
mac和windows上安装nvm管理node版本
NVM(Node Version Manager)是前端开发者常用的命令行工具,用于管理计算机上的不同Node.js版本。通过NVM,开发者可以轻松地在多个项目间切换所需的Node.js版本。在Mac上,可以通过cURL或Wget下载安装脚本,或使用包管理工具brew安装。安装后需配置环境变量以识别NVM命令。Windows用户则可通过专用的nvm-windows安装程序完成安装。常用命令包括安装、卸载特定版本、列出已安装版本等。
382 0