


JobDefs {
  Name = "WS004 Default Job"
  Type = Backup
  Level = Incremental
  Client = WS004-Compaq-fd 
  FileSet = "WS004-COMPAQ Files"
  Schedule = "WS004WeeklyCycle"
  Storage = File
  Messages = WS004-CompaqStandard
  Pool = WS004-compaq
  Priority = 10
}


#
# Job for WS004-Compaq
#
Job {
	Name = "WS004-Compaq"
	Type = Backup
	Client = WS004-Compaq-fd
	FileSet = "WS004-COMPAQ Files"
	Schedule = "WS004WeeklyCycle"
	Storage = File
	Messages = WS004-CompaqStandard
	Write Bootstrap = "/etc/bacula/working/WS004-Compaq.bsr"
	Pool = WS004-compaq
}

#
# Client WS004-Compaq
#
Client {
	Name = WS004-Compaq-fd
	Address = ws004-compaq.bpisys-tx.com
	FDPort = 9102
	Catalog = WS004-CompaqCatalog
	Password = "bpiclient"
	FileRetention = 2 days
	Job Retention = 5 days
	AutoPrune = yes
}


#
# 
# List of files to be backed up
# FileSet (General, Specific Machines, Machine Types)
#

FileSet {
  Name = "WS004-COMPAQ Files"
  Include {
    Options {
      signature = MD5
      compression = gzip6
    }

#-----------------------------------------------------------------    
#  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 = "c:/Documents and Settings/thegeneral/My Documents"
  }

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



#----------------------------------------------------------------
#
# STANDARD RESTORE TEMPLATE, to be changed by Console program
#  Only one such job is needed for all Jobs/Clients/Storage ...
#
Job {
  Name = "Restore WS004 Files"
  Type = Restore
  Client= WS004-Compaq-fd                 
  FileSet="WS004-COMPAQ Files"                  
  Storage = File                      
  Pool = WS004-compaq
  Messages = WS004-CompaqStandard
  Where = "c:/restore point"
  }
  
#
#	SCHEDULING
#
#  When to do the backups, full backup on first sunday of the month,
#  differential (i.e. incremental since full) every other sunday,
#  and incremental backups other days
#

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

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

# This is the backup of the catalog
FileSet {
  Name = "WS004-Compaq Catalog"
  Include {
    Options {
      signature = MD5
    }
    File = /etc/bacula/working/ws004-compaq.sql
  }
}

#-------------------------------------------------------
#
#    Job Definitions Above Here
#
#-------------------------------------------------------

#------------------------------------------------------
#
# TESTING UNIQUE CATALOG PER CLIENT
# AND POOL DEF 
#
#------------------------------------------------------
# Generic catalog service
Catalog {
  Name = WS004-CompaqCatalog
  dbname = bacula; user = bacula; password = "groovy"
}


#
# WARNING! the following will create a file that you must cycle from
#          time to time as it will grow indefinitely. However, it will
#          also keep all your messages if they scroll off the console.
#

# Reasonable message delivery -- send most everything to email address
#  and to the console
Messages {
  Name = WS004-CompaqStandard
#
# NOTE! If you send to two email or more email addresses, you will need
#  to replace the %r in the from field (-f part) with a single valid
#  email address in both the mailcommand and the operatorcommand.
#
  mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(BPI Remote WS004\) %r\" -s \"WS004-Bacula: %t %e of %c %l\" %r"
  operatorcommand = "/usr/sbin/bsmtp -h localhost -f \"\(BPI Remote WS004\) %r\" -s \"Bacula: Intervention needed for %j\" %r"
  mail = eprinz@bpisys.com = all, !skipped            
  operator = eprinz@bpisys.com = mount
  console = all, !skipped, !saved
  
  append = "/etc/bacula/working/log" = all, !skipped
}
 

#
# Message delivery for daemon messages (no job).
Messages {
  Name = WS004-CompaqDaemon
  mailcommand = "/usr/sbin/bsmtp -h pb500.bpisys-tx.com -f \"\(Bacula\) %r\" -s \"WS004-Bacula daemon message\" %r"
  mail = eprinz@bpisys-tx.com = all, !skipped            
  console = all, !skipped, !saved
  append = "/etc/bacula/working/log" = all, !skipped
}
    
# Default pool definition
Pool {
  Name = WS004-compaq
  Pool Type = Backup
  Recycle = yes                       # Bacula can automatically recycle Volumes
  AutoPrune = yes                     # Prune expired volumes
  Volume Retention = 15 days          # 
  Accept Any Volume = yes             # write on any volume in the pool
}

Console {
	Name = ws004-console
	Password = letmesee
	JobACL = WS004-Saved, "WS004-Compaq", "Restore WS004 Files"
	ClientACL = WSClientList, "WS004-Compaq-fd"
	FileSetACL = ws004FileSet, "WS004-Compaq Catalog"
	CommandACL = restore, .restore
	CatalogACL = WSCatalog, "WS004-CompaqCatalog"
}
	
	
	


#          -- END -- 
