... | ... | @@ -610,6 +610,35 @@ you can talk directly with the PostgreSQL database: |
|
|
D | R | 2022-02-27 18:37:53 | | 4 days 03:04:58.45685 | 0 | 0
|
|
|
(39 rows)
|
|
|
|
|
|
## Listing files from backups
|
|
|
|
|
|
To see which files are in a given host, you can use:
|
|
|
|
|
|
echo list files jobid=210810 | bconsole > list
|
|
|
|
|
|
Note that sometimes, for some obscure reason, the file list is not
|
|
|
actually generated and the job details are listed instead:
|
|
|
|
|
|
*list files jobid=206287
|
|
|
Automatically selected Catalog: MyCatalog
|
|
|
Using Catalog "MyCatalog"
|
|
|
+---------+--------------------------------+---------------------+------+-------+----------+-----------------+-----------+
|
|
|
| jobid | name | starttime | type | level | jobfiles | jobbytes | jobstatus |
|
|
|
+---------+--------------------------------+---------------------+------+-------+----------+-----------------+-----------+
|
|
|
| 206,287 | hetzner-nbg1-01.torproject.org | 2022-08-31 12:42:46 | B | F | 81,173 | 133,449,382,067 | T |
|
|
|
+---------+--------------------------------+---------------------+------+-------+----------+-----------------+-----------+
|
|
|
*
|
|
|
|
|
|
It's unclear why this happens. It's possible that inspecting the
|
|
|
PostgreSQL database directly would work. Meanwhile, try the *latest*
|
|
|
full backup instead, which, in this case, did work:
|
|
|
|
|
|
root@bacula-director-01:~# echo list files jobid=206287 | bconsole | wc -l
|
|
|
11
|
|
|
root@bacula-director-01:~# echo list files jobid=210810 | bconsole | wc -l
|
|
|
81599
|
|
|
root@bacula-director-01:~#
|
|
|
|
|
|
## Excluding files from backups
|
|
|
|
|
|
Bacula has a list of files excluded from backups, mostly things like
|
... | ... | |