Rafael.
Segue os arquivos de configuração.
Eu consigo fazer o backup com volumes em torno de 2Gb. Mas não consigo fazer quando o volume é de 130Gb.
bacula-dir.conf
Director { # define myself
Name = luna1009-dir
DIRport = 9101 # where we listen for UA connections
QueryFile = "/etc/bacula/scripts/query.sql"
WorkingDirectory = "/var/lib/bacula"
PidDirectory = "/var/run/bacula"
Maximum Concurrent Jobs = 1
Password = "vOchjaYxGgFnKdbE5me5a3Tp5vs763FyoIhXdqUF733A" # Console password
Messages = Daemon
# DirAddress = 127.0.0.1
}
#JobDefs {
# Name = "DefaultJob"
# Type = Backup
# Level = Incremental
# Client = luna1009-fd
# FileSet = "Full Set"
# Schedule = "WeeklyCycle"
# Storage = File
# Messages = Standard
# Pool = File
# Priority = 10
# Write Bootstrap = "/var/lib/bacula/%c.bsr"
#}
#
# Define the main nightly save backup job
# By default, this job will back up to disk in /nonexistant/path/to/file/archive/dir
#Job {
# Name = "BackupClient1"
# JobDefs = "DefaultJob"
#}
#Job {
# Name = "BackupClient2"
# Client = luna10092-fd
# JobDefs = "DefaultJob"
#}
# Backup the catalog database (after the nightly save)
Job {
Name = BackupCatalog
Level = Full
FileSet = Catalog
Schedule = WeeklyCycleAfterBackup
# This creates an ASCII copy of the catalog
# Arguments to
make_catalog_backup.pl are:
#
make_catalog_backup.pl <catalog-name>
Run Before Job = "/etc/bacula/scripts/
make_catalog_backup.pl MyCatalog"
# This deletes the copy of the catalog
Write Bootstrap = "/var/lib/bacula/%n.bsr"
Storage = File
Pool = File
Messages = Standard
Type = Backup
Client = luna1009-dir
}
#
# Standard Restore template, to be changed by Console program
# Only one such job is needed for all Jobs/Clients/Storage ...
#
#Job {
# Name = "RestoreFiles"
# Type = Restore
# Client=luna1009-fd
# FileSet="Full Set"
# Storage = File
# Pool = Default
# Messages = Standard
# Where = /nonexistant/path/to/file/archive/dir/bacula-restores
#}
# List of files to be backed up
FileSet {
Name = "Full Set"
Include {
Options {
signature = MD5
}
#
# 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 partitions such as /usr or /home
# you will probably want to add them too.
#
# By default this is defined to point to the Bacula binary
# directory to give a reasonable FileSet to backup to
# disk storage during initial testing.
#
File = /usr/sbin
}
#
# If you backup the root directory, the following two excluded
# files can be useful
#
Exclude {
File = /var/lib/bacula
File = /nonexistant/path/to/file/archive/dir
File = /proc
File = /tmp
File = /.journal
File = /.fsck
}
}
#
# 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 = "WeeklyCycle"
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 WeeklyCycle
Schedule {
Name = "WeeklyCycleAfterBackup"
Run = Full sun-sat at 23:10
}
# This is the backup of the catalog
FileSet {
Name = "Catalog"
Include {
Options {
signature = MD5
}
File = "/var/lib/bacula/bacula.sql"
}
}
# Client (File Services) to backup
Client {
Name = luna1009-dir
Address = 192.168.0.1
FDPort = 9102
Catalog = MyCatalog
Password = 7xo9vyQXdzbu3kfK8znMfZlcoVPwuy9NY
File Retention = 30 days
Job Retention = 6 months
AutoPrune = yes
}
#
# Second Client (File Services) to backup
# You should change Name, Address, and Password before using
#
#Client {
# Name = luna10092-fd
# Address = localhost2
# FDPort = 9102
# Catalog = MyCatalog
# Password = "7xo9vyQXdzbu3kfK8znMfZlcoVPwuy9NY2" # password for FileDaemon 2
# File Retention = 30 days # 30 days
# Job Retention = 6 months # six months
# AutoPrune = yes # Prune expired Jobs/Files
#}
# Definition of file storage device
Storage {
Name = File
# Do not use "localhost" here
Address = 192.168.0.1
SDPort = 9103
Password = C7CESIF62_lK3RyVP6zz1YUILKi3ESLOd
Device = FileStorage
Media Type = File
Maximum Concurrent Jobs = 15
}
# Generic catalog service
Catalog {
Name = MyCatalog
# Uncomment the following line if you want the dbi driver
# dbdriver = "dbi:sqlite3"; dbaddress = 127.0.0.1; dbport =
dbname = "bacula"; DB Address = ""; dbuser = "bacula"; dbpassword = "senha"
}
# Reasonable message delivery -- send most everything to email address
# and to the console
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 = root@localhost = all, !skipped
operator = root@localhost = mount
console = all, !skipped, !saved
#
# 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.
#
append = "/var/lib/bacula/log" = all, !skipped
catalog = all
}
#
# Message delivery for daemon messages (no job).
Messages {
Name = Daemon
mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
mail = root@localhost = all, !skipped
console = all, !skipped, !saved
append = "/var/lib/bacula/log" = all, !skipped
}
# Default pool definition
Pool {
Name = Default
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 365 days # one year
}
# File Pool definition
Pool {
Name = File
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 365 days # one year
Maximum Volume Bytes = 50G # Limit Volume size to something reasonable
Maximum Volumes = 100 # Limit number of Volumes in Pool
}
# Scratch pool definition
Pool {
Name = Scratch
Pool Type = Backup
}
#
# Restricted console used by tray-monitor to get the status of the director
#
Console {
Name = luna1009-mon
Password = "aqKBI41wjnd_vKavCX0uF_kLBdUmMBXhH"
CommandACL = status, .status
}
FileSet {
Name = Arquivos
Include {
File = "E:/Dados/Acordos/Consolidação PAGAMENTOS FEITO.xlsx"
Options {
Compression = GZIP6
}
}
}
Client {
Name = hparada-fs-fd
Password = C+aqur0zgQPxpLrXULXbtOp/Gopp8l7UMgJhqXUS8/jx
Heartbeat Interval = 30
Address = 192.168.0.2
FDPort = 9102
Catalog = MyCatalog
File Retention = 30 days
Job Retention = 6 months
}
Pool {
Name = Arquivos
Pool Type = Backup
Volume Retention = 365 days
Recycle = yes
AutoPrune = yes
}
Storage {
Name = Arquivos
Password = C7CESIF62_lK3RyVP6zz1YUILKi3ESLOd
Address = 192.168.0.1
SDPort = 9103
Device = FileStorage
Media Type = File
Maximum Concurrent Jobs = 15
}
Job {
Name = RestoreFiles
Type = Restore
Client = luna1009-dir
FileSet = "Full Set"
Storage = File
Pool = Default
Messages = Standard
}
Storage {
Name = CPPRO
Password = C7CESIF62_lK3RyVP6zz1YUILKi3ESLOd
Address = 192.168.0.1
SDPort = 9103
Device = CPPRO
Media Type = File
Maximum Concurrent Jobs = 20
}
FileSet {
Name = CPPRO
Enable VSS = yes
Include {
File = F:/Bkp/CPPRO/Backup
Options {
signature = MD5
}
}
}
Pool {
Name = CPPRO
Pool Type = Backup
Volume Retention = 365 days
Recycle = yes
AutoPrune = yes
Maximum Volume Jobs = 15
}
Job {
Name = CPPRO_Full
Type = Backup
Level = Full
Client = hparada-fs-fd
FileSet = CPPRO
Schedule = CPPRO_Full
Storage = CPPRO
Pool = CPPRO
Messages = Standard
Enabled = No
}
Storage {
Name = CRMPHI
Password = C7CESIF62_lK3RyVP6zz1YUILKi3ESLOd
Address = 192.168.0.1
SDPort = 9103
Device = CRMPHI
Media Type = File
Maximum Concurrent Jobs = 20
}
Pool {
Name = CRMPHI
Pool Type = Backup
Volume Retention = 365 days
Recycle = yes
AutoPrune = yes
Maximum Volume Jobs = 20
}
FileSet {
Name = CRMPHI
Include {
File = F:/Bkp/NWCRM/
Options {
Compression = GZIP6
}
}
}
Job {
Name = CRMPHI_Full
Type = Backup
Level = Full
Client = hparada-fs-fd
FileSet = CRMPHI
Schedule = CRMPHI_Full
Storage = CRMPHI
Pool = CRMPHI
Messages = Standard
Enabled = No
}
Schedule {
Name = CRMPHI_Full
Run = Level=Full Pool=CRMPHI sun at 00:00
}
Schedule {
Name = CRMPHI_Incremental
Run = Level=Incremental Pool=CRMPHI mon-sat at 00:00
}
Schedule {
Name = CPPRO_Full
Run = Level=Full Pool=CPPRO sun at 00:00
}
Schedule {
Name = CPPRO_Incremental
Run = Level=Incremental Pool=CPPRO mon-sat at 00:00
}
Job {
Name = CRMPHI_Incremental
Type = Backup
Level = Incremental
Client = hparada-fs-fd
FileSet = CRMPHI
Schedule = CRMPHI_Incremental
Storage = CRMPHI
Pool = CRMPHI
Messages = Standard
Enabled = No
}
Job {
Name = CPPRO_Incremental
Type = Backup
Level = Incremental
Client = hparada-fs-fd
FileSet = CPPRO
Schedule = CPPRO_Incremental
Storage = CPPRO
Pool = CPPRO
Messages = Standard
Enabled = No
}
FileSet {
Name = CPPRO_GED
Include {
File = "F:/Bkp/CPPRO/GED Server Files"
Options {
signature = MD5
OneFS = no
}
}
}
Pool {
Name = CPPROGED
Pool Type = Backup
Maximum Volume Jobs = 10
Volume Retention = 365 days
Recycle = yes
AutoPrune = yes
}
Storage {
Name = CPPROGED
Password = C7CESIF62_lK3RyVP6zz1YUILKi3ESLOd
Address = 192.168.0.1
SDPort = 9103
Device = CPPROGED
Media Type = File
Maximum Concurrent Jobs = 15
}
Job {
Name = CPPROGED_Full
Type = Backup
Level = Full
Client = hparada-fs-fd
FileSet = CPPRO_GED
Schedule = CPPROGED_Full
Storage = CPPROGED
Pool = CPPROGED
Messages = Standard
}
Schedule {
Name = CPPROGED_Full
Run = Level=Full Pool=CPPROGED sun at 00:00
}
bacula-sd.conf
#
# Default Bacula Storage Daemon Configuration file
#
# For Bacula release 5.2.5 (26 January 2012) -- ubuntu 12.04
#
# You may need to change the name of your tape drive
# on the "Archive Device" directive in the Device
# resource. If you change the Name and/or the
# "Media Type" in the Device resource, please ensure
# that dird.conf has corresponding changes.
#
Storage { # definition of myself
Name = luna1009-sd
SDport = 9103
WorkingDirectory = /var/lib/bacula
Pid Directory = "/var/run/bacula"
Maximum Concurrent Jobs = 20
Heartbeat Interval = 120
# SDAddress = 127.0.0.1
}
#
# List Directors who are permitted to contact Storage daemon
#
Director {
Name = luna1009-dir
Password = "C7CESIF62_lK3RyVP6zz1YUILKi3ESLOd"
}
#
# Restricted Director, used by tray-monitor to get the
# status of the storage daemon
#
Director {
Name = luna1009-mon
Password = "eTXCUrkrLSU5eKfx_Dawqd5pIqNBeChdx"
Monitor = yes
}
#
# Devices supported by this Storage daemon
# To connect, the Director's bacula-dir.conf must have the
# same Name and MediaType.
#
Device {
Name = FileStorage
Media Type = File
Archive Device = /mnt/backup
LabelMedia = yes
Random Access = yes
AutomaticMount = yes
RemovableMedia = no
AlwaysOpen = no
}
#
# Send all messages to the Director,
# mount messages also are sent to the email address
#
Messages {
Name = Standard
director = luna1009-dir = all
}
Device {
Name = CPPRO
Archive Device = /mnt/backup/CPPRO
Media Type = File
LabelMedia = yes
Random Access = yes
AutomaticMount = yes
RemovableMedia = no
AlwaysOpen = no
}
Device {
Name = CRMPHI
Archive Device = /mnt/backup/CRMPHI
Media Type = File
LabelMedia = yes
Random Access = yes
AutomaticMount = yes
RemovableMedia = no
AlwaysOpen = no
}
Device {
Name = CPPROGED
Archive Device = /mnt/backup/CPPROGED
Media Type = File
LabelMedia = yes
Random Access = yes
AutomaticMount = yes
RemovableMedia = no
AlwaysOpen = no
}
Obrigado pela ajuda.
Rogério