Reference

Restore

API versionkobblestone.io/v1alpha1
KindRestore
ScopeNamespaced
kubectlkubectl get restores

A Restore restores the data of a Backup into a Server.

The restore waits until the Server is in phase Stopped and keeps it stopped while it runs. Backups and Restores of the same Server run one after another, in the order they were created.

spec

backupRefobjectrequired

Reference to the Backup to restore.

1 field
namestring

What happens if the target already contains data.

Default is Fail.

Values:

  • Fail: The restore fails if the target is not empty.
  • Overwrite: The existing data is replaced by the data of the backup.

Warning: With Overwrite, the existing data is deleted. Create a Backup first if you might still need it.

  • One of: Fail, Overwrite
jobobject

Configures the spec of the managed Job object.

4 fields

Maximum duration of the restore Job in seconds. When it is exceeded, the Job and thus the Restore fails.

Default is no limit.

imagestring

Custom image for the restore containers. It must provide sh, ls, tar and mv.

Default is ubuntu.

resourcesobject

Compute resources of the restore Pod.

3 fields
claims[]object
2 fields
namestring
requeststring
limitsmap[string]string
requestsmap[string]string
tolerations[]object

Tolerations of the restore Pod.

5 fields
effectstring
keystring
operatorstring
valuestring
pathstring

Path inside the server’s data volume to restore into.

Default is the root of the volume.

targetRefobjectrequired

Reference to the target Server.

The Server must have storage configured.

3 fields
apiGroupstring
kindstring
namestring

status

messagestring

Message explaining the current state of the Restore.

phasestring

Current phase of the Restore.

Values:

  • Pending: The Restore is waiting to be started, or its Pod is starting.
  • Running: The Restore is currently running.
  • Completed: The Restore completed successfully.
  • Failed: The Restore failed.
  • One of: Pending, Running, Completed, Failed
startedAtstring

Time at which the Job of the Restore was created.

  • Format: date-time