Hi, folks!
Bacula 5.0.0 из CentOS 6.6
Проблема в следующем, пытаюсь понять как использовать Bacula для создания полного бекапа каталога. Возникает проблема с ротацией: при каждом запуске задания по расписанию Bacula не создает новый том а перезаписывает существующий. На время тестирования полный бекап выполняется каждые 2 минуты.
pool {
name = pool_test_full
pool type = backup
maximum volumes = 5
maximum volume jobs = 1
recycle = yes
recycle oldest volume = yes
auto prune = yes
volume retention = 10 min
label format = "test-full-"
}
job {
name = b_test_full
enabled = yes
type = backup
level = full
pool = pool_test_full
client = carrier
file set = set_test
storage = stor_test
schedule = sch_test_full
messages = common_messages
}
schedule {
name = sch_test_full
run = hourly at 0:00
run = hourly at 0:02
run = hourly at 0:04
run = hourly at 0:06
run = hourly at 0:08
run = hourly at 0:10
run = hourly at 0:12
run = hourly at 0:14
run = hourly at 0:16
run = hourly at 0:18
run = hourly at 0:20
run = hourly at 0:22
run = hourly at 0:24
run = hourly at 0:26
run = hourly at 0:28
run = hourly at 0:30
run = hourly at 0:32
run = hourly at 0:34
run = hourly at 0:36
run = hourly at 0:38
run = hourly at 0:40
run = hourly at 0:42
run = hourly at 0:44
run = hourly at 0:46
run = hourly at 0:48
run = hourly at 0:50
run = hourly at 0:52
run = hourly at 0:52
run = hourly at 0:54
run = hourly at 0:56
run = hourly at 0:58
}
fileset {
name = set_test
include {
options {
signature = SHA1
onefs = yes
}
file = /vz/root/101/home/alex/cisco
}
}
storage {
name = stor_test
address = 10.100.100.1
sd port = 9103
password = "RRgA4mvR"
device = dev_test
media type = files
}
В status dir выводятся сообщения о том что задания успешно выполняются но на storage автоматом Bacula создала 1 файл test-full-0001 и перезаписывает его каждый раз вместо создания test-full-0002, -0003 итд.
Описание device из bacula-sd.conf:
device {
name = dev_test
media type = files
archive device = /vz/bacula/test
label media = yes
random access = yes
removable media = no
automatic mount = yes
}
Вывод status dir:
*stat dir
hope_bacula_director Version: 5.0.0 (26 January 2010) x86_64-redhat-linux-gnu redhat
Daemon started 23-Jan-15 16:13, 11 Jobs run since started.
Heap: heap=270,336 smbytes=58,076 max_bytes=114,480 bufs=241 max_bufs=286
Scheduled Jobs:
Level Type Pri Scheduled Name Volume
===================================================================================
Full Backup 10 23-Jan-15 16:36 b_test_full test-full-0001
Full Backup 10 23-Jan-15 16:38 b_test_full test-full-0001
Full Backup 10 23-Jan-15 16:40 b_test_full test-full-0001
Full Backup 10 23-Jan-15 16:42 b_test_full test-full-0001
Full Backup 10 23-Jan-15 16:44 b_test_full test-full-0001
Full Backup 10 23-Jan-15 16:46 b_test_full test-full-0001
Full Backup 10 23-Jan-15 16:48 b_test_full test-full-0001
Full Backup 10 23-Jan-15 16:50 b_test_full test-full-0001
Full Backup 10 23-Jan-15 16:52 b_test_full test-full-0001
Full Backup 10 23-Jan-15 16:54 b_test_full test-full-0001
Full Backup 10 23-Jan-15 16:56 b_test_full test-full-0001
Full Backup 10 23-Jan-15 16:58 b_test_full test-full-0001
Full Backup 10 23-Jan-15 17:00 b_test_full test-full-0001
Full Backup 10 23-Jan-15 17:02 b_test_full test-full-0001
Full Backup 10 23-Jan-15 17:04 b_test_full test-full-0001
Full Backup 10 23-Jan-15 17:06 b_test_full test-full-0001
Full Backup 10 23-Jan-15 17:08 b_test_full test-full-0001
Full Backup 10 23-Jan-15 17:10 b_test_full test-full-0001
Full Backup 10 23-Jan-15 17:12 b_test_full test-full-0001
Full Backup 10 23-Jan-15 17:14 b_test_full test-full-0001
Full Backup 10 23-Jan-15 17:16 b_test_full test-full-0001
Full Backup 10 23-Jan-15 17:18 b_test_full test-full-0001
Full Backup 10 23-Jan-15 17:20 b_test_full test-full-0001
Full Backup 10 23-Jan-15 17:22 b_test_full test-full-0001
Full Backup 10 23-Jan-15 17:24 b_test_full test-full-0001
Full Backup 10 23-Jan-15 17:26 b_test_full test-full-0001
Full Backup 10 23-Jan-15 17:28 b_test_full test-full-0001
Full Backup 10 23-Jan-15 17:30 b_test_full test-full-0001
Full Backup 10 23-Jan-15 17:32 b_test_full test-full-0001
Full Backup 10 23-Jan-15 17:34 b_test_full test-full-0001
Full Backup 10 23-Jan-15 17:34 b_test_full test-full-0001
====
Running Jobs:
Console connected at 23-Jan-15 16:13
No Jobs running.
====
Terminated Jobs:
JobId Level Files Bytes Status Finished Name
====================================================================
6 Full 52 232.5 M OK 23-Jan-15 16:16 b_test_full
7 Full 52 232.5 M OK 23-Jan-15 16:18 b_test_full
8 Full 52 232.5 M OK 23-Jan-15 16:20 b_test_full
9 Full 52 232.5 M OK 23-Jan-15 16:22 b_test_full
10 Full 52 232.5 M OK 23-Jan-15 16:24 b_test_full
11 Full 52 232.5 M OK 23-Jan-15 16:26 b_test_full
12 Full 52 232.5 M OK 23-Jan-15 16:28 b_test_full
13 Full 52 232.5 M OK 23-Jan-15 16:30 b_test_full
14 Full 52 232.5 M OK 23-Jan-15 16:32 b_test_full
15 Full 52 232.5 M OK 23-Jan-15 16:34 b_test_full
====
Судя по выводу все задания запланированы на использование тома 0001. Почему так я не могу понять.
Спасибо.