Приветствую всех!
Имеется сервер Bareos (форк Bacula) на CentOS 6.6 x64
# rpm -qa | grep bareos
bareos-database-tools-15.2.0.git.1438093845.4ab95a5-1136.1.el6.x86_64
bareos-director-15.2.0.git.1438093845.4ab95a5-1136.1.el6.x86_64
bareos-common-15.2.0.git.1438093845.4ab95a5-1136.1.el6.x86_64
bareos-database-common-15.2.0.git.1438093845.4ab95a5-1136.1.el6.x86_64
bareos-bconsole-15.2.0.git.1438093845.4ab95a5-1136.1.el6.x86_64
bareos-client-15.2.0.git.1438093845.4ab95a5-1136.1.el6.x86_64
bareos-storage-15.2.0.git.1438093845.4ab95a5-1136.1.el6.x86_64
bareos-database-postgresql-15.2.0.git.1438093845.4ab95a5-1136.1.el6.x86_64
bareos-filedaemon-15.2.0.git.1438093845.4ab95a5-1136.1.el6.x86_64
Что я делал: bacula-dc5-01-dir --- director daemon на Server 1 bacula-dc5-01-sd --- storage daemon на other Server 2
1) Конфиг клиента:
Job {
Name = "bars-lb1-backup-root_bacula-dc5-01-sd"
Type = Backup
Level = Incremental
Client = bars-lb1-fd
FileSet = "fileset-bars-lb1-root"
Schedule = "WeeklyCycle-bars-lb1"
Storage = File-bacula-dc5-01
Messages = Standard
Pool = Incremental
Priority = 10
Write Bootstrap = "/var/lib/bareos/%c.bsr"
Full Backup Pool = F-bars-lb1
Incremental Backup Pool = I-bars-lb1
}
Job {
Name = "bars-lb1-restore_bacula-dc5-01-sd"
Type = Restore
Client = bars-lb1-fd
FileSet = "fileset-bars-lb1-root"
Storage = File-bacula-dc5-01
Pool = Incremental
Messages = Standard
Where = /
}
Client {
Name = bars-lb1-fd
Address = bars-lb1
Password = "sdhfkljsadfasfs"
File Retention = 14 days
Job Retention = 1 months
AutoPrune = yes
}
Pool {
Name = F-bars-lb1
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 7 days
Maximum Volume Bytes = 5G
Maximum Volumes = 20
Label Format = "bars-lb1-f-"
}
Pool {
Name = I-bars-lb1
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 7 days
Maximum Volume Bytes = 5G
Maximum Volumes = 20
Label Format = "c"
}
Schedule {
Name = "WeeklyCycle-bars-lb1"
Run = Full sat at 22:00
Run = Incremental mon-fri at 22:00
}
2) Я вручную удалил файлы пулов bars-lb1-f-*** и bars-lb1-f-*** из storage (File-bacula-dc5-01), выполнив команду «rm -f»
3) В консоли Bareos выполнил:
*delete pool=F-bars-lb1
*delete pool=I-bars-lb1
4) Затем я снвоа попытался запустить задание бэкапа, надеясь, что он сделает мне полный бэкап : т.к. информацию о предыдущих я удалил из каталога БД Bareos
*run job=bars-lb1-backup-root_bacula-dc5-01-sd
07-Aug 10:48 bacula-dc5-01-dir JobId 97: Start Backup JobId 97, Job=bars-lb1-backup-root_bacula-dc5-01-sd.2015-08-07_10.48.20_13
07-Aug 10:48 bacula-dc5-01-dir JobId 97: Using Device "FileStorage" to write.
07-Aug 10:48 bacula-dc5-01-sd JobId 97: Volume "Incremental-0041" previously written, moving to end of data.
07-Aug 10:48 bacula-dc5-01-sd JobId 97: Ready to append to end of Volume "Incremental-0041" size=8033000
07-Aug 10:48 bars-open-l1-fd JobId 97: /dev is a different filesystem. Will not descend from / into it.
07-Aug 10:48 bars-open-l1-fd JobId 97: /sys is a different filesystem. Will not descend from / into it.
07-Aug 10:48 bars-open-l1-fd JobId 97: /proc is a different filesystem. Will not descend from / into it.
07-Aug 10:48 bacula-dc5-01-sd JobId 97: Elapsed time=00:00:01, Transfer rate=2.973 M Bytes/second
07-Aug 10:48 bacula-dc5-01-dir JobId 97: Bareos bacula-dc5-01-dir 15.2.0 (25jun15):
Build OS: x86_64-redhat-linux-gnu redhat CentOS release 6.6 (Final)
JobId: 97
Job: bars-lb1-backup-root_bacula-dc5-01-sd.2015-08-07_10.48.20_13
Backup Level: Incremental, since=2015-08-07 10:30:36
Client: "bars-lb1-fd" 15.2.0 (25jun15) x86_64-redhat-linux-gnu,redhat,CentOS release 6.6 (Final)
FileSet: "fileset-bars-lb1-root" 2015-07-30 16:14:44
Pool: "Incremental" (From Job resource)
Catalog: "MyCatalog" (From Client resource)
Storage: "File-bacula-dc5-01" (From Job resource)
Scheduled time: 07-Aug-2015 10:48:10
Start time: 07-Aug-2015 10:48:22
End time: 07-Aug-2015 10:48:24
Elapsed time: 2 secs
Priority: 10
FD Files Written: 61
SD Files Written: 61
FD Bytes Written: 2,967,671 (2.967 MB)
SD Bytes Written: 2,973,731 (2.973 MB)
Rate: 1483.8 KB/s
Software Compression: 94.9 % (gzip)
VSS: no
Encryption: no
Accurate: no
Volume name(s): Incremental-0041
Volume Session Id: 3
Volume Session Time: 1438932335
Last Volume Bytes: 11,020,315 (11.02 MB)
Non-fatal FD errors: 0
SD Errors: 0
FD termination status: OK
SD termination status: OK
Termination: Backup OK
07-Aug 10:48 bacula-dc5-01-dir JobId 97: Begin pruning Jobs older than 1 month .
07-Aug 10:48 bacula-dc5-01-dir JobId 97: No Jobs found to prune.
07-Aug 10:48 bacula-dc5-01-dir JobId 97: Begin pruning Files.
07-Aug 10:48 bacula-dc5-01-dir JobId 97: No Files found to prune.
07-Aug 10:48 bacula-dc5-01-dir JobId 97: End auto prune.
Но он снова сделал мне инкрементный бэкап. Почему не полный? Как правильно удалить pool и volume из каталога БД Bareos?
Я также пытался удалить ещё volume:
*delete volume=I-mf-grbs-lb1
*delete volume=F-mf-grbs-lb1