Bacula Enterprise Backup

Bacula, açık kaynak kurumsal backup çözümüdür. Client-Server mimarisi ile merkezi yönetim sağlar.

Bacula Bileşenleri

  • Director: Merkezi yönetim servisi
  • Storage Daemon (SD): Tape/disk yönetimi
  • File Daemon (FD): Client agent (backup alınacak sunucu)
  • Catalog: PostgreSQL/MySQL veritabanı

Director Yapılandırması

# /etc/bacula/bacula-dir.conf

Director { Name = backup-dir DIRport = 9101 QueryFile = "/etc/bacula/query.sql" WorkingDirectory = "/var/lib/bacula" PidDirectory = "/run/bacula" Maximum Concurrent Jobs = 20 Password = "director_password_here" }

Client tanımı

Client { Name = server01-fd Address = server01.example.com FDPort = 9102 Catalog = MyCatalog Password = "client_password_here" File Retention = 60 days Job Retention = 6 months }

Job tanımı

Job { Name = "Backup-Server01" Type = Backup Client = server01-fd FileSet = "Full-Backup" Schedule = "WeeklyCycle" Storage = File1 Pool = Weekly Messages = Standard Priority = 10 }

FileSet Tanımı

FileSet {
  Name = "Full-Backup"
  Include {
    Options {
      signature = MD5
      compression = GZIP
    }
    File = /
    File = /var
    File = /home
  }
  Exclude {
    File = /var/tmp
    File = /proc
    File = /sys
    File = /dev
    File = /run
    File = *.log
  }
}

Schedule Tanımı

Schedule {
  Name = "WeeklyCycle"
  Run = Full 1st sun at 23:05
  Run = Differential 2nd-5th sun at 23:05
  Run = Incremental mon-sat at 23:05
}

Backup ve Restore Komutları

# bconsole ile yönetim
bconsole

Manuel backup başlatma

*run job=Backup-Server01 yes

Job durumu

*status dir *status client=server01-fd

Restore işlemi

*restore client=server01-fd

Dosya seçimi yapıldıktan sonra

*done *yes

Sonuç

Bacula, binlerce client'ı yönetebilen ölçeklenebilir bir backup çözümüdür. Tape ve disk desteği sunar.