Preview only show first 10 pages with watermark. For full document please download

Adicionando Um Cliente Windows Ao Bacula

Descrição: Manual instalacao bacula

   EMBED


Share

Transcript

ADICIONANDO UM CLIENTE WINDOWS AO BACULA Objetivo: Realizar a configuração de um cliente com sistema operacionar Windows Server 2003/2008 ao servidor Bacula Backup. Ambiente do Servidor: Servidor: Debian Squeeze IP: 10.106.0.200 Ambiente do Cliente Windows Server 2008: Servidor: Windows Server 2008 R2 IP: 10.104.0.202 AJUSTANDO O SERVIDOR WINDOWS Fazer o download do arquivo para Windows (Versões 32 e 64 Bits). Abaixo segue o link da versão mais atual do bacula-fd para Windows, porém, foi realizado testes com a versão e a mesma não retornou um desempenho adequado. http://sourceforge.net/projects/bacula/files/Win32_64/5.2.10 Instalação no cliente: Execute o arquivo que acabamos de baixar: Next > I Agree > Next > Next > Next > Finished Os arquivos ficam no diretório abaixo: C:\Program Files\Bacula Files\Bacula Após realizar a instalação é necessário a criação do arquivo 'bacula-fd.conf' dentro do diretório: C:\Program Files\Bacula Files\Bacula # Default Bacula File Daemon Configuration file # # For Bacula release 5.2.6 (02/21/12) -- Windows MinGW32 # # There is not much to change here except perhaps the # File daemon Name # # # "Global" File daemon configuration specifications # FileDaemon { Name = DC1-fd # Nome do cliente-fd # # # # # # } FDport = 9102 Porta de Comunicacao WorkingDirectory = "C:\\Program Files\\Bacula\\working" Diretorio de Trabalho Pid Directory = "C:\\Program Files\\Bacula\\working" Diretorio de PID Plugin Directory = "C:\\Program Files\\Bacula\\plugins" Diretorio de Plugins Maximum Concurrent Jobs = 10 Numero Maximo de Jobs em execucao # # List Directors who are permitted to contact this File daemon # Director { Name = bacula-dir # ALTERAR PARA O NOME DO 'DIRECTOR' DO BACULA Password = "a0wDKVckyaTacqItfkCxddJxyBLwAXFn7" # SENHA PARA COMUNICACAO COM ARQUIVO CLIENTS-AND-JOBS.CONF } # # Restricted Director, used by tray-monitor to get the # status of the file daemon # UTILIZADO PELO BACULA MONITOR Director { Name = bacula-mon Password = "yQevDJfJg7fBgp8PfOxWTKqTqhUUTvAMn" Monitor = yes } # Send all messages except skipped files back to Director Messages { Name = Standard director = bacula-dir = all, !skipped, !restored } Após o ajuste no arquivo “bacula-fd.conf” precisamos realizar um acerto no registro do Windows. Abra o registro do Windows: Executar: - REGEDIT\\ HKEY_LOCAL_MACHINE\\ SYSTEM\\ CURRENTE CONTROL SETS\\ SERVICES\\ Crie uma nova chave chamada “wbengine” Dentro de “wbengine” crie uma pasta chamada: 'SystemStateBackup ' Dentro dela crie um valor “DWORD” de 32 Bits com o nome de “ALlowSSBToAny”. Feito isso reinicie o serviço bacula-fd em “services.msc” AJUSTANDO O SERVIDOR PARA RECONHECER O CLIENTE Antes de configurar o cliente ao servidor bacula, vamos editar o arquivo ”/etc/hosts” do servidor bacula. Lembrando que é possível utilizar a resoluç ão de nomes pelo DNS. vi /etc/hosts 127.0.0.1 10.106.0.250 localhost bacula # Servidor de Backup Bacula 10.106.0.250 bacula.tidahora.com.br bacula # Clientes de Backup Bacula 10.104.0.204 dc2 WINDOWS SERVER # SERVIDOR AD # 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  No Arquivo “bacula-dir-clients-and- jobs.conf” adicione o novo cliente Windows no final do arquivo. Veja abaixo: vi /etc/bacula/bacula-dir-clients-and-jobs.conf [...] ## ------------------------------------------------------------------## # JOB DE BACKUP PARA CLIENTE WINDOWS SERVER # HOSTNAME: dc2 # IP: 10.104.0.204 Job { Name = "Backup-WinServer-DC2" DO JOB DE BACKUP PARA O CLIENTE JobDefs = "DefaultWindows" JOBDEF AJUSTADO AO SERVIDOR Client = dc2-fd CLIENTE DO JOB } # NOME # # Client { Name = dc2-fd # NOME DO CLIENTE Address = dc2 # Ajustado no /etc/hosts (Pode ser o IP ou Nome do Cliente) Password = "a0wDKVckyaTacqItfkCxddJxyBLwAXFn7" # ALTERAR A SENHA PARA A SENHA GERADA NO ARQUIVO DO CLIENTE 'BACULAFD.CONF' @/etc/bacula/clientes/dc2.client # Arquivo onde contem informacoes de catalogo e periodo do backup do cliente } ## ------------------------------------------------------------------- ## [...] O proximo passo é a configuração do arquivo clientes/dc2.conf vi /etc/bacula/clientes/dc2.conf ########################################################## ## ARQUIVO PARA CONFIGURACAO DE CLIENTE LINUX NO BACULA ## ## IP: 10.104.0.204 ## ## HOSTNAME: dc2 ## ########################################################## Catalog = Catalogo Catalogo definido File Retention = 30 days Retencao do Backup Job Retention = 6 months Retencao do Job AutoPrune = yes Jobs/Arquivos Expirados Feito isso, reinicie o serviço do bacula /etc/init.d/bacula-dir restart /etc/init.d/bacula-sd restart /etc/init.d/bacula-fd restart Abra o “bconsole” e faça o seguinte: # bconsole Connecting to Director localhost:9101 1000 OK: bacula-dir Version: 5.0.2 (28 April 2010) Enter a period to cancel a command. *reload * *status client=dc2-fd Connecting to Client arquivos2-fd at dc2:9102 Running Jobs: Director connected at: 19-Nov-12 15:48 No Jobs running. ==== Terminated Jobs: * Cliente Windows ajustado ao Servidor Bacula. # Nome do # Tempo de # Tempo de # Prune de