Resource Listing
EnterpriseBacula Enterprise Only
This solution is only available for Bacula Enterprise. For subscription inquiries, please reach out to sales@baculasystems.com.
The Bacula Enterprise OpenShift Plugin supports the “plugin listing” feature of Bacula Enterprise 8.x or newer. This mode allows the plugin to display some useful information about available OpenShift resources such as:
List of OpenShift namespaces
List of OpenShift Persistent Volumes
List of OpenShift storage class resources
The feature uses the special .ls command with a plugin=<plugin> parameter.
The command requires the following parameters to be set:
- client=<client>
A Bacula Client name with the OpenShift plugin installed.
- plugin=<plugin>
A plugin name, which would be openshift: in this case, with optional plugin parameters as described in section genericopenshiftparameters.
- path=<path>
An object path to display.
The supported values for a path=<path> parameter are:
- /
to display Object types available to list
- namespaces
to display a list of Namespaces
- persistentvolumes
to display a list of Persistent Volumes
- storageclass
to display a list of Storage Class Resources
- namespaces/<name>/pvcdata
to display all available Persistent Volume Claims available in Namespace
<name>
To display available Object types, follow the following command example:
*.ls plugin=openshift: client=openshift-fd path=/
Connecting to Client openshift-fd at localhost:9102
drwxr-x--- 1 root root 2018-09-28 14:32:20 /namespaces
drwxr-x--- 1 root root 2018-09-28 14:32:20 /persistentvolumes
drwxr-x--- 1 root root 2018-09-28 14:32:20 /storageclass
2000 OK estimate files=2 bytes=0
To display the list of all available OpenShift namespaces, the following command example can be used:
*.ls plugin=openshift: client=openshift-fd path=namespaces
Connecting to Client openshift-fd at localhost:9102
drwxr-xr-x 1 root root 2019-09-25 16:39:56 /namespaces/default
drwxr-xr-x 1 root root 2019-09-25 16:39:56 /namespaces/kube-public
drwxr-xr-x 1 root root 2019-09-25 16:39:56 /namespaces/kube-system
drwxr-xr-x 1 root root 2019-09-25 16:46:19 /namespaces/cattle-system
drwxr-xr-x 1 root root 2019-09-27 13:04:01 /namespaces/plugintest
2000 OK estimate files=5 bytes=0
To display the list of available Persistent Volume Claims which could be
used for PVC Data archive feature selection, you can use the following
example command for the mysql namespace:
*.ls client=openshift-fd plugin="openshift:" path=/namespaces/mysql/pvcdata
Connecting to Client openshift-fd at openshift:9102
-rw-r----- 1 root root 2019-10-16 14:29:38 /namespaces/mysql/pvcdata/mysql-mysql
2000 OK estimate files=1 bytes=0
To display the list of all available Persistent Volumes, the following command example can be used:
*.ls plugin=openshift: client=openshift-fd path=persistentvolumes
Connecting to Client openshift-fd at localhost:9102
-rw-r----- 1073741824 2019-09-25 /persistentvolumes/pvc-bfaebd0d-dfad-11e9-a2cc-42010a8e0174
-rw-r----- 1073741824 2019-09-25 /persistentvolumes/pvc-b1a49497-dfad-11e9-a2cc-42010a8e0174
-rw-r----- 1073741824 2019-09-25 /persistentvolumes/pvc-949cb638-dfad-11e9-a2cc-42010a8e0174
-rw-r----- 1073741824 2019-09-25 /persistentvolumes/pvc-9313388c-dfad-11e9-a2cc-42010a8e0174
-rw-r----- 10737418240 2019-09-24 /persistentvolumes/myvolume
2000 OK estimate files=5 bytes=15,032,385,536
The volume lists display a Volume Storage size which does not reflect the actual configuration size during backup.
To display the list of all defined Storage Class Resources, the following command example can be used:
*.ls plugin=openshift: client=openshift-fd path=storageclass
Connecting to Client openshift-fd at openshift:9102
-rw-r----- 1024 2020-07-27 13:39:48 /storageclass/local-storage
-rw-r----- 1024 2020-07-23 16:14:13 /storageclass/default-postgresql-1
-rw-r----- 1024 2020-07-24 11:47:02 /storageclass/local-storage-default
-rw-r----- 1024 2020-07-23 12:00:02 /storageclass/standard
2000 OK estimate files=4 bytes=4,096
Go back to: OpenShift: Operations.