Всем привет!
Обращаюсь к знатокам бакулы. Ситуация такова, вот вывод status dir:
*status dir
Scheduled Jobs:
Level Type Pri Scheduled Name Volume
===================================================================================
Full Backup 10 02-Feb-16 00:00 host-job host_2-0001
С этим всё хорошо, только смущает такой момент: у меня в конфиге указано, что должно быть две full-копии, на сторедже лежит файл host_2-0001, который используется для получения бэкапов.
По идее, этот волум должен перезаписаться по истечению 40 дней, а не есйчас, т.е., мне нужно, чтобы создался ещё один файл с другим именем.
Вывод таблицы list media:
Pool: host-pool-2
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| mediaid | volumename | volstatus | enabled | volbytes | volfiles | volretention | recycle | slot | inchanger | mediatype | lastwritten |
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| 1 | host_2-0001 | Used | 1 | 415,763,124,923 | 96 | 3,456,000 | 1 | 0 | 0 | File | 2016-01-23 01:55:36 |
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
Конфиг bacula-dir.conf:
#---host---
Catalog {
Name = host
dbname = "host"; dbuser = "bacula"; dbpassword = "MyPasswd"
}
Job {
Name = "host-restore"
Type = Restore
Client=host.server.com
FileSet="host"
Storage = st-host-1
Pool = host-pool-1
Messages = Daemon
Where = /.hd1/bacula/restores
}
Job {
Name = "host-job"
Type = Backup
Level = Incremental
Client = host.server.com
FileSet = "host"
Schedule = "host"
Messages = Daemon
Pool = host-pool-1
Priority = 10
Allow Duplicate Jobs = no
Cancel Queued Duplicates = yes
Cancel Running Duplicates = no
}
FileSet {
Name = "host"
Include {
Options {
signature = MD5
OneFS = no
FSType = zfs
Exclude = yes
wildFile = "*/cache/*"
wildFile = "*/tmp/*"
wildFile = "*/temp/*"
wildFile = "*/caches/*"
wildFile = "*/_cache/*"
wildFile = "*/logs/*"
wildFile = "*/_logs/*"
wildFile = "*/logs_/*"
wildFile = "*/imagecache/*"
wildDir = "imagecache"
wildDir = "cache"
wildDir = "tmp"
wildDir = "temp"
wildDir = "caches"
wildDir = "_cache"
wildDir = "logs"
}
File = /sata1/home/users
File = /sata2/home/users
}
}
Pool {
Catalog = host
Name = host-pool-1
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 40 days
Recycle Oldest Volume = yes
Purge Oldest Volume = yes
Action On Purge = Truncate
Maximum Volume Jobs=1
Maximum Volumes = 40
Label Format = "host_1-"
Storage = st-host-1
}
Pool {
Catalog = host
Name = host-pool-2
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 40 days
Recycle Oldest Volume = yes
Purge Oldest Volume = yes
Action On Purge = Truncate
Maximum Volume Jobs=1
Maximum Volumes = 2
Label Format = "host_2-"
Storage = st-host-2
}
Client {
Name = host.server.com
Address = 192.168.1.36
FDPort = 9102
Catalog = host
Password = "MyPasswd"
AutoPrune = yes
Maximum Concurrent Jobs = 3
}
Storage {
Name = st-host-1
Address = 192.168.1.201
SDPort = 9103
Password = "MyPasswd"
Device = st-host-1
Media Type = File
Maximum Concurrent Jobs = 3
}
Storage {
Name = st-host-2
Address = 192.168.1.201
SDPort = 9103
Password = "MyPasswd"
Device = st-host-2
Media Type = File
Maximum Concurrent Jobs = 3
}
Schedule {
Name = "host"
Run = Level=Full Pool=host-pool-2 1st tue at 00:00
Run = Level=Full Pool=host-pool-2 3rd tue at 00:00
Run = Level=Incremental Pool=host-pool-1 wed-mon at 00:00
}
Файл на сторедже:
# ls -la | grep host_2
-rw-r----- 1 bacula bacula 415763124923 Jan 23 01:55 host_2-0001
P.S. ОС FreeBSD, в качестве СУБД используется Postgres. Простите за листинги, почему-то не работает спойлер.