Job {
Name = "UNA-dev-FULL"
Type = Backup
Level = Full
Client = una-dev
FileSet = "UNASUS-dev"
Schedule = "BackupFULL"
Storage = BackupFULL
Messages = Standard
Pool = BackupsFull
Write Bootstrap = "/var/spool/bacula/%c.bsr"
Client Run Before Job = "/etc/bacula/scripts/mysqldump.sh"
}
Job {
Name = "UNA-dev-INCDIF"
Type = Backup
Level = Incremental
Client = una-dev
FileSet = "UNASUS-dev"
Schedule = "BackupINCDIF"
Storage = BackupINCDIF
Messages = Standard
Pool = BackupsInc
Write Bootstrap = "/var/spool/bacula/%c.bsr"
Client Run Before Job = "/etc/bacula/scripts/mysqldump.sh"
}
Schedule {
Name = BackupFULL
Run = Level=Full Pool=BackupsFull 1st sun at 3:05
}
Schedule {
Name = BackupINCDIF
Run = Level=Differential Pool=BackupsDif mon at 3:05
Run = Level=Incremental Pool=BackupsInc mon-sat at 3:05
}
Client {
Name = una-dev
Address = 192.168.1.x
FDPort = 9102
Catalog = MyCatalog
Password = "client"
File Retention = 60 days
Job Retention = 4 months
AutoPrune = yes
}
Storage {
Name = BackupFULL
# Do not use "localhost" here
Address = 192.168.0.Y # N.B. Use a fully qualified name here
SDPort = 9103
Password = "storage"
Device = BackupFULL
Media Type = File
}
Storage {
Name = BackupINCDIF
# Do not use "localhost" here
Address = 192.168.0.Y # N.B. Use a fully qualified name here
SDPort = 9103
Password = "storage"
Device = BackupINCDIF
Media Type = File
}
Pool {
Name = BackupsFull
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 120 days
Maximum Volume Bytes = 150G
Maximum Volumes = 6 # Limit number of Volumes in Pool - 10 x 90G = 900G
}
Pool {
Name = BackupsInc
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 150 days
Maximum Volume Bytes = 30G
Maximum Volumes = 10 # Limit number of Volumes in Pool - 10 x 90G = 900G
}
----
Storage { # definition of myself
Name = hdext
SDPort = 9103 # Director's port
WorkingDirectory = "/var/spool/bacula"
Pid Directory = "/var/run"
Maximum Concurrent Jobs = 60
SDAddress = 192.168.0.Y
}
Device {
Name = BackupFULL
Media Type = File
Archive Device = /bacula_full/bacula/backup_full/
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
}
Device {
Name = BackupINCDIF
Media Type = File
Archive Device = /bacula_inc_dif/bacula/backup_incdif/
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
}