LinuxTec
(usa Debian)
Enviado em 22/02/2011 - 13:18h
Server
bacula-dir.conf
# Default Bacula Director Configuration file
#
Director {
Name = backup-dir
DIRport = 9101
QueryFile = "/etc/bacula/scripts/query.sql"
WorkingDirectory = "/var/lib/bacula"
PidDirectory = "/var/run/bacula"
Maximum Concurrent Jobs = 10
Password = "kTmKuzME"
Messages = Daemon
}
JobDefs {
Name = "DefaultJob"
Type = Backup
FileSet = "Full Set"
Schedule = "WeeklyCycle"
Storage = File
Messages = Standard
Pool = Default
Priority = 10
}
JobDefs {
Name = "backup"
Type = Backup
FileSet = "backup"
Schedule = "backup"
Storage = File
Messages = Standard
Pool = Default
Full Backup Pool = Full-Pool-backup
Incremental Backup Pool = Inc-Pool-backup
Differential Backup Pool = Diff-Pool-backup
Priority = 10
}
Job {
Name = "backup"
Client = backup-fd
JobDefs = "backup"
Write Bootstrap = "/var/lib/bacula/backup.bsr"
}
JobDefs {
Name = "samba"
Type = Backup
FileSet = "samba"
Schedule = "samba"
Storage = File
Messages = Standard
Pool = Default
Full Backup Pool = Full-Pool-samba
Incremental Backup Pool = Inc-Pool-samba
Differential Backup Pool = Diff-Pool-samba
Priority = 7
}
Job {
Name = "samba"
Client = samba-fd
JobDefs = "samba"
Write Bootstrap = "/var/lib/bacula/samba.bsr"
}
Job {
Name = "RestoreFiles"
Type = Restore
Client=backup-fd
FileSet="Full Set"
Storage = File
Pool = Default
Messages = Standard
Where = /backup/tmp/bacula-restores
}
FileSet {
Name = "backup"
Include {
Options {
signature = MD5
compression = GZIP
}
File = /etc
File = /root
File = /var/lib/bacula
}
Exclude {
File = /proc
File = /tmp
}
}
FileSet {
Name = "samba"
Include {
Options {
signature = MD5
compression = GZIP
}
File = /boot
File = /etc
File = /root
File = /home/GRIF-WORKS/artes
File = /home/GRIF-WORKS/backup
File = /home/GRIF-WORKS/department
File = /home/GRIF-WORKS/crm
File = /home/GRIF-WORKS/marketing
File = /home/samba/profiles
File = /home/samba/netlogon
File = /home/alcino
File = /home/renato
File = /home/anderson
File = /home/andersson
File = /home/andre
File = /home/diego
File = /home/edson
File = /home/edson
File = /home/fernando
File = /home/gecilda
File = /home/marcus
File = /home/nelson
File = /home/renato
File = /home/renan
File = /home/sidney
File = /home/simone
File = /home/suelene
File = /home/vhosts
File = /home/william
File = /home/wilquer
File = /home/natalia
File = /home/shirley
File = /home/elaine
File = /home/luciana
File = /home/suelene
File = /home/edvania
File = /home/celia
File = /home/marcelo
File = /home/marcus
File = /home/paulo
File = /home/valdeci
File = /home/jorge
}
Exclude {
File = /home/but3k4
File = /proc
File = /tmp
}
}
Exclude {
File = /home/but3k4
File = /proc
File = /tmp
}
}
FileSet {
Name = "Full Set"
Include {
Options {
signature = MD5
compression = GZIP
}
}
Exclude {
File = /proc
File = /tmp
}
}
FileSet {
Name = "Catalog"
Include {
Options {
signature = MD5
}
File = /var/lib/bacula/bacula.sql
}
}
Schedule {
Name = "backup"
Run = Full 1st sun at 19:00
Run = Differential 2nd-5th sun at 19:00
Run = Incremental mon-sat at 19:00
}
Schedule {
Name = "samba"
Run = Full 1st sun at 20:00
Run = Differential 2nd-5th sun at 20:00
Run = Incremental mon-sat at 20:00
}
Schedule {
Name = "WeeklyCycle"
Run = Full 1st sun at 23:50
Run = Differential 2nd-5th sun at 23:50
Run = Incremental mon-sat at 23:50
}
Client {
Name = backup-fd
Address = 192.168.1.20
FDPort = 9102
Catalog = MyCatalog
Password = "kTmKuzME"
File Retention = 10 days
Job Retention = 6 months
AutoPrune = yes
}
Client {
Name = samba-fd
Address = 192.168.1.12
FDPort = 9102
Catalog = MyCatalog
Password = "kTmKuzME"
File Retention = 30 days
Job Retention = 6 months
AutoPrune = yes
}
Storage {
Name = File
Address = backup
SDPort = 9103
Password = "kTmKuzME"
Device = FileStorage
Media Type = File
}
Catalog {
Name = MyCatalog
dbname = "bacula"; dbuser = "bacula"; dbpassword = "baculapw"
}
Messages {
Name = Standard
mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
mail = claudio@grifetiquetas.com.br = all, !skipped
operator = claudio@grifetiquetas.com.br = mount
console = all, !skipped, !saved
append = "/var/lib/bacula/log" = all, !skipped
}
Messages {
Name = Daemon
mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
mail = claudio@grifetiquetas.com.br = all, !skipped
console = all, !skipped, !saved
append = "/var/lib/bacula/log" = all, !skipped
}
Pool {
Name = Default
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 365 days
}
Pool {
Name = Full-Pool-backup
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 6 months
Maximum Volume Jobs = 1
Label Format = "Full-backup-"
Maximum Volumes = 7
}
Pool {
Name = Inc-Pool-backup
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 10 days
Maximum Volume Jobs = 6
Label Format = "Inc-backup-"
Maximum Volumes = 7
}
Pool {
Name = Diff-Pool-backup
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 30 days
Maximum Volume Jobs = 1
Label Format = "Diff-backup-"
Maximum Volumes = 10
}
Pool {
Name = Full-Pool-samba
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 2 months
Maximum Volume Jobs = 1
Label Format = "Full-samba-"
Maximum Volumes = 3
}
Pool {
Name = Inc-Pool-samba
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 20 days
Maximum Volume Jobs = 6
Label Format = "Inc-samba-"
Maximum Volumes = 7
}
Pool {
Name = Diff-Pool-samba
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 20 days
Maximum Volume Jobs = 1
Label Format = "Diff-samba-"
Maximum Volumes = 10
}
Console {
Name = backup-mon
Password = "kTmKuzME"
CommandACL = status, .status
}
Cliente
# Default Bacula File Daemon Configuration file
#
Director {
Name = backup-dir
Password = "kTmKuzME"
}
FileDaemon {
Name = samba-fd
FDport = 9102
WorkingDirectory = /var/lib/bacula
Pid Directory = /var/run/bacula
Maximum Concurrent Jobs = 20
}
Messages {
Name = Standard
director = samba-dir = all, !skipped, !restored
}
Criei as label Full-Poll-samba e também uma chamada Full-samba- Pergunta: Como excluir label ja criada
Quando eu entro no console e peço para fazer o backup manual com o comando run me retorna
22-Fev 10:21 backup-sd JobId 3: Labeled new Volume "Full-samba-0014" on device "FileStorage" (/home/backup).
22-Fev 10:21 backup-sd JobId 3: Wrote label to prelabeled Volume "Full-samba-0014" on device "FileStorage" (/home/backup)
22-Fev 10:21 backup-dir JobId 3: Max Volume jobs exceeded. Marking Volume "Full-samba-0014" as Used.
22-Fev 11:00 backup-dir JobId 5: No prior Full backup Job record found.
22-Fev 11:00 backup-dir JobId 5: No prior or suitable Full backup found in catalog. Doing FULL backup.
22-Fev 11:00 backup-dir JobId 5: Start Backup JobId 5, Job=samba.2011-02-22_11.00.47.04
22-Fev 11:00 backup-dir JobId 5: Using Device "FileStorage"
22-Fev 11:00 backup-sd JobId 5: Warning: Volume "Full-Pool-samba" not on device "FileStorage" (/home/backup).
22-Fev 11:00 backup-sd JobId 5: Marking Volume "Full-Pool-samba" in Error in Catalog.
22-Fev 11:00 backup-sd JobId 5: Warning: Volume "Full-Pool-samba" not on device "FileStorage" (/home/backup).
22-Fev 11:00 backup-sd JobId 5: Marking Volume "Full-Pool-samba" in Error in Catalog.
22-Fev 11:00 backup-sd JobId 5: Warning: Volume "Full-Pool-samba" not on device "FileStorage" (/home/backup).
22-Fev 11:00 backup-sd JobId 5: Marking Volume "Full-Pool-samba" in Error in Catalog.
22-Fev 11:00 backup-sd JobId 5: Warning: Volume "Full-Pool-samba" not on device "FileStorage" (/home/backup).
22-Fev 11:00 backup-sd JobId 5: Marking Volume "Full-Pool-samba" in Error in Catalog.
22-Fev 11:00 backup-sd JobId 5: Warning: Volume "Full-Pool-samba" not on device "FileStorage" (/home/backup).
22-Fev 11:00 backup-sd JobId 5: Marking Volume "Full-Pool-samba" in Error in Catalog.
22-Fev 11:00 backup-sd JobId 5: Warning: Volume "Full-Pool-samba" not on device "FileStorage" (/home/backup).
22-Fev 11:00 backup-sd JobId 5: Marking Volume "Full-Pool-samba" in Error in Catalog.
22-Fev 11:00 backup-sd JobId 5: Warning: Volume "Full-Pool-samba" not on device "FileStorage" (/home/backup).
22-Fev 11:00 backup-sd JobId 5: Marking Volume "Full-Pool-samba" in Error in Catalog.
22-Fev 11:00 backup-sd JobId 5: Warning: Volume "Full-Pool-samba" not on device "FileStorage" (/home/backup).
22-Fev 11:00 backup-sd JobId 5: Marking Volume "Full-Pool-samba" in Error in Catalog.
22-Fev 11:00 backup-sd JobId 5: Warning: Volume "Full-Pool-samba" not on device "FileStorage" (/home/backup).
22-Fev 11:00 backup-sd JobId 5: Marking Volume "Full-Pool-samba" in Error in Catalog.
22-Fev 11:00 backup-sd JobId 5: Warning: Volume "Full-Pool-samba" not on device "FileStorage" (/home/backup).
22-Fev 11:00 backup-sd JobId 5: Marking Volume "Full-Pool-samba" in Error in Catalog.
22-Fev 11:00 backup-sd JobId 5: Please mount Volume "Full-Pool-samba" or label a new one for:
Job: samba.2011-02-22_11.00.47.04
Storage: "FileStorage" (/home/backup)
Pool: Full-Pool-samba
Media type: File
22-Fev 11:04 backup-sd JobId 5: Warning: Volume "Full-Pool-samba" not on device "FileStorage" (/home/backup).
22-Fev 11:04 backup-sd JobId 5: Marking Volume "Full-Pool-samba" in Error in Catalog.
22-Fev 11:04 backup-sd JobId 5: Please mount Volume "Full-Pool-samba" or label a new one for:
Job: samba.2011-02-22_11.00.47.04
Storage: "FileStorage" (/home/backup)
Pool: Full-Pool-samba
Media type: File
22-Fev 11:15 backup-sd JobId 5: Fatal error: Job 5 canceled.
22-Fev 11:19 samba-fd JobId 5: Fatal error: job.c:1817 Bad response to Append Data command. Wanted 3000 OK data
, got 3903 Error append data
Poderiam me ajudar....