Restore PVC Data
Here we describe functionalities and requirements related to pvcdata restore.
Local Directory Restore
The procedure to restore a PVC Data archive file to a local directory is
basically the same as restoring the Kubernetes Object configuration
file as described in Restore to Local Directory Example. However, output transformation
is unavailable and ignored when restoring PVC data. Restore of this data
will create a tar
archive file you can manually inspect and use.
Restore to PVC
This procedure is similar to the one described in PVC Data backup and uses the same Bacula Backup Proxy Pod image. During restore, the plugin uses the same endpoint configuration parameters so it is not necessary to setup it again. If your endpoint parameters have changed you can update them using Bacula plugin restore options modification as in example below:
*restore select all done where=/
(...)
OK to run? (yes/mod/no): mod
Parameters to modify:
1: Level
2: Storage
3: Job
4: FileSet
5: Restore Client
6: When
7: Priority
8: Bootstrap
9: Where
10: File Relocation
11: Replace
12: JobId
13: Plugin Options
Select parameter to modify (1-13): 13
Automatically selected : kubernetes: namespace=plugintest pvcdata pluginhost=example.com
Plugin Restore Options
config: *None* (*None*)
host: *None* (*None*)
token: *None* (*None*)
verify_ssl: *None* (True)
ssl_ca_cert: *None* (*None*)
outputformat: *None* (RAW)
fdaddress: *None* (*FDAddress*)
fdport: *None* (9104)
pluginhost: *None* (*FDAddress*)
pluginport: *None* (9104)
Use above plugin configuration? (yes/mod/no): mod
You have the following choices:
1: config (K8S config file)
2: host (K8S API server URL/Host)
3: token (K8S Bearertoken)
4: verify_ssl (K8S API server cert verification)
5: ssl_ca_cert (Custom CA Certs file to use)
6: outputformat (Output format when saving to file (JSON, YAML))
7: fdaddress (The address for listen to incoming backup pod data)
8: fdport (The port for opening socket for listen)
9: pluginhost (The endpoint address for backup pod to connect)
10: pluginport (The endpoint port to connect)
Select parameter to modify (1-10): 9
Please enter a value for pluginhost: newbackup.example.com
Plugin Restore Options
config: *None* (*None*)
host: *None* (*None*)
token: *None* (*None*)
verify_ssl: *None* (True)
ssl_ca_cert: *None* (*None*)
outputformat: *None* (RAW)
fdaddress: *None* (*FDAddress*)
fdport: *None* (9104)
pluginhost: newbackup.example.com (*FDAddress*)
pluginport: *None* (9104)
Use above plugin configuration? (yes/mod/no): yes
You can restore all data available from the backup archive for a
selected Persistent Volume Claim and all data will be overwritten,
ignoring the Replace
job parameter. Please take note of this
behavior, which may change in the future.
See also
Go back to:
Go to:
Go back to the Kubernetes Restore page.
Go back to the Kubernetes Operations page.
Go back to the main Kubernetes Plugin page.