Помогите с настройкой, чтот я не допонимаю.
Все серверы тестирую на локальной машине.
Вроде по конфигу- проблем не должно быть, задача начинает выполняться, не выбивая ошибку, консоль пишет только:
2012-12-26 00:37:02 lethalVPS-dir JobId 42: Start Backup JobId 42, Job=WeekC.2012-12-26_00.37.00_02
2012-12-26 00:37:02 lethalVPS-dir JobId 42: Using Device "LocalFileStorage"
И все, в логах только запуск задания, ошибок нет, состение - "is running"
И еще странность - webacula в списке файлов для бэкапов говорит что список пуст.
Конфиги:
bacula-dir --version
Copyright (C) 2000-2010 Free Software Foundation Europe e.V.
Version: 5.0.2 (28 April 2010)
#не трогаем
Console {
Name = lethalVPS-mon
# Address = lethalVPS
Password = "xxx"
CommandACL = status, .status
}
#Параметры подключения к БД
# 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"; dbuser = "root"; dbpassword = "xxx"
}
#Основные параметры директора
Director { # define myself
Name = lethalVPS-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 = "xxx" # Console password
Messages = Daemon
DirAddress = xxx.xxx.xxx.xxx
}
#----------------------------------------------------------------------------------------------------------------------------------------------$
# Definition of file storage device
Storage {
Name = LocalVPS-sd
# Do not use "localhost" here
Address = xxx.xxx.xxx.xxx # N.B. Use a fully qualified name here
SDPort = 9103
Password = "xxx"
Device = LocalFileStorage
Media Type = LocalFile
}
#описываем пул
Pool {
Label Format = "MonthFull-${Month}_${Year}"
Name = File
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 65 days # one year
Maximum Volume Bytes = 5G # Limit Volume size to something reasonable
Maximum Volumes = 100 # Limit number of Volumes in Pool
}
#Каталог для бэкапов
# This is the backup of the catalog
FileSet {
Name = "LocalCatalog"
Include {
Options {
signature = MD5
compression= GZIP
# recurse = yes
}
File = /var/www
}
}
#Описание file-storage
# Client (File Services) to backup
Client {
Name = LocalVPS-fd
Address = xxx.xxx.xxx.xxx
FDPort = 9102
Catalog = MyCatalog
Password = "xxx" # password for FileDaemon
File Retention = 30 days # 30 days
Job Retention = 6 months # six months
AutoPrune = yes # Prune expired Jobs/Files
}
#Расписание
Schedule {
Name = "WeeklyCycle"
Run = Full mon-sun at 00:37
}
#Сама Джоба!
Job {
Name = "WeekC"
Type = Backup
Level = Full
Client = LocalVPS-fd
FileSet = "LocalCatalog"
Schedule = "WeeklyCycle"
Messages = Standard
Storage = LocalVPS-sd
Pool = File
Write Bootstrap = "/var/spool/bacula/%n.bsr"
Priority = 1
}
Messages {
Name = Daemon
mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
mail = xxx@gmail.com = all, !skipped
console = all, !skipped, !saved
append = "/var/lib/bacula/log" = all, !skipped
}
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 = xxx@gmail.com = all, !skipped
operator = root@localhost = mount
console = all, !skipped, !saved
append = "/var/lib/bacula/log" = all, !skipped
catalog = all
}
bacula-sd.conf
Storage { # definition of myself
Name = LocalVPS-sd
SDPort = 9103 # Director's port
WorkingDirectory = "/var/lib/bacula"
Pid Directory = "/var/run/bacula"
Maximum Concurrent Jobs = 20
SDAddress = xxx.xxx.xxx.xxx
}
Director {
Name = lethalVPS-dir
Password = "xxx"
}
#
# Restricted Director, used by tray-monitor to get the
# status of the storage daemon
#
Director {
Name = lethalVPS-mon
Password = "xxx"
Monitor = yes
}
Device {
Name = LocalFileStorage
Media Type = LocalFile
Archive Device = /var/www-backups
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
}
Messages {
Name = Standard
director = lethalVPS-dir = all
}
bacula-fd.conf
Director {
Name = lethalVPS-dir
Password = "xxx"
}
#
# Restricted Director, used by tray-monitor to get the
# status of the file daemon
#
Director {
Name = lethalVPS-mon
Password = "xxx"
Monitor = yes
}
FileDaemon { # this is me
Name = LocalVPS-fd
FDport = 9102 # where we listen for the director
WorkingDirectory = /var/lib/bacula
Pid Directory = /var/run/bacula
Maximum Concurrent Jobs = 20
FDAddress = xxx.xxx.xxx.xxx
}
# Send all messages except skipped files back to Director
Messages {
Name = Standard
director = lethalVPS-dir = all, !skipped, !restored
}
Помогите разобраться, пожалуйста.
Пользователь решил продолжить мысль 26 Декабря 2012, 12:45:31:
Решил проблему меткой label. Не до конца понял зачем она, теперь все нормально.