# #-------------------------------------------------------
# # Kinamu Backup/Restore Client Defintion
# #-------------------------------------------------------
# Client (File Services) to backup

Client {
  Name = CCRMTEST-fd
  Address = 192.168.100.95
  FDPort = 9102
  Catalog = MyCatalog
  Password = "geheim"          # password for FileDaemon
  File Retention = 30 days            # 30 days
  Job Retention = 6 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}


# #-------------------------------------------------------
# # Kinamu Client Schdule for Backup
# #-------------------------------------------------------

Schedule {
	Name = SugarCRM_Backup_CCRMTEST
	RUN = LEVEL=Full sun at 01:00
	RUN = LEVEL=Incremental mon-sat at 01:00
}


# #-------------------------------------------------------
# # Kinamu Storage Definition
# # Device Definition ist in ccrmtest-sd.conf definiert.
# #-------------------------------------------------------

Storage {
	Name = SugarCRM_CCRMTEST
	Address = CBCK0001
	Device = SugarCRM_CCRMTEST
	Media Type = SugarCRM_CCRMTEST
	Password = "geheim"
}


# #-------------------------------------------------------
# # Kinamu Volume Pool Definition
# #-------------------------------------------------------

Pool {
	Name = SugarCRM_CCRMTEST
	Use Volume Once = Yes
	Pool Type = Backup
	LabelFormat = "Vol-CCRMTEST-"
	Autoprune = Yes
	Volume Retention = 31d
	Maximum Volumes = 35
	Recycle = Yes
}


# #-------------------------------------------------------
# # Kinamu FileSet/JobDefs/Job Definitionen Files
# #-------------------------------------------------------

FileSet {
	Name = CCRMTEST_SugarCRM_Files
	Include {
		Options {
			compression = GZIP
			signature = MD5
		}
		File = /var/www/html
		File = /var/log
		File = /opt
		File = /etc
	}
	Exclude {
		File = /usr
		File = /tmp
		File = /proc
		File = /.journal
		File = /.fsck
	}
}

# #-------------------------------------------------------
# # Kinamu JobDefs/Job Defintionen Files Full
# #-------------------------------------------------------

JobDefs {
  Name = "CCRMTEST_JobDefs_SugarCRM_Files_Full"
  Type = Backup
  Level = Full
  Client = CCRMTEST-fd
  FileSet = "CCRMTEST_SugarCRM_Files"
  Schedule = "SugarCRM_Backup_CCRMTEST"
  Storage = SugarCRM_CCRMTEST
  Messages = Standard
  Pool = SugarCRM_CCRMTEST
  Priority = 10
  Write Bootstrap = "/tmp/backup/sugarcrm/ccrmtest/%c_SugarCRM_Files_Full_Jobid_%i.bsr"
}

Job {
  Name = "CCRMTEST_01_Backup_SugarCRM_Files_Full"
  JobDefs = "CCRMTEST_JobDefs_SugarCRM_Files_Full"
}


# #-------------------------------------------------------
# # Kinamu JobDefs/Job Defintionen Files Incremental
# #-------------------------------------------------------

JobDefs {
  Name = "CCRMTEST_JobDefs_SugarCRM_Files_Incremental"
  Type = Backup
  Level = Incremental
  Client = CCRMTEST-fd
  FileSet = "CCRMTEST_SugarCRM_Files"
  Schedule = "SugarCRM_Backup_CCRMTEST"
  Storage = SugarCRM_CCRMTEST
  Messages = Standard
  Pool = SugarCRM_CCRMTEST
  Priority = 10
  Write Bootstrap = "/tmp/backup/sugarcrm/ccrmtest/%c_SugarCRM_Files_Incremental_Jobid_%i.bsr"
}

Job {
  Name = "CCRMTEST_02_Backup_SugarCRM_Files_Incremental"
  JobDefs = "CCRMTEST_JobDefs_SugarCRM_Files_Incremental"
}



# #-------------------------------------------------------
# # Kinamu Fileset Defintion Database Backup via Pipe
# #-------------------------------------------------------


FileSet {
	Name = CCRMTEST_SugarCRM_Database
	Include {
		Options {
			compression = GZIP
			signature = MD5
                }
	Plugin = "bpipe:/tmp/ccrmtest_information_schema.sql:mysqldump -f --opt --quote-names --databases information_schema:mysql"
	Plugin = "bpipe:/tmp/ccrmtest_mysql.sql:mysqldump -f --opt --quote-names --databases mysql:mysql"
	Plugin = "bpipe:/tmp/ccrmtest_sugarcrm520.sql:mysqldump -f --opt --quote-names --databases sugarcrm520:mysql"
	Plugin = "bpipe:/tmp/ccrmtest_test.sql:mysqldump -f --opt --quote-names --databases test:mysql"
	}
	Exclude {
                File = /usr
                File = /tmp
                File = /proc
                File = /.journal
                File = /.fsck
        }
}


# #-------------------------------------------------------
# # Kinamu JobDefs/Job Defintionen Database Backup Pipe
# #-------------------------------------------------------

JobDefs {
  Name = "CCRMTEST_JobDefs_SugarCRM_Database"
  Type = Backup
  Level = Full
  Client = CCRMTEST-fd
  FileSet = "CCRMTEST_SugarCRM_Database"
  Schedule = "SugarCRM_Backup_CCRMTEST"
  Storage = SugarCRM_CCRMTEST
  Messages = Standard
  Pool = SugarCRM_CCRMTEST
  Priority = 10
  Write Bootstrap = "/tmp/backup/sugarcrm/ccrmtest/%c_01_Backup_SugarCRM_Database_Jobid_%i.bsr"
}

Job {
  Name = "CCRMTEST_03_Backup_SugarCRM_Database"
  JobDefs = "CCRMTEST_JobDefs_SugarCRM_Database"
}


# #-------------------------------------------------------
# # Kinamu Fileset Definition System Backup without Sugar
# #-------------------------------------------------------


FileSet {
	Name = CCRMTEST_SugarCRM_System
        Include {
                Options {
                        compression = GZIP
                        signature = MD5
                }
	File = /bin
	File = /boot
	File = /dev
	File = /etc
	File = /home
	File = /lib
	File = /lib64
	File = /media
	File = /misc
	File = /mnt
	File = /net
	File = /root
	File = /sbin
	File = /selinux
	File = /srv
	File = /usr
	File = /var
        }
        Exclude {
                File = /usr/local/bacula
		File = /var/www/html
		File = /opt
                File = /tmp
		File = /sys
                File = /proc
                File = /.journal
                File = /.fsck
        }
}


# #-------------------------------------------------------
# # Kinamu JobDefs/Job Defintionen System Backup w/o Sugar
# #-------------------------------------------------------

JobDefs {
  Name = "CCRMTEST_JobDefs_SugarCRM_System"
  Type = Backup
  Level = Full
  Client = CCRMTEST-fd
  FileSet = "CCRMTEST_SugarCRM_System"
  Schedule = "SugarCRM_Backup_CCRMTEST"
  Storage = SugarCRM_CCRMTEST
  Messages = Standard
  Pool = SugarCRM_CCRMTEST
  Priority = 10
  Write Bootstrap = "/tmp/backup/sugarcrm/ccrmtest/%c_01_Backup_SugarCRM_System_JobID_%i.bsr"
}

Job {
  Name = "CCRMTEST_04_Backup_SugarCRM_System"
  JobDefs = "CCRMTEST_JobDefs_SugarCRM_System"
}




# #----------------------------------------------------------------------------------------------------------------------------------



# #--------------------------------------------------------
# # End of Client Defintion
# #--------------------------------------------------------
