Backup

Enterprise

Bacula Enterprise Only

This solution is only available for Bacula Enterprise. For upgrade inquiries, please reach out to sales@baculasystems.com.

Example

From bconsole, run the following command:

.query parameter=database* client=localhost-fd plugin="inventory:"

The output provided by the hook is a JSON object with the following information:

{
   "result": [
      {
         "source": "mysql",
         "type": "Database",
         "info": "mysql  Ver 14.14 Distrib 5.7.34, for Linux (x86_64) using  EditLine wrapper",
         "version": 1,
         "runscript": [
            {
               "name": "clientrunbeforejob",
               "run": "systemctl stop mysql"
            },
            {
               "name": "clientrunafterjob",
               "run": "systemctl start mysql"
            }
         ],
         "status": 1
      },
      {
         "source": "postgresql",
         "type": "Database",
         "info": "psql (PostgreSQL) 13.9 (Debian 13.9-0+deb11u1)",
         "version": 1,
         "runscript": [
            {
               "name": "clientrunbeforejob",
               "run": "systemctl stop postgresql"
            },
            {
               "name": "clientrunafterjob",
               "run": "systemctl start postgresql"
            }
         ],
         "status": 1
      }
   ],
   "version": "1",
   "request": "*database*",
   "type": "inventory_report",
   "timesec": 1671718067,
   "hostname": "stretch",
   "uptime": 13698,
   "uname": "Linux stretch 5.10.0-20-amd64 #1 SMP Debian 5.10.158-2 (2022-12-13) x86_64"
}
JSON fields

Option

Description

source version info error runscript

(String) Name of the hook (String) Version of the hook program (String) useful information (version, build, etc.) (Int) different from zero to raise an error (Array) suggestions on how to handle the component

See also

Next articles:

Go back to: Inventory Plugin: Operations.