[823] | 1 | #
|
---|
| 2 | # Default Bacula Director Configuration file
|
---|
| 3 | #
|
---|
| 4 | # The only thing that MUST be changed is to add one or more
|
---|
| 5 | # file or directory names in the Include directive of the
|
---|
| 6 | # FileSet resource.
|
---|
| 7 | #
|
---|
| 8 | # For Bacula release 2.4.4 (28 December 2008) -- suse 10
|
---|
| 9 | #
|
---|
| 10 | # You might also want to change the default email address
|
---|
| 11 | # from root to your address. See the "mail" and "operator"
|
---|
| 12 | # directives in the Messages resource.
|
---|
| 13 | #
|
---|
| 14 |
|
---|
| 15 |
|
---|
| 16 |
|
---|
| 17 | # Filesets for backup of ESX VMs via vcb
|
---|
| 18 |
|
---|
| 19 | Director { # define myself
|
---|
| 20 | # test
|
---|
| 21 | Name = bacula-dir
|
---|
| 22 | DirAddresses = {
|
---|
| 23 | ip = { addr = 127.0.0.1; port = 9101 }
|
---|
| 24 | ip = { addr = 10.20.40.211; port = 9101 }
|
---|
| 25 | }
|
---|
| 26 | # DIRport = 9101 # where we listen for UA connections
|
---|
| 27 | QueryFile = "/usr/lib64/bacula/query.sql"
|
---|
| 28 | WorkingDirectory = "/var/lib/bacula"
|
---|
| 29 | PidDirectory = "/var/run"
|
---|
| 30 | Maximum Concurrent Jobs = 10
|
---|
| 31 | Password = "0DntXXl7DVkNYYRApYdhKKoy2Huq1CVHwIRAKUwgNA86" # Console password
|
---|
| 32 | Messages = Daemon
|
---|
| 33 | }
|
---|
| 34 |
|
---|
| 35 |
|
---|
| 36 |
|
---|
| 37 | JobDefs {
|
---|
| 38 | Name = "DefaultJob"
|
---|
| 39 | Type = Backup
|
---|
| 40 | Level = Incremental
|
---|
| 41 | Client = bacula-fd
|
---|
| 42 | FileSet = "Full Set"
|
---|
| 43 | Schedule = "WeeklyCycle"
|
---|
| 44 | Storage = FileStorage
|
---|
| 45 | Messages = Standard
|
---|
| 46 | Pool = FileStoragePool
|
---|
| 47 | Priority = 10
|
---|
| 48 | }
|
---|
| 49 |
|
---|
| 50 | JobDefs {
|
---|
| 51 | Name = "ServerJob"
|
---|
| 52 | Type = Backup
|
---|
| 53 | Level = Incremental
|
---|
| 54 | Client = bacula-fd
|
---|
| 55 | FileSet = "Full Set"
|
---|
| 56 | Schedule = "WeeklyCycle"
|
---|
| 57 | Storage = FileStorage
|
---|
| 58 | Messages = Standard
|
---|
| 59 | Pool = FileStoragePool
|
---|
| 60 | Priority = 10
|
---|
| 61 | }
|
---|
| 62 |
|
---|
| 63 |
|
---|
| 64 | #
|
---|
| 65 | # Define the main nightly save backup job
|
---|
| 66 | # By default, this job will back up to disk in
|
---|
| 67 | #Job {
|
---|
| 68 | # Name = "Client1"
|
---|
| 69 | # JobDefs = "DefaultJob"
|
---|
| 70 | # Write Bootstrap = "/var/lib/bacula/Client1.bsr"
|
---|
| 71 | #}
|
---|
| 72 |
|
---|
| 73 | #Job {
|
---|
| 74 | # Name = "Client2"
|
---|
| 75 | # Client = bacula2-fd
|
---|
| 76 | # JobDefs = "DefaultJob"
|
---|
| 77 | # Write Bootstrap = "/var/lib/bacula/Client2.bsr"
|
---|
| 78 | #}
|
---|
| 79 |
|
---|
| 80 | # Backup the catalog database (after the nightly save)
|
---|
| 81 | Job {
|
---|
| 82 | Name = "BackupCatalog"
|
---|
| 83 | JobDefs = "DefaultJob"
|
---|
| 84 | Level = Full
|
---|
| 85 | FileSet="Catalog"
|
---|
| 86 | Schedule = "WeeklyCycleAfterBackup"
|
---|
| 87 | # This creates an ASCII copy of the catalog
|
---|
| 88 | # WARNING!!! Passing the password via the command line is insecure.
|
---|
| 89 | # see comments in make_catalog_backup for details.
|
---|
| 90 | # Arguments to make_catalog_backup are:
|
---|
| 91 | # make_catalog_backup <database-name> <user-name> <password> <host>
|
---|
| 92 | RunBeforeJob = "/usr/lib64/bacula/make_catalog_backup bacula bacula"
|
---|
| 93 | # This deletes the copy of the catalog
|
---|
| 94 | RunAfterJob = "/usr/lib64/bacula/delete_catalog_backup"
|
---|
| 95 | Write Bootstrap = "/var/lib/bacula/BackupCatalog.bsr"
|
---|
| 96 | Priority = 11 # run after main backup
|
---|
| 97 | }
|
---|
| 98 |
|
---|
| 99 | #
|
---|
| 100 | # Standard Restore template, to be changed by Console program
|
---|
| 101 | # Only one such job is needed for all Jobs/Clients/Storage ...
|
---|
| 102 | #
|
---|
| 103 | Job {
|
---|
| 104 | Name = "RestoreFiles"
|
---|
| 105 | Type = Restore
|
---|
| 106 | Client=bacula-fd
|
---|
| 107 | FileSet="Full Set"
|
---|
| 108 | Storage = FileStorage
|
---|
| 109 | Pool = FileStoragePool
|
---|
| 110 | Messages = Standard
|
---|
| 111 | Where = /bacula-restores
|
---|
| 112 | Client Run After Job = "\"C:/Programme/VMware/VMware Consolidated Backup Framework/vcbRestore.exe\" -h localhost -u dassit -p linuxlinux -s c:\\backups\\xp_mini"
|
---|
| 113 |
|
---|
| 114 | }
|
---|
| 115 |
|
---|
| 116 |
|
---|
| 117 | # List of files to be backed up
|
---|
| 118 | #FileSet {
|
---|
| 119 | # Name = "Full Set"
|
---|
| 120 | # Include {
|
---|
| 121 | # Options {
|
---|
| 122 | # signature = MD5
|
---|
| 123 | # }
|
---|
| 124 | #
|
---|
| 125 | # Put your list of files here, preceded by 'File =', one per line
|
---|
| 126 | # or include an external list with:
|
---|
| 127 | #
|
---|
| 128 | # File = <file-name
|
---|
| 129 | #
|
---|
| 130 | # Note: / backs up everything on the root partition.
|
---|
| 131 | # if you have other partitons such as /usr or /home
|
---|
| 132 | # you will probably want to add them too.
|
---|
| 133 | #
|
---|
| 134 | # By default this is defined to point to the Bacula build
|
---|
| 135 | # directory to give a reasonable FileSet to backup to
|
---|
| 136 | # disk storage during initial testing.
|
---|
| 137 | #
|
---|
| 138 | # File = /usr/src/packages/BUILD/bacula-2.4.4
|
---|
| 139 | # }
|
---|
| 140 |
|
---|
| 141 | #
|
---|
| 142 | # If you backup the root directory, the following two excluded
|
---|
| 143 | # files can be useful
|
---|
| 144 | #
|
---|
| 145 | # Exclude {
|
---|
| 146 | # File = /proc
|
---|
| 147 | # File = /tmp
|
---|
| 148 | # File = /.journal
|
---|
| 149 | # File = /.fsck
|
---|
| 150 | # }
|
---|
| 151 | #}
|
---|
| 152 |
|
---|
| 153 | #
|
---|
| 154 | # When to do the backups, full backup on first sunday of the month,
|
---|
| 155 | # differential (i.e. incremental since full) every other sunday,
|
---|
| 156 | # and incremental backups other days
|
---|
| 157 | Schedule {
|
---|
| 158 | Name = "WeeklyCycle"
|
---|
| 159 | Run = Full 1st sun at 23:05
|
---|
| 160 | Run = Differential 2nd-5th sun at 23:05
|
---|
| 161 | Run = Incremental mon-sat at 23:05
|
---|
| 162 | }
|
---|
| 163 |
|
---|
| 164 | # This schedule does the catalog. It starts after the WeeklyCycle
|
---|
| 165 | Schedule {
|
---|
| 166 | Name = "WeeklyCycleAfterBackup"
|
---|
| 167 | Run = Full sun-sat at 23:10
|
---|
| 168 | }
|
---|
| 169 |
|
---|
| 170 |
|
---|
| 171 |
|
---|
| 172 | Schedule {
|
---|
| 173 | Name = "Never"
|
---|
| 174 | }
|
---|
| 175 |
|
---|
| 176 | Schedule {
|
---|
| 177 | Name = "DassITCycle"
|
---|
| 178 | Run = Level=Full Pool=FileStoragePool Storage=FileStorage 1st fri at 21:07
|
---|
| 179 | Run = Level=Full Pool=FileStoragePool Storage=FileStorage 2nd-5th fri at 21:45
|
---|
| 180 | Run = Level=Incremental Pool=FileStoragePool Storage=FileStorage mon-fri at 00:07
|
---|
| 181 | }
|
---|
| 182 |
|
---|
| 183 | Schedule {
|
---|
| 184 | Name = "LaptopCycle"
|
---|
| 185 | Run = Level=Full Pool=FileStoragePool Storage=FileStorage 1st fri at 10:30
|
---|
| 186 | Run = Level=Differential Pool=FileStoragePool Storage=FileStorage 2nd-5th fri at 12:00pm
|
---|
| 187 | Run = Level=Incremental Pool=FileStoragePool Storage=FileStorage mon-fri at 12:30pm
|
---|
| 188 | }
|
---|
| 189 |
|
---|
| 190 | # www server backup durchführen
|
---|
| 191 | Schedule {
|
---|
| 192 | Name = "www-cycle"
|
---|
| 193 | Run = Level=Full Pool=FileStoragePool Storage=FileStorage 1st fri at 19:00
|
---|
| 194 | Run = Level=Full Pool=FileStoragePool Storage=FileStorage 2nd-5th fri at 19:00
|
---|
| 195 | Run = Level=Incremental Pool=FileStoragePool Storage=FileStorage mon-fri at 23:30
|
---|
| 196 | }
|
---|
| 197 |
|
---|
| 198 | Schedule {
|
---|
| 199 | Name = "ManuelaCycle"
|
---|
| 200 | Run = Level=Full Pool=FileStoragePool Storage=FileStorage 1st thu at 10:30
|
---|
| 201 | Run = Level=Differential Pool=FileStoragePool Storage=FileStorage 2nd-5th thu at 12:00pm
|
---|
| 202 | Run = Level=Incremental Pool=FileStoragePool Storage=FileStorage mon,thu at 12:30pm
|
---|
| 203 | }
|
---|
| 204 |
|
---|
| 205 |
|
---|
| 206 | Schedule {
|
---|
| 207 | Name = "migrationcycle"
|
---|
| 208 | Run = Level=Full Pool=FileStoragePool Storage=FileStorage fri at 21:00
|
---|
| 209 | }
|
---|
| 210 |
|
---|
| 211 |
|
---|
| 212 | # Sicherung der Produktivmaschinen über VCB, 1. Samstag im Monat um 3:00
|
---|
| 213 | Schedule {
|
---|
| 214 | Name = "vcb-cycle"
|
---|
| 215 | Run = Level=Full Pool=FileStoragePool Storage=FileStorage 1st sat at 03:00
|
---|
| 216 | }
|
---|
| 217 |
|
---|
| 218 | # Sicherung der Produktivmaschinen über VCB, 2. Samstag im Monat um 3:00
|
---|
| 219 | Schedule {
|
---|
| 220 | Name = "vcb-cycle-migrate"
|
---|
| 221 | Run = Level=Full Pool=FileStoragePool Storage=FileStorage 2nd sat at 03:00
|
---|
| 222 | }
|
---|
| 223 |
|
---|
[861] | 224 | Catalog{
|
---|
| 225 | Name = MyCatalog
|
---|
| 226 | dbname = "bacula"; dbuser = "bacula"; dbpassword = ""
|
---|
| 227 | }
|
---|
[823] | 228 |
|
---|
[861] | 229 | Catalog{
|
---|
| 230 | Name = MyOtherCatalog
|
---|
| 231 | dbname = "bacula";
|
---|
| 232 | dbuser = "bacula";
|
---|
| 233 | dbpassword = ""
|
---|
| 234 | }
|
---|
[823] | 235 |
|
---|
[861] | 236 | Catalog{
|
---|
| 237 | Name = YetAnotherCatalog
|
---|
| 238 | dbname = "bacula";
|
---|
| 239 | dbuser = "bacula";
|
---|
| 240 | dbpassword = ""
|
---|
| 241 | }
|
---|
[823] | 242 |
|
---|
[861] | 243 | Catalog{
|
---|
| 244 | Name = MyCompletelyNewCatalog
|
---|
| 245 | dbname = "bacula";
|
---|
| 246 | dbuser = "bacula";
|
---|
| 247 | dbpassword = ""
|
---|
| 248 | }
|
---|
[823] | 249 |
|
---|
| 250 |
|
---|
| 251 |
|
---|
| 252 |
|
---|
| 253 | # This is the backup of the catalog
|
---|
| 254 | FileSet {
|
---|
| 255 | Name = "Catalog"
|
---|
| 256 | Include {
|
---|
| 257 | Options {
|
---|
| 258 | signature = MD5
|
---|
| 259 | }
|
---|
| 260 | File = /var/lib/bacula/bacula.sql
|
---|
| 261 | }
|
---|
| 262 | }
|
---|
| 263 |
|
---|
| 264 | Client {
|
---|
| 265 | Name = cryptoserver-fd
|
---|
| 266 | Address = cryptoserver
|
---|
| 267 | FDPort = 9102
|
---|
| 268 | Catalog = MyCatalog
|
---|
| 269 | }
|
---|
| 270 |
|
---|
| 271 | Client {
|
---|
| 272 | Name = gaffel-fd
|
---|
| 273 | Address = gaffel
|
---|
| 274 | FDPort = 9102
|
---|
| 275 | Catalog = MyCatalog
|
---|
| 276 | Password = "3f580b8811dc920c0c34d060fe9e7f2d" # password for FileDaemon
|
---|
| 277 | }
|
---|
| 278 |
|
---|
| 279 |
|
---|
| 280 | # Backup the catalog database (after the nightly save)
|
---|
| 281 | #Job {
|
---|
| 282 | # Name = "BackupCatalog"
|
---|
| 283 | # JobDefs = "DefaultJob"
|
---|
| 284 | # Level = Full
|
---|
| 285 | # FileSet="Catalog"
|
---|
| 286 | # Schedule = "WeeklyCycleAfterBackup"
|
---|
| 287 | # # This creates an ASCII copy of the catalog
|
---|
| 288 | # RunBeforeJob = "/etc/bacula/make_catalog_backup bacula bacula"
|
---|
| 289 | # # This deletes the copy of the catalog
|
---|
| 290 | # RunAfterJob = "/etc/bacula/delete_catalog_backup"
|
---|
| 291 | # Write Bootstrap = "/var/lib/bacula/BackupCatalog.bsr"
|
---|
| 292 | # Priority = 11 # run after main backup
|
---|
| 293 | # Client = bacula-fd
|
---|
| 294 | #}
|
---|
| 295 |
|
---|
| 296 |
|
---|
| 297 | ## Backup the InterIura servers
|
---|
| 298 | #Job {
|
---|
| 299 | # Name = "iu-vtiger"
|
---|
| 300 | # JobDefs = "ServerJob"
|
---|
| 301 | # # This creates an ASCII copy of the catalog
|
---|
| 302 | # Client Run Before Job = "/usr/local/bin/dump_db vtigercrm503 root vtiger"
|
---|
| 303 | # # This deletes the copy of the catalog
|
---|
| 304 | # Client Run After Job = "/usr/local/bin/delete_db_dump"
|
---|
| 305 | # Write Bootstrap = "/var/lib/bacula/iu-vtiger.bsr"
|
---|
| 306 | # Client = iu-vtiger-fd
|
---|
| 307 | # FileSet = "iu-set"
|
---|
| 308 | #}
|
---|
| 309 |
|
---|
| 310 | ## Backup the InterIura servers
|
---|
| 311 | #Job {
|
---|
| 312 | # Name = "iu-wiki"
|
---|
| 313 | # JobDefs = "ServerJob"
|
---|
| 314 | # # This creates an ASCII copy of the catalog
|
---|
| 315 | # Client RunBeforeJob = "/usr/local/bin/dump_db wikidb root InterIura512"
|
---|
| 316 | # # This deletes the copy of the catalog
|
---|
| 317 | # Client RunAfterJob = "/usr/local/bin/delete_db_dump"
|
---|
| 318 | # Write Bootstrap = "/var/lib/bacula/iu-wiki.bsr"
|
---|
| 319 | # Client = iu-wiki-fd
|
---|
| 320 | # FileSet = "iu-set"
|
---|
| 321 | #}
|
---|
| 322 |
|
---|
| 323 |
|
---|
| 324 |
|
---|
| 325 |
|
---|
| 326 | #
|
---|
| 327 | # Define the main nightly save backup job
|
---|
| 328 | Job {
|
---|
| 329 | Name = "bacula"
|
---|
| 330 | JobDefs = "ServerJob"
|
---|
| 331 | Write Bootstrap = "/var/lib/bacula/bacula.bsr"
|
---|
| 332 | FileSet = "Full Set"
|
---|
| 333 | Client = bacula-fd
|
---|
| 334 | # Spool Data = yes
|
---|
| 335 | }
|
---|
| 336 |
|
---|
| 337 | Job {
|
---|
| 338 | Name = "ox6"
|
---|
| 339 | JobDefs = "ServerJob"
|
---|
| 340 | Description = "ox backup"
|
---|
| 341 | Write Bootstrap = "/var/lib/bacula/ox.bsr"
|
---|
| 342 | FileSet = "ox set"
|
---|
| 343 | Client = ox6-fd
|
---|
| 344 | # Spool Data = yes
|
---|
| 345 | Client Run Before Job = "/usr/local/bin/mysqldump-all.sh"
|
---|
| 346 | # Client Run Before Job = "/home/plone/dassIT/bin/repozo -BvzQ -r /home/plone/dassIT/backup/ -f /home/plone/dassIT/var/filestorage/Data.fs"
|
---|
| 347 | }
|
---|
| 348 |
|
---|
| 349 | Job {
|
---|
| 350 | Name = "gemeinschaft"
|
---|
| 351 | JobDefs = "ServerJob"
|
---|
| 352 | Description = " backup"
|
---|
| 353 | Write Bootstrap = "/var/lib/bacula/gemeinschaft.bsr"
|
---|
| 354 | FileSet = "gemeinschaft set"
|
---|
| 355 | Client = gemeinschaft-fd
|
---|
| 356 | # Spool Data = yes
|
---|
| 357 | Client Run Before Job = "/usr/local/bin/dump_mysqldb.sh"
|
---|
| 358 | # Client Run Before Job = "/home/plone/dassIT/bin/repozo -BvzQ -r /home/plone/dassIT/backup/ -f /home/plone/dassIT/var/filestorage/Data.fs"
|
---|
| 359 | }
|
---|
| 360 |
|
---|
| 361 | Job {
|
---|
| 362 | FileSet = "sfriedelfileset"
|
---|
| 363 | Name = "sfriedel"
|
---|
| 364 | Client = sfriedel-fd
|
---|
| 365 | JobDefs = "LaptopJob"
|
---|
| 366 | Write Bootstrap = "/var/lib/bacula/sfriedel.bsr"
|
---|
| 367 | Enabled = no
|
---|
| 368 | }
|
---|
| 369 |
|
---|
| 370 | ## Laptop Sebastian Lederer
|
---|
| 371 | Job {
|
---|
| 372 | FileSet = "sledererfileset"
|
---|
| 373 | Name = "slederer"
|
---|
| 374 | Client = slederer-fd
|
---|
| 375 | JobDefs = "LaptopJob"
|
---|
| 376 | Write Bootstrap = "/var/lib/bacula/slederer.bsr"
|
---|
| 377 | }
|
---|
| 378 |
|
---|
| 379 |
|
---|
| 380 | ## Laptop Torsten
|
---|
| 381 | Job {
|
---|
| 382 | FileSet = "torstenfileset"
|
---|
| 383 | Name = "torsten"
|
---|
| 384 | Client = torsten-fd
|
---|
| 385 | JobDefs = "TorstenJob"
|
---|
| 386 | Write Bootstrap = "/var/lib/bacula/torsten.bsr"
|
---|
| 387 | }
|
---|
| 388 |
|
---|
| 389 |
|
---|
| 390 | Job {
|
---|
| 391 | Name = "futurama"
|
---|
| 392 | Client = futurama-fd
|
---|
| 393 | JobDefs = "ServerJob"
|
---|
| 394 | FileSet = "futurama set"
|
---|
| 395 | Write Bootstrap = "/var/lib/bacula/futurama.bsr"
|
---|
| 396 | Client Run Before Job = "/usr/local/bin/backup_database.sh 'buerokratiewikidb wikidb' /var/tmp/db_backup"
|
---|
| 397 | }
|
---|
| 398 |
|
---|
| 399 | Job {
|
---|
| 400 | Name = "database1-dbs"
|
---|
| 401 | JobDefs = "ServerJob"
|
---|
| 402 | Level = Full
|
---|
| 403 | FileSet="database1 set dbs"
|
---|
| 404 | Client = database1-fd
|
---|
| 405 | # This creates a backup of the databases with pg_dump to fifos
|
---|
| 406 | Client Run Before Job = "/etc/bacula/prepare_postgres_backup.sh"
|
---|
| 407 | # This deletes the backup and fifo files
|
---|
| 408 | Client Run After Job = "/etc/bacula/cleanup_postgres_backup.sh"
|
---|
| 409 | Priority = 17 # run after main backup
|
---|
| 410 | }
|
---|
| 411 |
|
---|
| 412 | Job {
|
---|
| 413 | Name = "virtualcenter"
|
---|
| 414 | Client = "virtualcenter-fd"
|
---|
| 415 | JobDefs = "ServerJob"
|
---|
| 416 | FileSet = "win2k3-fileset"
|
---|
| 417 | Write Bootstrap = "/var/lib/bacula/virtualcenter.bsr"
|
---|
| 418 | }
|
---|
| 419 |
|
---|
| 420 | Job {
|
---|
| 421 | Name = "vcbproxy"
|
---|
| 422 | Client = "vcbproxy-fd"
|
---|
| 423 | JobDefs = "ServerJob"
|
---|
| 424 | FileSet = "vcbproxy-fileset"
|
---|
| 425 | Storage = TandbergT40
|
---|
| 426 | enabled = no
|
---|
| 427 | Write Bootstrap = "/var/lib/bacula/vcbproxy.bsr"
|
---|
| 428 | }
|
---|
| 429 |
|
---|
| 430 | Job {
|
---|
| 431 | Name = "Archive"
|
---|
| 432 | Client = "trac-fd"
|
---|
| 433 | JobDefs = "Archive Job"
|
---|
| 434 | FileSet = "Archive Set"
|
---|
| 435 | Write Bootstrap = "/var/lib/bacula/archive.bsr"
|
---|
| 436 | }
|
---|
| 437 |
|
---|