Restore PVC Data
CommunityEnterpriseThis section describes the functionality and requirements related to pvcdata restore.
Local Directory Restore
The procedure to restore a PVC Data archive file to a local directory is essentially the same as restoring the Kubernetes Object configuration file as described in Restore to Local Directory. However, output transformation is unavailable and ignored when restoring PVC data.
If the PVC uses a filesystem volume mode, the restore creates a tar archive file you can manually
inspect and use. If the PVC uses a block volume mode, the data creates a raw archive file
(or a compressed file if compression was enabled during backup), which you can manually mount and
use on your system.
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 configure it again. If the endpoint parameters have changed, you can update them using Bacula plugin restore options modification as in the 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
When restoring PVC data, the plugin restores all data from the backup archive for the selected Persistent Volume Claim.
Existing data is overwritten regardless of the Replace setting.
Be aware of this behavior; it may change in a future release.
See also
Previous articles:
Next articles:
Go back to: Restore.