Bacula Server Ubuntu

Aus xinux.net
Zur Navigation springen Zur Suche springen

install

  • apt-get install bacula

job not run

  • run job=jobname yes


bconsole

  • status
Status available for:
     1: Director
     2: Storage
     3: Client
     4: All
  • status dir
 
 gondor.xinux.lan-dir Version: 5.2.6 (21 February 2012) x86_64-pc-linux-gnu ubuntu 14.04
 Daemon started 18-Mai-15 11:50. Jobs: run=0, running=0 mode=0,0
 Heap: heap=405,504 smbytes=52,473 max_bytes=54,714 bufs=208 max_bufs=217
 
 Scheduled Jobs:
 Level          Type     Pri  Scheduled          Name               Volume
 ===================================================================================
 Incremental    Backup    10  18-Mai-15 23:05    BackupClient1      *unknown*
 Full           Backup    11  18-Mai-15 23:10    BackupCatalog      *unknown*
 ====
 
 Running Jobs:
 Console connected at 18-Mai-15 11:50
 No Jobs running.
 
  • run job=BackupClient1 yes
Using Catalog "MyCatalog"
Job queued. JobId=12


Job definition

bacula-dir.conf

Job {
  Name = "gondor"
  JobDefs = "DefaultJob" 
  Client = gondor-fd
  Storage = gondor-file 
  Pool = Default
  Schedule = "WeeklyCycle" 
  Full Backup Pool = gondor-full-pool 
  Incremental Backup Pool = gondor-inc-pool
  Differential Backup Pool = gondor-diff-pool
  #FileSet = "full set gondor" 
  Write Bootstrap = "/var/lib/bacula/gondor.bsr"
} 


Client {
  Name = gondor-fd
  Address = gondor.xinux.org
  FDPort = 9102
  Catalog = MyCatalog
  Password = "1AIJxBfeDcRV1imK2u8y4_GNQGevjqjLH"          # password for FileDaemon
  File Retention = 30 days            # 30 days
  Job Retention = 6 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}
Storage {
  Name = File
  Address = gondor.xinux.org                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "Nbke7KU_VefK6XdZD5P09S8GbPaLZBczb"
  Device = FileStorage
  Media Type = File
}


bacula-sd.conf

Device {
  Name = FileStorage
  Media Type = File
  Archive Device = /mnt/save/bacula   
  LabelMedia = yes;                   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
}