Hello guys
Today I noticed a strange thing in bacula.
I my catalog job I save the dump of MySQL and the bootstrap files
Bootstrap files I've changed to save in a specific folder with more information:
Write Bootstrap = "/etc/bacula/bootstrap/%j_%l_%i_%c.bsr"
FileSet {
Name = "FileSet_Catalogo"
Include {
Options {
signature = md5
compression = gzip
}
File = "/etc/bacula/working/bacula.sql"
File = "/etc/bacula/bootstrap"
}
}
After Job finished I have a RunAfterJob to delete all files from /etc/bacula/bootstrap, that means that I will have only files from today or yesterday
I noticed that because I run the command list files jobid=XXX and bacula show the files that aren't from this particular job.
*list files jobid=5539
+----------+
| Filename |
+----------+
| /etc/bacula/working/bacula.sql |
| /etc/bacula/bootstrap/ |
| /etc/bacula/bootstrap/Backup_Maquina_AnaPaula.2016-08-26_17.10.00_22_Full_5483_anapaula-fd.bsr |
| /etc/bacula/bootstrap/Backup_Questor_FBK.2016-08-26_12.10.00_27_Full_5482_srv_r2d2-fd.bsr |
| /etc/bacula/bootstrap/Backup_Maquina_Luciane.2016-08-26_17.10.00_24_Full_5485_luciane-fd.bsr |
| /etc/bacula/bootstrap/Backup_Questor_FDB.2016-08-26_19.30.01_30_Full_5491_srv_r2d2-fd.bsr |
| /etc/bacula/bootstrap/Backup_Maquina_Fabiane.2016-08-26_17.10.00_23_Full_5484_fabiane-fd.bsr |
| /etc/bacula/bootstrap/Backup_Servidor_Intranet.2016-08-26_19.30.01_28_Full_5489_srv_intranet-fd.bsr |
| /etc/bacula/bootstrap/Backup_Questor_FBK.2016-08-26_19.30.00_25_Full_5486_srv_r2d2-fd.bsr |
| /etc/bacula/bootstrap/Backup_Servidor_R2D2.2016-08-26_19.30.01_26_Full_5487_srv_r2d2-fd.bsr |
| /etc/bacula/bootstrap/Backup_Servidor_Hyper-V.2016-08-26_19.30.01_29_Full_5490_srv_hyperv-fd.bsr |
| /etc/bacula/bootstrap/Backup_VM_Servidor_R2D2.2016-08-25_23.55.00_44_Full_5481_srv_hyperv-fd.bsr |
| /etc/bacula/bootstrap/Backup_Servidor_Bacula.2016-08-26_19.30.01_31_Full_5492_srv_bacula-fd.bsr |
| /etc/bacula/bootstrap/Backup_Servidor_Firewall.2016-08-26_19.30.01_27_Full_5488_srv_firewall-fd.bsr |
| /etc/bacula/bootstrap/Backup_VM_Servidor_Intranet.2016-08-25_23.55.00_42_Full_5479_srv_hyperv-fd.bsr |
| /etc/bacula/bootstrap/Backup_VM_Servidor_AD.2016-08-25_23.55.00_43_Full_5480_srv_hyperv-fd.bsr |
| /etc/bacula/bootstrap/Backup_Questor_FBK.2016-08-31_12.10.00_55_Full_5528_srv_r2d2-fd.bsr |
| /etc/bacula/bootstrap/Backup_VM_Servidor_AD.2016-08-30_23.55.00_49_Full_5526_srv_hyperv-fd.bsr |
| /etc/bacula/bootstrap/Backup_Questor_FBK.2016-08-31_21.30.00_49_Full_5533_srv_r2d2-fd.bsr |
| /etc/bacula/bootstrap/Backup_Servidor_Intranet.2016-08-31_21.30.00_52_Differential_5536_srv_intranet-fd.bsr |
| /etc/bacula/bootstrap/Backup_Maquina_AnaPaula.2016-08-31_17.30.00_44_Differential_5530_anapaula-fd.bsr |
| /etc/bacula/bootstrap/Backup_Maquina_Luciane.2016-08-31_17.30.00_46_Differential_5532_luciane-fd.bsr |
| /etc/bacula/bootstrap/Backup_Servidor_Hyper-V.2016-08-31_21.30.00_53_Differential_5537_srv_hyperv-fd.bsr |
| /etc/bacula/bootstrap/Backup_Maquina_Fabiane.2016-08-31_17.30.00_45_Differential_5531_fabiane-fd.bsr |
| /etc/bacula/bootstrap/Backup_VM_Servidor_R2D2.2016-08-30_23.55.00_50_Full_5527_srv_hyperv-fd.bsr |
| /etc/bacula/bootstrap/Backup_Servidor_Bacula.2016-08-31_21.30.01_54_Differential_5538_srv_bacula-fd.bsr |
| /etc/bacula/bootstrap/Backup_Servidor_Firewall.2016-08-31_21.30.00_51_Differential_5535_srv_firewall-fd.bsr |
| /etc/bacula/bootstrap/Backup_Questor_FDB.2016-08-30_23.25.47_04_Full_5524_srv_r2d2-fd.bsr |
| /etc/bacula/bootstrap/Backup_Servidor_R2D2.2016-08-31_21.30.00_50_Differential_5534_srv_r2d2-fd.bsr |
| /etc/bacula/bootstrap/Backup_VM_Servidor_Intranet.2016-08-30_23.55.00_48_Full_5525_srv_hyperv-fd.bsr |
+----------+
+-------+-----------------+---------------------+------+-------+----------+-------------+-----------+
| JobId | Name | StartTime | Type | Level | JobFiles | JobBytes | JobStatus |
+-------+-----------------+---------------------+------+-------+----------+-------------+-----------+
| 5,539 | Backup_Catalogo | 2016-08-31 22:17:19 | B | D | 30 | 154,884,448 | T |
+-------+-----------------+---------------------+------+-------+----------+-------------+-----------+
When I will restore bacula shows the correct files:
root@bacula:/tmp# bconsole
1000 OK: 102 bacula-dir Version: 7.4.3 (18 June 2016)
Enter a period to cancel a command.
*restore jobid=5539
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
You have selected the following JobId: 5539
Building directory tree for JobId(s) 5539 ...
15 files inserted into the tree.
You are now entering file selection mode where you add (mark) and
remove (unmark) files to be restored. No files are initially added, unless
you used the "all" keyword on the command line.
Enter "done" to leave this mode.
cwd is: /
$ cd /etc/bacula/bootstrap
cwd is: /etc/bacula/bootstrap/
dir
-rw-r----- 1 root root 247 2016-08-31 17:31:48 /etc/bacula/bootstrap/Backup_Maquina_AnaPaula.2016-08-31_17.30.00_44_Differential_5530_anapaula-fd.bsr
-rw-r----- 1 root root 248 2016-08-31 17:37:07 /etc/bacula/bootstrap/Backup_Maquina_Fabiane.2016-08-31_17.30.00_45_Differential_5531_fabiane-fd.bsr
-rw-r----- 1 root root 248 2016-08-31 17:40:02 /etc/bacula/bootstrap/Backup_Maquina_Luciane.2016-08-31_17.30.00_46_Differential_5532_luciane-fd.bsr
-rw-r----- 1 root root 206 2016-08-31 12:18:28 /etc/bacula/bootstrap/Backup_Questor_FBK.2016-08-31_12.10.00_55_Full_5528_srv_r2d2-fd.bsr
-rw-r----- 1 root root 338 2016-08-31 22:03:40 /etc/bacula/bootstrap/Backup_Questor_FBK.2016-08-31_21.30.00_49_Full_5533_srv_r2d2-fd.bsr
-rw-r----- 1 root root 338 2016-08-30 23:31:12 /etc/bacula/bootstrap/Backup_Questor_FDB.2016-08-30_23.25.47_04_Full_5524_srv_r2d2-fd.bsr
-rw-r----- 1 root root 372 2016-08-31 22:16:11 /etc/bacula/bootstrap/Backup_Servidor_Bacula.2016-08-31_21.30.01_54_Differential_5538_srv_bacula-fd.bsr
-rw-r----- 1 root root 249 2016-08-31 21:34:32 /etc/bacula/bootstrap/Backup_Servidor_Firewall.2016-08-31_21.30.00_51_Differential_5535_srv_firewall-fd.bsr
-rw-r----- 1 root root 246 2016-08-31 21:30:33 /etc/bacula/bootstrap/Backup_Servidor_Hyper-V.2016-08-31_21.30.00_53_Differential_5537_srv_hyperv-fd.bsr
-rw-r----- 1 root root 248 2016-08-31 21:35:42 /etc/bacula/bootstrap/Backup_Servidor_Intranet.2016-08-31_21.30.00_52_Differential_5536_srv_intranet-fd.bsr
-rw-r----- 1 root root 246 2016-08-31 22:00:30 /etc/bacula/bootstrap/Backup_Servidor_R2D2.2016-08-31_21.30.00_50_Differential_5534_srv_r2d2-fd.bsr
-rw-r----- 1 root root 1093 2016-08-31 00:18:10 /etc/bacula/bootstrap/Backup_VM_Servidor_AD.2016-08-30_23.55.00_49_Full_5526_srv_hyperv-fd.bsr
-rw-r----- 1 root root 339 2016-08-31 00:01:20 /etc/bacula/bootstrap/Backup_VM_Servidor_Intranet.2016-08-30_23.55.00_48_Full_5525_srv_hyperv-fd.bsr
-rw-r----- 1 root root 1989 2016-08-31 00:55:27 /etc/bacula/bootstrap/Backup_VM_Servidor_R2D2.2016-08-30_23.55.00_50_Full_5527_srv_hyperv-fd.bsr
$
What could be this ?
Best regards
Wanderlei Hüttel