Fileset Examples
EnterpriseBacula Enterprise Only
This solution is only available for Bacula Enterprise. For subscription inquiries, please reach out to sales@baculasystems.com.
In the example below, all OpenShift Namespaces, Resources and Persistent Volume Configurations will be backed up using the default OpenShift API access credentials.
Fileset {
Name = FS_OpenShift_All
Include {
Plugin = "openshift:"
}
}
In this example, we will backup a single Namespace using the kube config file authentiaton method.
Fileset {
Name = FS_OpenShift_default_namespace
Include {
Plugin = "openshift: namespace=default config=/opt/bacula/etc/kube_cofig"
}
}
The same example as above, but with a Persistent Volume:
Fileset {
Name = FS_OpenShift_default_namespace
Include {
Plugin = "openshift: namespace=default config=/opt/bacula/etc/kube_cofig \
persistentvolume=myvol"
}
}
This example backs up a single Namespace and all detected PVCs in this Namespace using a defined listening and entry point address and the default connection port:
Fileset {
Name = FS_OpenShift_test_namespace
Include {
Plugin = "openshift: namespace=test pvcdata fdaddress=10.0.10.10"
}
}
The same example as above, but using different listening and entry point addresses as may be found when the service is behind a firewall using port forwarding features:
Fileset {
Name = FS_OpenShift_test_namespace_through_firewall
Include {
Plugin = "openshift: namespace=test pvcdata=plugin-storage fdaddress=10.0.10.10 \
pluginhost=backup.example.com pluginport=8080"
}
}
The configuration above is designed for use in situations where the Bacula server components are located on-premise and behind a firewall with no external ports allowed in, but must back up data on an external OpenShift cluster.
See also
Previous articles:
Next articles:
Go back to: OpenShift: Configuration.