Anda di halaman 1dari 18

INSTALAO DO BACULA EM SERVIDOR

DEBIAN SQUEEZE
Objetivo: Realizar a implementao de um servidor de backup utilizando a ferramenta Bacula
Backup integrando seu servio com o gerenciamento web do servio Webmin. A instalao ser feita
em um servidor com Debian Squeeze.
Ambiente de Instalao:
Linux Debian Squeeze 6.0.6
Hostname: bacula / bacula.tidahora.com.br
IP Backup: 10.106.0.200
Parties:
/ = 4.6 Gbb
/boot = 276 Mb
/tmp = 1.9 Gb
/usr = 7.4 Gb
/var = 7.4 Gb
/var/log = 6.4 Gb
/srv/backup = 2.0 Tb
Pacotes Necessrios no Servidor:
- htop
- vim
- dstat
- postfix
ndice
INSTALANDO BANCO DE DADOS 1.
INSTALAO DO BACULA 2.
CRIANDO O USURIO DO BACULA NO MYSQL 3.
CONFIGURANDO O SERVIDOR BACULA 4.
CONFIGURANDO O DIRECTOR 5.
1. INSTALANDO BANCO DE DADOS
Instalao do Banco de Dados (MySQL):
apt-get -y install mysql-client mysql-common mysql-server-5.1
mysql-server-core-5.1 libmysqld-dev
Digite uma senha para root no MySQL:
Configurando mysql-server-5.1

Embora no seja obrigatrio, fortemente recomendado que defina uma

palavra-passe para o utilizador administrativo "root" do MySQL.

Se este campo for deixado vazio, a palavra-passe no ir ser alterada.

Nova palavra-passe para o utilizador "root" do MySQL:


_______________________________________________________________________

<Ok>



Configurando mysql-server-5.1


Repita a palavra-passe para o utilizador "root" do MySQL:

__________________________________________________________

<Ok>


2. INSTALAO DO BACULA
Instalao dos pacotes para configurao do Bacula:
apt-get -y install bacula-server bacula-sd bacula-fd bacula-sd-mysql
bacula-director-mysql bacula-console bacula-director-common
bacula-common-mysql bacula-common bacula
Ajustando o Banco de Dados (MySQL): Clique em yes:
Configuring bacula-director-mysql

The bacula-director-mysql package must have a database installed and


configured before
it can be used. This can be optionally handled with dbconfig-common.

If you are an advanced database administrator and know that you want to
perform this
configuration manually, or if your database has already been installed and
configured,
you should refuse this option. Details on what needs to be done should
most likely be
provided in /usr/share/doc/bacula-director-mysql.

Otherwise, you should probably choose this option.

Configure database for bacula-director-mysql with dbconfig-common?

<Yes> <No>

Digite a senha do MySQL configurada na instalao do Banco de dados:


Configuring bacula-director-mysql

Please provide the password for the administrative account with which
this package
should create its MySQL database and user.

Password of the database's administrative user:


****_________________________________________________________________________
_______

<Ok> <Cancel>

Redigite a senha:
Configuring bacula-director-mysql

Please provide a password for bacula-director-mysql to register with


the database
server. If left blank, a random password will be generated.

MySQL application password for bacula-director-mysql:

****
_____________________________________________________________________________
__

<Ok> <Cancel>

Confirme a senha para o Bacula-director-mysql:


Configuring bacula-director-mysql


Password confirmation:

____________________________________________

<Ok> <Cancel>


Aps a instalao os arquivos de configurao se encontram em: /etc/bacula/
3. CRIANDO O USURIO DO BACULA NO MYSQL
Conectar ao MySQL:
root@bacula [~] # mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 40
Server version: 5.1.49-3 (Debian)

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>
Como j temos o login criado para o bacula, vamos alterar a senha do usurio no MySQL:
mysql> SET PASSWORD FOR 'bacula'@'localhost' = PASSWORD('SENHA');

Query OK, 0 rows affected (0.00 sec)
Caso o usurio no tenha sido criado, faa o procedimento abaixo. Vamos criar o usurio 'bacula'
com a senha 'SENHA'
mysql> CREATE USER 'bacula'@'localhost' IDENTIFIED BY 'SENHA';
Query OK, 0 rows affected (0.00 sec)
Definindo a permisso para o usurio 'bacula' acessar a database do bacula.
mysql> use bacula;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> GRANT ALL PRIVILEGES ON bacula TO 'bacula'@'localhost' WITH GRANT
OPTION;
Query OK, 0 rows affected (0.00 sec)

mysql>
4. CONFIGURANDO O SERVIDOR BACULA
Acesse o diretrio do bacula:
cd /etc/bacula/
Fazendo backup dos arquivos originais do Bacula. Crie uma pasta em /root/.
mkdir /root/bacula/
Em seguida fazemos a cpia de backup e j movemos ao diretrio de backup dos arquivos.
mv bacula-dir.conf /root/bacula
mv bacula-sd.conf /root/bacula
mv bacula-fd.conf /root/bacula
O Bacula tem a opo de trabalhar resolvendo nomes dos seus clientes, podendo ser por DNS ou
pelo arquivo hosts. Para testes vamos utilizar o Hosts. Antes de dar sequencia a configurao
vamos ajustar o arquivo '/etc/hosts' com o nome do nosso servidor:
vi /etc/hosts
Deixando o arquivo conforme abaixo:
127.0.0.1 localhost

# Servidor de Backup Bacula
10.106.0.200 bacula.tidahora.com.br bacula

# Clientes de Backup Bacula


# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
5. CONFIGURANDO O DIRECTOR
Criando o arquivo bacula-dir.conf com as configuraes j ajustadas: Por padro o Bacula vem
com as opes de FileSets?, Shedules, e clientes no seu arquivo principal, o bacula-dir.conf, para
melhor administrao do servio ns vamos separar essas opes para um novo arquivo, cada funo
ter seu arquivo de configurao, mantendo assim o gerenciamento de forma mais limpa.
vi /etc/bacula/bacula-dir.conf
############################################
# ARQUIVO DE CONFIGURACAO PADRAO DO BACULA #
############################################

# DEFININDO O 'DIRECTOR' #

Director {
Name = bacula-dir
DIRport = 9101 # Porta de Comunicacao
do Bacula
QueryFile = "/etc/bacula/scripts/query.sql" # Script de Query
WorkingDirectory = "/var/lib/bacula" # Diretrio de Trabalho
do Bacula
PidDirectory = "/var/run/bacula" # PID do Bacula
Maximum Concurrent Jobs = 1 # Maximo de Backups em
Execucao
Password = "Cv70F6pf1t6pBopT4vQOnigDrR0v3L" # Senha para ajustar no
Bconsole
Messages = Daemon # Nivel de mensagens
}

# DEFINICOES DE CLIENTES E JOBS #
# ARQUIVO ONDE SERA CONFIGURADO E AJUSTADO OS CLIENTES E JOBS DO BACULA #

@/etc/bacula/bacula-dir-clients-and-jobs.conf

# DEFINICOES DE ARQUIVOS PARA BACKUP - (FILE SETS)#
# ARQUIVO ONDE SERA CONFIGURADO E AJUSTADO OS 'FILE SETS' DO BACULA #

@/etc/bacula/bacula-dir-filesets.conf


# DEFINICOES DE AGENDAMENTO DOS BACKUPS #
@/etc/bacula/bacula-dir-agendamento.conf


# DEFINICOES DE DISPOSITIVO DE ARMAZENAMENTO #
# AQUI DEFINIMOS O STORAGE A SER UTILIZADO PELO BACULA #


Storage {
Name = File
Address = bacula.tidahora.com.br # Pode ser usado Nome ou
IP
SDPort = 9103 # Porta de Comunicao
do Storage
Password = "LE_T_-c_55qu1f777Dm52map-s3xpgR4q" # Senha Storage Bacula
Device = FileStorage # Device de Storage
Media Type = File # Tipo de Midia (Fita,
DVD, HD)
Maximum Concurrent Jobs = 10 # Num. Maximo de Jobs
executados nessa Storage.
}

# Generic catalog service
Catalog {
Name = Catalogo # Nome do Catalogo
dbname = "bacula"; dbuser = "bacula"; dbpassword = "SENHA" # Configuracoes
do MySQL
}

# Reasonable message delivery -- send most everything to email address
# and to the console
Messages {
Name = Standard

# ABAIXO E POSSIVEL AJUSTAR COMO O BACULA ENVIARA MENSAGENS AO ADMINISTRADOR
#

mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\"
-s \"Bacula: %t %e of %c %l\" %r"
operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\)
\<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
mail = root@localhost = all, !skipped
operator = root@localhost = mount
console = all, !skipped, !saved
append = "/var/lib/bacula/log" = all, !skipped
catalog = all
}

# Message delivery for daemon messages (no job).
Messages {
Name = Daemon
mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\"
-s \"Bacula daemon message\" %r"
mail = root@localhost = all, !skipped
console = all, !skipped, !saved
append = "/var/lib/bacula/log" = all, !skipped
}

# POOL PADRAO DEFINIDO
Pool {
Name = File # o Job de Backup por padrao aponta
para o 'File'
Pool Type = Backup # O Tipo do Pool = Backup, Restore, Etc.
Recycle = yes # Bacula can automatically recycle
Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 1 month # Retencao de Volume = 1 Mes
Volume Use Duration = 23 hours # Duracao de um volume aberto
Maximum Volume Bytes = 20 Gb # Tamanho maximo de um volume
Maximum Volumes = 10 # Volume Bytes X Volumes <= Dispositivo
de backup
LabelFormat = "volume" # Nome Default do Volume
}


# Scratch pool definition
# Volumes que serao emprestado a alguma Pool temporariamente
Pool {
Name = Scratch
Pool Type = Backup
}

#
# Restricted console used by tray-monitor to get the status of the director
#
#Console {
# Name = bacula-mon
# Password = "S91uKqybG5NXwiCbzPYMg5Cfp0o7mW4Ze"
# CommandACL = status, .status
#}
O Prximo passo ajustar os arquivos que fazem referncias para FileSets, Agendamentos e
Clientes.
Arquivo que contm informaes de clientes e jobs do Bacula: -
/etc/bacula/bacula-dir-clients-and-jobs.conf
vi /etc/bacula/bacula-dir-clients-and-jobs.conf
###################################################
## ARQUIVO DE CONFIGURACAO PARA CLIENTES E JOBS ##
###################################################

# JOB PADRAO PARA O BACULA SERVER #
JobDefs {
Name = "DefaultJobs" # Nome do Job Padrao
Type = Backup # Tipo de Job (Backup,
Restore, Verificacao)
Level = Incremental # Nivel do Job (Full,
Incremental, Diferencial)
Client = bacula-fd # Nome do Cliente FD
FileSet = "Full Set" # File Set Definido
para Esse Job
Schedule = "WeeklyCycle" # Agendamento
Definido para Esse Job
Storage = File # Define Storage
Messages = Standard # Nivel de mensagens
Pool = File # Define a Pool
Priority = 10 # Qual o nivel de
Prioridade
Write Bootstrap = "/var/lib/bacula/%c.bsr" # Arquivo gerado pelo
Bacula para armazenar informacoes de backups feitos em seus clientes.
# AS OPCOES ABAIXO EVITAM QUE SEJAM DUPLICADO JOBS NO SERVIDOR, CASO TENHA UM
JOB DUPLICADO O MESMO E CANCELADO
Allow Duplicate Jobs = no # Permite Jobs
Duplicados
Cancel Lower Level Duplicates = yes # Cancela niveis
inferiores duplicados
}

# JOB DE BACKUP PARA OS SERVIDORES WINDOWS SERVER #
JobDefs {
Name = "DefaultWindows" # Nome do Job Para
Servidores Windows
Type = Backup # Tipo de Job (Backup,
Restore, Verificacao)
Level = Incremental # Nivel do Job (Full,
Incremental, Diferencial)
Client = bacula-fd # Nome do Cliente FD
FileSet = "Full Set" # File Set Definido
para Esse Job
Schedule = "WeeklyCycle" # Agendamento
Definido para Esse Job
Storage = File # Define Storage
Messages = Standard # Nivel de mensagens
Pool = File # Define a Pool
Priority = 10 # Qual o nivel de
Prioridade
Write Bootstrap = "/var/lib/bacula/%c.bsr" # Arquivo gerado pelo
Bacula para armazenar informacoes de backups feitos em seus clientes.
# AS OPCOES ABAIXO EVITAM QUE SEJAM DUPLICADO JOBS NO SERVIDOR, CASO TENHA UM
JOB DUPLICADO O MESMO E CANCELADO
Allow Duplicate Jobs = no # Permite Jobs
Duplicados
Cancel Lower Level Duplicates = yes # Cancela niveis
inferiores duplicados
}

# JOB DE BACKUP DO CATALOGO #
Job {
Name = "BackupCatalogo"
# Nome do Job Para Backup do Catalogo
JobDefs = "DefaultJobs"
# JobDefs usado para operacao
Level = Full
# Nivel do Job (Full, Incremental, Diferencial)
FileSet = "Catalogo"
# File Set Definido para Esse Job
Schedule = "WeeklyCycleAfterBackup"
# Agendamento Definido para Esse Job
RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup.pl Catalogo"
# Acao executada antes da operacao
Write Bootstrap = "/var/lib/bacula/%c.bsr"
# Arquivo gerado pelo Bacula para armazenar informacoes de backups feitos em
seus clientes.
Priority = 11
# Executar depois do Backup - ajustar prioridade
}

# JOB DE RESTAURACAO - (RESTORE) - SO E PRECISO ESSE JOBS PARA RESTAURACAO DE
BACKUP #
Job {
Name = "RestoreFiles"
# Nome do Job Para Restore
Type = Restore
# Tipo de Job (Backup, Restore, Verificacao)
Client = bacula-fd
# Nome do Cliente FD
FileSet = "Full Set"
# File Set Definido para Esse Job
Storage = File
# Agendamento Definido para Esse Job
Pool = File
# Define a Pool
Messages = Standard
# Nivel de mensagens
Where = /tmp/bacula-restores
# Diretorio onde o bacula ira restaurar os arquivos nos clientes
}

#######################################################################
## AQUI VAMOS DEFINIR OS CLIENTES E JOBS PARA CADA CLIENTE ADICIONADO #
#######################################################################

## ------------------------------------------------------------------- ##
# JOB DE BACKUP PARA O DIRECTOR DO BACULA
# HOSTNAME: bacula.tidahora.com.br
# IP: 10.106.0.200

Job {
Name = "BackupDirector" # Nome do Job para
Backup do Director (Proprio Servidor Bacula)
JobDefs = "DefaultJobs" # JObDefs Definido
Client = bacula-fd # Cliente fd
}

Client {
Name = bacula-fd # Cliente fd
Address = bacula.tidahora.com.br # Ajustado no
/etc/hosts
Password = "ExgYbEinJWMf7lsWPBcpffZaNMmiGcbgp" # Senha do Director
do Bacula
@/etc/bacula/clientes/bacula.tidahora.com.br.client # Arquivo onde contem
informacoes sobre o cliente.
}
## -------------------------------------------------------------------- ##
Arquivo onde contm informaes de 'File Sets' do Bacula: - /etc/bacula/bacula-dir-filesets.conf
vi /etc/bacula/bacula-dir-filesets.conf
###################################################
## ARQUIVO DE CONFIGURACAO PARA CLIENTES E JOBS ##
###################################################

# LISTA DOS ARQUIVOS QUE SERAO COPIADOS

FileSet {
Name = "Full Set" # Nome do
FileSets
# Arquivos que serao incluidos para serem copiados ao backup
Include {
Options {
signature = MD5
compression = GZIP
verify = pin1
onefs = no
}
File = /etc
File = /root
File = /var/log
File = /var/www
File = /home
File = /usr/sbin
File = /etc/bacula/
}
# Arquivos que serao ignorados ao backup
Exclude {
File = /var/lib/bacula
File = /proc
File = /tmp
File = /.journal
File = /.fsck
}
}

# LISTA DOS ARQUIVOS QUE SERAO COPIADOS - CATALOGO #

FileSet {
Name = "Catalogo"
# Arquivos que serao incluidos para serem copiados ao backup
Include {
Options {
signature = MD5
}
File = "/var/lib/bacula/bacula.sql"
}
}

# LISTA DOS ARQUIVOS QUE SERAO COPIADOS - SISTEMA WINDOWS SERVER #

FileSet {
Name = "WindowsFS"
# Arquivos que serao incluidos para serem copiados ao backup
Include {
# Plugin = "alldrivers"
Options {
signature = MD5
Compression = GZIP1
OneFS = no
}
File = "E:/"
}
}
Vamos criar o arquivo onde vamos ajustar os agendamentos de backup, esse arquivo contm
informaes de horrios de rotinas de backups.
vi /etc/bacula/bacula-dir-agendamento.conf
#################################################################
## ARQUIVO DE CONFIGURACAO DE AGENDAMENTO DE TAREFAS DO BACULA ##
#################################################################
# DEFINICOES DE AGENDAMENTO DOS BACKUPS #

# AGENDAMENTO PADRAO DO BACULA - CICLO SEMANAL DE BACKUP #
Schedule {
Name = "WeeklyCycle" # Ciclo Semanal de Backup
Run = Full 1st sun at 23:05 # Backup Full no Primeiro
Domingo do Mes as 23:05 hrs
Run = Differential 2nd-5th sun at 16:50 # Backup Diferencial de Seg.
a Sabado as 23:05 hrs
Run = Incremental mon-sat at 10:30 # Backup Incremental de Seg.
a Sabado as 23:05 hrs
}

# AGENDAMENTO PARA SERVIDOR LINUX - CICLO SEMANAL DE BACKUP #
Schedule {
Name = CicloBackupProxy
Run = Level=Full 1st sun at 23:00
Run = Level=Full mon-sat at 10:00
}

# AGENDAMENTO PARA SERVIDOR WINDOWS SERVER - CICLO SEMANAL DE BACKUP #
Schedule {
Name = "CicloBackupWindows" # Ciclo Semanal de
Backup
Run = Full 1st sun at 23:00 # Backup Full no
Primeiro Domingo do Mes as 23:05 hrs
Run = Differential 2nd-5th sun at 14:10 # Backup Diferencial
de Seg. a Sabado as 11:40 hrs
Run = Full mon-sat at 10:00 # Backup Incremental
de Seg. a Sabado as 11:25
}

# DEFINICOES DE AGENDAMENTO DO BACKUP DOS CATALOGOS #
# FEITO SEMPRE DEPOIS DOS BACKUPS #
Schedule {
Name = WeeklyCycleAfterBackup
Run = Level=Full sun-sat at 09:15
}
Vamos agora criar o diretrio onde vai ficar armazenados os arquivos com informaes bsicas de
nossos clientes:
Crie o diretrio clientes:
mkdir /etc/bacula/clientes
Antes de adicionar um cliente ao bacula vamos criar o arquivo de storage de backup. Criando o
arquivo de Storage do backup:
vim /etc/bacula/bacula-sd.conf

##############################################################
# ARQUIVO PADRAO DE CONFIGURACAO DE STORAGE DO BACULA #
##############################################################

Storage {
Name = bacula-sd # Nome do Storage
SDPort = 9103 # Porta do Director
WorkingDirectory = "/var/lib/bacula" # Diretorio de Trabalho
Pid Directory = "/var/run/bacula" # Pid do Bacula
Maximum Concurrent Jobs = 20 # Maximo de Backups em
Execucao
SDAddress = bacula.tidahora.com.br # Nome ou IP do Storage do
Bacula
# SDAddress = 127.0.0.1 # Comentar ou remover essa
Linha para nao fazer loopback
}

#
# List Directors who are permitted to contact Storage daemon
#
Director {
Name = bacula-dir
Password = "LE_T_-c_55qu1f777Dm52map-s3xpgR4q"
}

#
# Restricted Director, used by tray-monitor to get the
# status of the storage daemon
# Usado pelo tray-monitor do bacula para obter status do servidor
Director {
Name = bacula-mon
Password = "kNuOgEZUq2pqP6hRqPHMHm7UyxCOG1LBf"
Monitor = yes
}


# ABAIXO DEFINIMOS O NOME, TIPO, E O DIRETRIO DE ARQUIVOS DO BACULA

Device {
Name = FileStorage # Nome do Device
Media Type = File # Tipo de Midia (DVD, CD, HD, FITA)
Archive Device = /srv/backup # Diretorio onde serao salvos os
volumes de backup
LabelMedia = yes; # Midias de Etiquetamento do Bacula
Random Access = Yes; #
AutomaticMount = yes; # Montar Automaticamente
RemovableMedia = no; # Midia Removivel
AlwaysOpen = no; # Manter Sempre Aberto
}

#
# Send all messages to the Director,
# mount messages also are sent to the email address
#
Messages {
Name = Standard
director = bacula-dir = all
}
Aps criado o arquivo vamos criar o diretrio de backup ajustado no arquivo acima:
mkdir /srv/backup
Para que o bacula consiga fazer seu prprio backup, precisamos ajustar o arquivo de cliente para ele:
Crie o arquivo abaixo:
vi /etc/bacula/bacula-fd.conf
##############################################################
# ARQUIVO DE CONFIGURACAO DO FILE DAEMON DO BACULA #
##############################################################

#
# List Directors who are permitted to contact this File daemon
#
Director {
Name = bacula-dir # Nome do Director
Password = "ExgYbEinJWMf7lsWPBcpffZaNMmiGcbgp" # ESTA SENHA ESTA
DEFINIDA NO ARQUIVO DE CLIENTE EM
/ETC/BACULA/BACULA-DIR-CLIENTS-AND-JOBS.CONF
}

#
# Restricted Director, used by tray-monitor to get the
# status of the file daemon
#
Director {
Name = bacula-mon
Password = "z27BNYXA9dx1SZWk1vp-kSZ8azwz2HMS8" # ESTA SENHA E UTILIZADO
PELO BACULA-MONITOR
Monitor = yes
}

#
# "Global" File daemon configuration specifications
#
FileDaemon {
Name = bacula-fd # Nome do Bacula-fd
FDport = 9102 # Porta de Comunicacao do
bacula-fd
WorkingDirectory = /var/lib/bacula # Diretorio de trabalho
Pid Directory = /var/run/bacula # Diretorio de Pid
Maximum Concurrent Jobs = 20 # Numero maximo de jobs
executados no bacula
# FDAddress = 127.0.0.1 # COMENTAR OU REMOVER ESSA
LINHA PARA QUE ELE POSSA 'OUVIR' CONEXOES EM TODAS AS INTERFACES
}

# Send all messages except skipped files back to Director
Messages {
Name = Standard
director = bacula-dir = all, !skipped, !restored # AS MENSAGEM SAO
ENCAMINHADAS PARA O 'BACULA-DIR' DEFINIDO NESSA LINHA
}
Feito isso vamos criar o arquivo de cliente com as informaes de catalogos para o nosso bacula:
vi /etc/bacula/clientes/bacula.tidahora.com.br.client
##########################################################
## ARQUIVO PARA CONFIGURACAO DE CLIENTE LINUX NO BACULA ##
##########################################################

Catalog = Catalogo # Nome do Catalogo
definido
File Retention = 30 days # Tempo de Retencao
do Backup
Job Retention = 6 months # Tempo de Retencao
do Job
AutoPrune = yes # Prune de
Jobs/Arquivos Expirados
Agora que temos os arquivos criados, vamos alterar as permisses deles e do diretrio onde o Bacula
ir armazenar os Volumes de backup.
Abaixo, segue lista dos arquivos que criamos.
- bacula-dir.conf Arquivo Director do Bacula
- bacula-sd.conf Arquivo de Definies de Storage
- bacula-fd.conf Arquivo de cliente para o bacula
- bacula-dir-clients-and-jobs.conf Informaes de Clientes e Jobs
- bacula-dir-filesets.conf Informaes de FileSets
- bacula-dir-agendamento.conf Arquivo de horrios de Jobs de Backups
- clientes/bacula.tidahora.com.br Informaes de Catalogo
- Diretrio onde o Bacula ir armazenar os Volumes de Backup: /srv/backup/
Vamos ajustar as permisses aos mesmos:
chown bacula:bacula bacula-dir-clients-and-jobs.conf
chown bacula:bacula bacula-dir-filesets.conf
chown bacula:bacula bacula-dir-agendamento.conf
chown bacula:bacula bacula-dir.conf
chown bacula:bacula bacula-fd.conf
chown bacula:bacula bacula-sd.conf
chown bacula:bacula clientes
chown bacula:bacula clientes/*
Ajuste a permisso para que o bacula possa gravar os volumes de backup:
chown bacula:tape /srv/backup
Reinicie o servio do bacula para verificar se est tudo ok:
/etc/init.d/bacula-director restart; /etc/init.d/bacula-sd restart; /etc/
init.d/bacula-fd restart
Stopping Bacula Director...:.
Starting Bacula Director...:.
Stopping Bacula Storage daemon... :.
Starting Bacula Storage daemon...:.
Stopping Bacula File daemon...:.
Starting Bacula File daemon...:.
Fim da Instalao e Configurao do Bacula.
Johnny Ferreira 16:17 01/03/2013
From:
http://tidahora.com.br/index.html/ - TI da Hora!
Permanent link:
http://tidahora.com.br/index.html/doku.php?id=instalando_o_bacula_no_debian_squeeze_6
Last update: 09:52 29/08/2014

Anda mungkin juga menyukai