$ kopia repository connect s3 \
--bucket <bucket_name> \
--prefix oadp-vmdp/<your_prefix>/ \
...
Use OpenShift API for Data Protection virtual machine data protection (VMDP) to back up and restore user data from within VMs on OKD Virtualization. This helps you to protect files and directories without relying on cluster administrators.
You can independently back up and restore your own data from within a virtual machine (VM) by using the OADP VM data protection (VMDP) command-line tool. This approach helps you secure specific files and directories in your encrypted repository without requiring cluster administrator privileges.
Cluster administrators manage traditional OADP backups. The administrator owns the backup storage location, controls what to back up, and manages the restore process. This means that VM users must rely on an administrator to recover their data, and the backup scope is limited to the persistent volume claims (PVCs) attached to the VM at the time of backup.
VMDP addresses this gap by shifting data ownership to the VM user. The user creates their own encrypted backup repository, chooses what data to protect, and restores data without administrator involvement. This follows zero-trust architecture principles where the user owns the data, the backup, and the encryption keys. Administrators cannot access or restore the user’s backup data.
VMDP is a command-line tool that runs inside virtual machines on OKD Virtualization. With VMDP, you can complete the following tasks:
Back up and restore files and directories from within the VM by using a single command.
Protect data accessible over network file systems such as Common Internet File System (CIFS) and Network File System (NFS) shares, which standard OADP backups typically exclude.
Create a personal encrypted repository in S3-compatible or file system storage.
Use data deduplication for efficient storage and fast incremental backups.
VMDP is based on Kopia and uses the same repository format.
VMDP is designed for VM users who need to manage their own backups independently. The user is responsible for:
Providing their own credentials to create an encrypted backup repository.
Choosing what data to back up and restore.
Managing backup lifecycle operations such as listing, deleting, and restoring backups.
Cluster administrators are not involved in the backup and restore process. Their role is limited to deploying the OADP Operator. The OADP Operator has the VMDP CLI available for download.
OADP provides two complementary features for VM data recovery:
The VM user, without cluster-admin privileges, owns the data. The user creates encrypted backups of selected files and directories from within the VM. The user holds the encryption keys and manages the backup lifecycle independently.
The cluster administrator manages the backups and file recovery. VMFR enables file-level recovery from admin-created Velero backups of entire VMs, including all PVCs. The administrator controls the backup and restore process.
Review the supported guest operating systems and architectures for the OpenShift API for Data Protection virtual machine data protection (VMDP) command-line interface. This helps you to verify that your VM environment is compatible.
VMDP is built for OKD Virtualization certified guest operating systems on the following platforms:
| Guest operating system | Architectures |
|---|---|
Red Hat Enterprise Linux |
x86_64, AArch64 |
Microsoft Windows |
x86_64, AArch64 |
Each binary is statically linked and includes a SHA256 checksum for integrity verification.
Review the backend storage options for OpenShift API for Data Protection virtual machine data protection (VMDP) backup storage locations. This helps you to configure S3-compatible or file system storage for your backup repository.
| Option | Description | Default |
|---|---|---|
|
Name of the S3 bucket. |
(required) |
|
Access key ID. |
(required) |
|
Secret access key. |
(required) |
|
S3 endpoint URL. |
|
|
S3 region. |
Auto-detect |
|
Object prefix in the bucket. |
None |
|
Session token for temporary credentials. |
None |
|
Disable HTTPS. |
|
|
Skip TLS certificate verification. |
|
|
Path to a custom CA certificate file. |
None |
|
Base64-encoded CA certificate. |
None |
|
VMDP automatically prepends |
| Option | Description | Default |
|---|---|---|
|
Absolute path to the storage directory. |
(required) |
|
User ID for new files. |
Current user |
|
Group ID for new files. |
Current group |
|
Permission mode for files. |
|
|
Permission mode for directories. |
|
Review the environment variables and file locations for the OpenShift API for Data Protection virtual machine data protection (VMDP) command-line interface (CLI). This helps you to configure credentials, logging, and behavioral settings.
| Variable | Description |
|---|---|
|
BSL encryption password. Set this variable to avoid interactive prompts. |
|
Access key for S3 storage |
|
Secret key for S3 storage |
|
Session token for temporary credentials |
| Variable | Description | Default |
|---|---|---|
|
Path to the configuration file |
|
|
Path to the cache directory |
System-dependent |
|
Directory for log files |
|
| Variable | Description | Default |
|---|---|---|
|
Enable or disable update checks |
|
|
Save credentials after connecting |
|
|
Use the system keyring for password storage |
|
|
Fail immediately on the first error |
|
| Variable | Description | Default |
|---|---|---|
|
Maximum number of log files |
|
|
Maximum age of log files |
|
|
Maximum total size of log files in MB |
|
| Type | Linux | Windows |
|---|---|---|
Configuration |
|
|
Logs |
|
|
VMDP is based on Kopia and uses the same repository format. Repositories are fully compatible between the two tools.
| VMDP command | Kopia equivalent |
|---|---|
|
|
|
|
When you connect to a VMDP repository by using the Kopia CLI, include the oadp-vmdp/ prefix that VMDP adds automatically. For example:
$ kopia repository connect s3 \
--bucket <bucket_name> \
--prefix oadp-vmdp/<your_prefix>/ \
...