Director {                            # define myself
  Name = nitrogen-dir
  DIRport = 9101                # where we listen for UA connections
  QueryFile = "/usr/local/bacula/etc/query.sql"
  WorkingDirectory = "/usr/local/bacula/var/bacula/working"
  PidDirectory = "/var/run"
  Maximum Concurrent Jobs = 4
  Password = "*******"         # Console password
  Messages = Daemon
}

JobDefs {
  Name = "FullJob"
  Type = Backup
  Schedule = "Full"
  Level = Full
  Maximum Concurrent Jobs = 4
  Messages = Standard
  Pool = Full-Pool
  Full Backup Pool = Full-Pool
  Differential Backup Pool = Diff-Pool
  Priority = 10
}

JobDefs {
  Name = "IncJob"
  Type = Backup
  Schedule = "Incremental"
  Level = Incremental
  Maximum Concurrent Jobs = 4
  Messages = Standard
  Pool = Inc-Pool
  Incremental Backup Pool = Inc-Pool
  Priority = 10
}


# Backup the catalog database (after the nightly save)
Job {
  Name = "BackupCatalog"
  JobDefs = "FullJob"
  Client = "nitrogen-fd"
  Level = Full
  Storage = Nitrogen-Full
  FileSet="Catalog"
  Schedule = "WeeklyCycleAfterBackup"
  # This creates an ASCII copy of the catalog
  RunBeforeJob = "/usr/local/bacula/etc/make_catalog_backup bacula bacula"
  # This deletes the copy of the catalog
  RunAfterJob  = "/usr/local/bacula/etc/delete_catalog_backup"
  Write Bootstrap = "/usr/local/bacula/var/bacula/working/BackupCatalog.bsr"
  Priority = 11                   # run after main backup
}

# Standard Restore template, to be changed by Console program
Job {
  Name = "RestoreFiles"
  Type = Restore
  Client=nitrogen-fd
  FileSet="Nitrogen FileSet"
  Storage = Nitrogen-Full
  Pool = Full-Pool
  Messages = Standard
  Where = /tmp/bacula-restores
}

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

Schedule {
  Name = "Incremental"
  Run = Incremental mon-sat at 1:05
}

Schedule {
  Name = "CheapStorage Full"
  Run = Full 1st sat at 1:05
}

Schedule {
  Name = "CheapStorage Incremental"
  Run = Incremental 2nd-5th sat at 1:05
}


# This schedule does the catalog. It starts after the WeeklyCycle
Schedule {
  Name = "WeeklyCycleAfterBackup"
  Run = Full sun-sat at 1:10
}

# This is the backup of the catalog
FileSet {
  Name = "Catalog"
  Include {
    Options {
      signature = MD5
    }
    File = /usr/local/bacula/var/bacula/working/bacula.sql
  }
}


# Definitions of All other pools (Full, Differential and Incremental)
Pool {
  Name = Full-Pool
  Pool Type = Backup
  Recycle = yes           # automatically recycle Volumes
  AutoPrune = yes         # Prune expired volumes
  Volume Retention = 3 months
  Accept Any Volume = yes # write on any volume in the pool
  Maximum Volume Jobs = 1
  Label Format = "${JobName}"
}

Pool {
  Name = Inc-Pool
  Pool Type = Backup
  Recycle = yes           # automatically recycle Volumes
  AutoPrune = yes         # Prune expired volumes
  Volume Retention = 1 month
  Accept Any Volume = yes
  Maximum Volume Jobs = 1
  Label Format = "${JobName}"
}

Pool {
  Name = Diff-Pool
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 3 months
  Accept Any Volume = yes
  Maximum Volume Jobs = 1
  Label Format = "${JobName}"
}

#
# Restricted console used by tray-monitor to get the status of the director
#
Console {
  Name = nitrogen-mon
  Password = "*******"
  CommandACL = status, .status
}


#############################################################
#  NITROGEN START
#############################################################

# Client (File Services) to backup
Client {
  Name = nitrogen-fd
  Address = nitrogen
  FDPort = 9102
  Catalog = MyCatalog
  Password = "*******"          # password for FileDaemon
  File Retention = 30 days            # 30 days
  Job Retention = 6 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
  Maximum Concurrent Jobs = 4
}

#
# NITROGEN Full Backup Job
#
Job {
  Name = "nitrogen-full"
  Client = nitrogen-fd
  JobDefs = "FullJob"
  Storage = "Nitrogen-Full"
  FileSet = "Nitrogen FileSet"
  Write Bootstrap = "/usr/local/bacula/var/bacula/working/nitrogen.bsr"
}

#
# NITROGEN Incremental Backup Job
#
Job {
  Name = "nitrogen-inc"
  Client = nitrogen-fd
  JobDefs = "IncJob"
  Storage = "Nitrogen-Inc"
  FileSet = "Nitrogen FileSet"
  Write Bootstrap = "/usr/local/bacula/var/bacula/working/nitrogen.bsr"
}

# Definiton of file storage device for Nitrogen Full
Storage {
  Name = Nitrogen-Full
# Do not use "localhost" here
  Address = nitrogen                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "******"
  Device = Nitrogen-Full
  Media Type = File
  Maximum Concurrent Jobs = 4
}

# Definiton of file storage device for Nitrogen Incremental
Storage {
  Name = Nitrogen-Inc
# Do not use "localhost" here
  Address = nitrogen                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "******"
  Device = Nitrogen-Inc
  Media Type = File
  Maximum Concurrent Jobs = 4
}

# List of files to be backed up
FileSet {
  Name = "Nitrogen FileSet"
  Include {
    Options {
     compression=GZIP
     signature = SHA1
    }
#
#  Put your list of files here, preceded by 'File =', one per line
#    or include an external list with:
#
#    File = <file-name
#
#  Note: / backs up everything on the root partition.
#    if you have other partitons such as /usr or /home
#    you will probably want to add them too.
#
#  By default this is defined to point to the Bacula build
#    directory to give a reasonable FileSet to backup to
#    disk storage during initial testing.
#
    File = /
    File = /boot
 }

#
# If you backup the root directory, the following two excluded
#   files can be useful
#
  Exclude {
    File = /proc
    File = /tmp
    File = /.journal
    File = /.fsck
  }
}

#############################################################
#  PLATINUM START
#############################################################

# Client (File Services) to backup
Client {
  Name = platinum-fd
  Address = platinum
  FDPort = 9102
  Catalog = MyCatalog
  Password = "******"          # password for FileDaemon
  File Retention = 30d                # 30 days
  Job Retention = 180d                # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
  Maximum Concurrent Jobs = 4
}

#
# PLATINUM  Full Backup Job
#
Job {
  Name = "platinum-full"
  Client = platinum-fd
  JobDefs = "FullJob"
  Storage = "Platinum-Full"
  FileSet = "Platinum FileSet"
  Write Bootstrap = "/usr/local/bacula/var/bacula/working/platinum.bsr"
}

#
# PLATINUM Incremental Backup Job
#
Job {
  Name = "platinum-inc"
  Client = platinum-fd
  JobDefs = "IncJob"
  Storage = "Platinum-Inc"
  FileSet = "Platinum FileSet"
  Write Bootstrap = "/usr/local/bacula/var/bacula/working/platinum.bsr"
}

# Definiton of file storage device for Platinum Full
Storage {
  Name = Platinum-Full
# Do not use "localhost" here
  Address = nitrogen                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "******"
  Device = Platinum-Full
  Media Type = File
  Maximum Concurrent Jobs = 4
}

# Definiton of file storage device for Platinum Incremental
Storage {
  Name = Platinum-Inc
# Do not use "localhost" here
  Address = nitrogen                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "******"
  Device = Platinum-Inc
  Media Type = File
  Maximum Concurrent Jobs = 4
}

# List of files to be backed up
FileSet {
  Name = "Platinum FileSet"
  Include {
    Options {
      compression=GZIP
      signature = SHA1
    }
#
#  Put your list of files here, preceded by 'File =', one per line
#    or include an external list with:
#
#    File = <file-name
#
    File = "c:"
    File = "e:"
    File = "f:"
  }
}


#############################################################
#  THORIUM START
#############################################################

# Client (File Services) to backup
Client {
  Name = thorium-fd
  Address = thorium.edu.sollentuna.se
  FDPort = 9102
  Catalog = MyCatalog
  Password = "******"          # password for FileDaemon
  File Retention = 30d                # 30 days
  Job Retention = 180d                # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
  Maximum Concurrent Jobs = 4
}


#
# THORIUM Full Backup Job
#
Job {
  Name = "thorium-full"
  Client = thorium-fd
  JobDefs = "FullJob"
  Storage = "Thorium-Full"
  FileSet = "Thorium FileSet"
  Write Bootstrap = "/usr/local/bacula/var/bacula/working/thorium.bsr"
}

#
# THORIUM Incremental Backup Job
#
Job {
  Name = "thorium-inc"
  Client = thorium-fd
  JobDefs = "IncJob"
  Storage = "Thorium-Inc"
  FileSet = "Thorium FileSet"
  Write Bootstrap = "/usr/local/bacula/var/bacula/working/thorium.bsr"
}

# Definiton of file storage device for Thorium Full
Storage {
  Name = Thorium-Full
# Do not use "localhost" here
  Address = nitrogen                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "******"
  Device = Thorium-Full
  Media Type = File
  Maximum Concurrent Jobs = 4
}

# Definiton of file storage device for Thorium Incremental
Storage {
  Name = Thorium-Inc
# Do not use "localhost" here
  Address = nitrogen                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "******"
  Device = Thorium-Inc
  Media Type = File
  Maximum Concurrent Jobs = 4
}

# List of files to be backed up
FileSet {
  Name = "Thorium FileSet"
  Include {
    Options {
      compression=GZIP
      signature = SHA1
    }
#
#  Put your list of files here, preceded by 'File =', one per line
#    or include an external list with:
#
#    File = <file-name
#
    File = "c:"
    File = "e:"
  }
}



#############################################################
#  COBALT START
#############################################################

# Client (File Services) to backup
Client {
  Name =cobalt-fd
  Address = cobalt
  FDPort = 9102
  Catalog = MyCatalog
  Password = "******"          # password for FileDaemon
  File Retention = 30d                # 30 days
  Job Retention = 180d                # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
  Maximum Concurrent Jobs = 4
}

#
# COBALT Full Backup Job
#
Job {
  Name = "cobalt-full"
  Client = cobalt-fd
  JobDefs = "FullJob"
  Storage = "Cobalt-Full"
  FileSet = "Cobalt FileSet"
  Write Bootstrap = "/usr/local/bacula/var/bacula/working/cobalt.bsr"
}


#
# COBALT Full CheapStorage Backup Job
#
Job {
  Name = "cobalt-full-cs"
  Client = cobalt-fd
  JobDefs = "FullJob"
  Storage = "Cobalt-Full"
  Schedule = "CheapStorage Full"
  FileSet = "Cobalt CheapStorage FileSet"
  Write Bootstrap = "/usr/local/bacula/var/bacula/working/cobalt.bsr"
}


#
# COBALT Incremental Backup Job
#
Job {
  Name = "cobalt-inc"
  Client = cobalt-fd
  JobDefs = "IncJob"
  Storage = "Cobalt-Inc"
  FileSet = "Cobalt FileSet"
  Write Bootstrap = "/usr/local/bacula/var/bacula/working/cobalt.bsr"
}

#
# COBALT Incremental CheapStorage Backup Job
#
Job {
  Name = "cobalt-inc-cs"
  Client = cobalt-fd
  JobDefs = "IncJob"
  Storage = "Cobalt-Inc"
  Schedule = "CheapStorage Incremental"
  FileSet = "Cobalt CheapStorage FileSet"
  Write Bootstrap = "/usr/local/bacula/var/bacula/working/cobalt.bsr"
}


# Definiton of file storage device for Cobalt Full
Storage {
  Name = Cobalt-Full
# Do not use "localhost" here
  Address = nitrogen                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "******"
  Device = Cobalt-Full
  Media Type = File
  Maximum Concurrent Jobs = 4
}

# Definiton of file storage device for Cobalt Incremental
Storage {
  Name = Cobalt-Inc
# Do not use "localhost" here
  Address = nitrogen                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "******"
  Device = Cobalt-Inc
  Media Type = File
  Maximum Concurrent Jobs = 4
}

# List of files to be backed up
FileSet {
  Name = "Cobalt FileSet"
  Include {
    Options {
      compression=GZIP
      signature = SHA1
    }
#
#  Put your list of files here, preceded by 'File =', one per line
#    or include an external list with:
#
#    File = <file-name
#
    File = "c:"
    File = "e:"
    File = "g:"
  }
}


# List of files to be backed up
FileSet {
  Name = "Cobalt CheapStorage FileSet"
  Include {
    Options {
      compression=GZIP
      signature = SHA1
    }
#
#  Put your list of files here, preceded by 'File =', one per line
#    or include an external list with:
#
#    File = <file-name
#
    File = "f:"
  }
}

