Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Расписание/Тома Bacula
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
unaos
n00b
n00b


Joined: 06 Apr 2006
Posts: 64
Location: brovary,UA

PostPosted: Fri Jun 02, 2006 9:39 am    Post subject: Расписание/Тома Bacula Reply with quote

Доброго дня!
Сокрушительный проигрыш: человек у машины :) Как это так - сделал один бэкап и уже просит следующую ленту!
а там 72Гб касета, и размер одного бэкапа 40мб.

bacula-dir.conf
Code:

Director {                            # define myself
  Name = buran-dir
  DIRport = 9101                # where we listen for UA connections
  QueryFile = "/usr/libexec/bacula/query.sql"
  WorkingDirectory = "/var/lib/bacula"
  PidDirectory = "/var/run"
  Maximum Concurrent Jobs = 1
  Password = "+fakVw3Ikbc4RiXvh4LIpKxY+oZSUYYlqklPn36lU5l7"         # Console password
  Messages = Daemon
}

JobDefs {
  Name = "DefaultJob"
  Type = Backup
  Level = Incremental
  Client = buran-fd
  FileSet = "Full Set"
  Schedule = "WeeklyCycle"
  Storage = dat72
  Messages = Standard
  Pool = Default
  Priority = 10
}


Job {
  Name = "Client1"
  JobDefs = "DefaultJob"
  Write Bootstrap = "/var/lib/bacula/Client1.bsr"
}

Job {
  Name = "BackupCatalog"
  JobDefs = "DefaultJob"
  Level = Full
  FileSet="Catalog"
  Schedule = "WeeklyCycleAfterBackup"
  # This creates an ASCII copy of the catalog
  RunBeforeJob = "/usr/libexec/bacula/make_catalog_backup bacula bacula"
  # This deletes the copy of the catalog
  RunAfterJob  = "/usr/libexec/bacula/delete_catalog_backup"
  Write Bootstrap = "/var/lib/bacula/BackupCatalog.bsr"
  Priority = 11                   # run after main backup
}

Job {
  Name = "RestoreFiles"
  Type = Restore
  Client=buran-fd
  FileSet="Full Set"
  Storage = hdrive
  Pool = Default
  Messages = Standard
  Where = /tmp/bacula-restores
}


FileSet {
  Name = "Full Set"
  Include {
    Options {
      signature = MD5
      verify=s
    }
    File = /var/tmp/portage/bacula-1.36.3-r3/work/bacula-1.36.3
    File = /var/www
    File = /var/lib/mysql/mysql
    File = /var/lib/mysql/db_name1
    File = /var/lib/mysql/db_name2
    File = /var/lib/mysql/dumps
  }

  Exclude {
  }
}

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

Schedule {
  Name = "Weekly"
  Run = Full 1st-5th sat at 1:05
  Run = Incremental mon-sat at 1:05
}
Schedule {
  Name = "WeeklyCycleAfterBackup"
  Run = Full sun-sat at 1:10
}

FileSet {
  Name = "Catalog"
  Include {
    Options {
      signature = MD5
    }
    File = /var/lib/bacula/bacula.sql
  }
}

Client {
  Name = buran-fd
  Address = buran
  FDPort = 9102
  Catalog = MyCatalog
  Password = "+4D3hnJzMu2pCYXPxwrYmZN5NY3/eD2VuU3CJ6Jpc4yH"          # password for FileDaemon
  File Retention = 3 month            # 30 days
  Job Retention = 6 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}

Storage {
  Name = dat72
  Address = buran                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "YOV2JHb2xUsUECXH+Rq2xa6g6s2ihQ8sWBvIK8bAIHEf"
  Device = DDS-4
  Media Type = DDS-4
}


Storage {
  Name = hdrive
  Address = buran                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "YOV2JHb2xUsUECXH+Rq2xa6g6s2ihQ8sWBvIK8bAIHEf"
  Device = FileStorage
  Media Type = File
}



Catalog {
  Name = MyCatalog
  dbname = bacula; user = bacula; password = "backup"
}

Messages {
  Name = Standard
  mailcommand = "/usr/sbin/bsmtp -h 10.10.0.155 -f \"\(Bacula\) %r\" -s \"Bacula: %t %e of %c %l\" %r"
operatorcommand = "/usr/sbin/bsmtp -h 10.10.0.155 -f \"\(Bacula\) %r\" -s \"Bacula: Intervention needed for %j\" %r"
  mail = user@host.kiev.ua = all, !skipped
  operator = user@host.kiev.ua = mount
  console = all, !skipped, !saved
  append = "/var/lib/bacula/log" = all, !skipped
}


Messages {
  Name = Daemon
  mailcommand = "/usr/sbin/bsmtp -h 10.10.0.155 -f \"\(Bacula\) %r\" -s \"Bacula daemon message\" %r"
  mail = user@host.kiev.ua = all, !skipped
  console = all, !skipped, !saved
  append = "/var/lib/bacula/log" = all, !skipped
}




Pool {
  Name = Default
  Pool Type = Backup
  Recycle = yes                       # Bacula can automatically recycle Volumes
  AutoPrune = yes                     # Prune expired volumes
  Volume Retention = 365 days         # one year
  Accept Any Volume = yes             # write on any volume in the pool
  LabelFormat = "Daily-"
}

Console {
  Name = buran-mon
  Password = "BiF5cbckWmtGRW6wE8+aaGLlf1jaG5Maq5m7V8tsu6+S"
  CommandACL = status, .status
}

_________________
house of mystic lies
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum