Saturday, February 11, 2012

bacula backup system using the online environment to build


Bacula-5.0.2 on-line using a different computer, let's try to back up.

First, the backup server is down, down geulcheoreom install.
Now it's time to setup a client node.


bacula-5.0.2.tar.gz compilation allows you to download after receiving.
여기서 --with-fd-password 는 backup 서버의 bacula/etc/bacula-dir.conf 파일에서
이 client 용으로 설정한 "Client {" 항목 의 "Password =" 의 값을 써준다.

# ./configure --prefix=/usr/local/bacula-5.0.2 --with-readline --with-fd-password="wvyPsGsBPRIgJKhyYV5C0+WJ9MTDR9epBKa/oftfQa/5"   --enable-client-only

# Make

# make install

daemon for client preferences allow to float.
# Cd / usr/local/bacula-5.0.2/etc /
# Vi bacula-fd.conf

Director {
# Name = rhel1-dir
  Name = cep-dir
  Password = "wvyPsGsBPRIgJKhyYV5C0+WJ9MTDR9epBKa/oftfQa/5"
}


Just leave the rest of the items above ten thousand, the Name of Director Name should be replaced with the backup server.
backup server bacula-dir.conf 의 에서

Director {
  Name = cep-dir     #이 이름이 Director Name이다.
  DIRport = 9101                # where we listen for UA connections
  QueryFile = "/ usr/local/bacula-5.0.2/etc/query.sql"
  WorkingDirectory = "/usr/local/bacula-5.0.2/var/bacula/working"
  PidDirectory = "/ var / run"
  Maximum Concurrent Jobs = 1
  Password = "**** yJO" # Console password
  Messages = Daemon
}


And to execute bacula.

#. / Bacula start
# ps -ef |grep bacula
# Netstat-na | grep 910

When checked, all of this well is to be established as normal.

##############
Backup server
##############
이제 는 에서 backup server bacula / etc / bacula-dir.conf 파일 을 수정 해준다.
# Vi bacula-dir.conf

Add adds a client's information.

{Customer
  Name = rhel1-fd  #Client name(임의의 이름으로 본인이 알도록 정한다.)
  Address = rhel1  # hostname
  FDPort = 9102
  Catalog = MyCatalog
  Password = "wvyPsGsBPRIgJKhyYV5C0+WJ9MTDR9epBKa/oftfQa/5"          # password for FileDaemon
  File Retention = 30 days            # 30 days
  Job Retention = 6 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}

and helps to define the backup from client sipeungot.
FileSet {
  Name = "RHEL1 Set" # 이름 을 정해 준다.
  Include {
    Options {
      signature = MD5
    }
    File = / usr # define the directory you want backed up and allows.
  }
 
  Exclude {# define a backup, you should not allow directory.
    File = /usr/local/bacula-5.0.2/var/bacula/working
    File = /tmp
    File = / proc
    File = /tmp
    File = /. Journal
    File = /.fsck
  }
}


Client willing to add another name if you want to add the Job Definition used to produce the JobDefs.
{JobDefs
  Name = "RHEL1_BAK"
  Type = Backup
  Level = Incremental
  Client-fd # = rhel1 백업 하고 싶은 Client Name 을 적어 준다.
  FileSet = "RHEL1 Set" # 백업 하고 싶은 곳을 정의한 FileSet 의 이름 을 적어 준다.
  Schedule = "WeeklyCycle"
  Storage = File
  Messages = Standard
  Pool = File
  Priority = 10
  Write Bootstrap = "/usr/local/bacula-5.0.2/var/bacula/working/%c.bsr"
}


When running as a console command to run the job is set to run.
{Job
  Name = "BackupClient2"
  Client-fd = rhel1 # Client Name 을 써준다.
  JobDefs = "RHEL1_BAK" # Name JobDefs 을 써준다.
}


When you are finished, save and later as the console goes out.
#. / Bconsole
In order to reload the modified configuration to update the information allows.
*reload
You have messages.

rhel1 to run commands on the server / usr to be backed up.
* Run
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
A job name must be specified.
The defined Job resources are:
     1: BackupClient1
     2: BackupClient2
     3: BackupCatalog
     4: RestoreFiles
Select Job resource (1-4): 2
Run Backup job
JobName:  BackupClient2
Level:    Incremental
Client: rhel1-fd
FileSet:  RHEL1 Set
Pool:     File (From Job resource)
Storage:  File (From Job resource)
When:     2010-06-09 18:22:36
Priority: 10
OK to run? (yes/mod/no): yes
Job queued. JobId = 9
*

This backup is done.