Proxmox Example
In the example presented below, the Scan Plugin will contact the Proxmox server via the Proxmox Plugin installed on the Bacula Client proxmox03-fd. Each virtual machine detected who’s name ends with ‘-tmpl’ will have a Job and corresponding Fileset created. The Job directives will be defined via the JobDefs BackupsToDisk.
The Proxmox Plugin must be correctly configured on the Bacula Client to be used by the scan_plugin script. Refer to the Proxmox configuration chapter to install and configure the Proxmox Plugin.
Using the bconsole .ls command, list the VMs hosted by the ‘proxmox03-fd’ Client ending in ‘-tmpl’.
bacula$ echo ".ls client=proxmox03-fd plugin=proxmox: path=vm" | bconsole | grep ".*-tmpl"
-rw-r----- 1 root root 21474836480 2023-07-26 20:49:31 centos7-tmpl
-rw-r----- 1 root root 21474836480 2023-07-26 20:49:33 centos8-tmpl
-rw-r----- 1 root root 21474836480 2023-07-26 20:49:37 debian12-tmpl
-rw-r----- 1 root root 21474836480 2023-07-26 20:49:40 debian11-tmpl
-rw-r----- 1 root root 53687091200 2023-07-26 20:49:42 debian10-tmpl
-rw-r----- 1 root root 32212254720 2023-07-26 20:49:47 debian9-tmpl
-rw-r----- 1 root root 10737418240 2023-07-26 20:49:49 oraclelinux7-tmpl
-rw-r----- 1 root root 10737418240 2023-07-26 20:49:52 oraclelinux8-tmpl
-rw-r----- 1 root root 21474836480 2023-07-26 20:49:54 oraclelinux9-tmpl
-rw-r----- 1 root root 34359738368 2023-07-26 20:49:56 rhel8-tmpl
-rw-r----- 1 root root 21474836480 2023-07-26 20:49:58 rhel9-tmpl
-rw-r----- 1 root root 10737418240 2023-07-26 20:50:06 sles125-tmpl
-rw-r----- 1 root root 21474836480 2023-07-26 20:50:09 sles154-tmpl
-rw-r----- 1 root root 21474836480 2023-07-26 20:50:26 ubuntu18-tmpl
-rw-r----- 1 root root 26843545600 2023-07-26 20:50:37 ubuntu20-tmpl
-rw-r----- 1 root root 21474836480 2023-07-26 20:50:43 ubuntu22-tmpl
-rw-r----- 1 root root 21474836480 2023-07-26 20:50:46 rocky8-tmpl
-rw-r----- 1 root root 21474836480 2023-07-26 20:50:58 rocky9-tmpl
-rw-r----- 1 root root 21474836480 2023-07-26 20:51:45 almalinux8-tmpl
-rw-r----- 1 root root 21474836480 2023-07-26 20:52:15 almalinux9-tmpl
Using the –include command line option for the scan_plugin script, create Jobs and Filesets only for VMs with names ending in -tmpl:
bacula$ /opt/bacula/bin/scan_plugin --client proxmox03-fd --plugin proxmox --parameter vm --jobdefs BackupsToDisk --job %c_%v --fileset %c_%v --commit_and_reload --include ".*-tmpl"
Report for scan_plugin 0.5 proxmox03-fd:proxmox
----------------------------------------------
Client: proxmox03-fd
Plugin: proxmox
Total Objects: 20
---------------------------------------------
~ updated, + added, X removed, D disabled
---------------------------------------------
+ proxmox03-fd_sles125-tmpl
+ proxmox03-fd_rocky8-tmpl
+ proxmox03-fd_rhel8-tmpl
+ proxmox03-fd_centos7-tmpl
+ proxmox03-fd_debian12-tmpl
+ proxmox03-fd_oraclelinux9-tmpl
+ proxmox03-fd_oraclelinux7-tmpl
+ proxmox03-fd_ubuntu20-tmpl
+ proxmox03-fd_debian10-tmpl
+ proxmox03-fd_almalinux9-tmpl
+ proxmox03-fd_ubuntu18-tmpl
+ proxmox03-fd_sles154-tmpl
+ proxmox03-fd_almalinux8-tmpl
+ proxmox03-fd_centos8-tmpl
+ proxmox03-fd_rocky9-tmpl
+ proxmox03-fd_oraclelinux8-tmpl
+ proxmox03-fd_debian11-tmpl
+ proxmox03-fd_ubuntu22-tmpl
+ proxmox03-fd_debian9-tmpl
+ proxmox03-fd_rhel9-tmpl
----------------------------------------------
Status: Configuration applied and reloaded
See also
Go back to PostgreSQL Example
Go back to vSphere Example
Go to MySQL Example
Go to NDMP Example
Go to Microsoft 365 Example
Go back to the Examples page.
Go back to the main Automatic Object Integration (Scan Plugin) page.