Restore
| API version | kobblestone.io/v1alpha1 |
|---|---|
| Kind | Restore |
| Scope | Namespaced |
| kubectl | kubectl 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
existingDataPolicystringWhat 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
jobobjectConfigures 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.
imagestringCustom image for the restore containers. It must provide sh, ls, tar and mv.
Default is ubuntu.
resourcesobjectCompute resources of the restore Pod.
tolerations[]objectTolerations of the restore Pod.
pathstringPath inside the server’s data volume to restore into.
Default is the root of the volume.
Reference to the target Server.
The Server must have storage configured.
status
messagestringMessage explaining the current state of the Restore.
phasestringCurrent phase of the Restore.
Values:
Pending: TheRestoreis waiting to be started, or itsPodis starting.Running: TheRestoreis currently running.Completed: TheRestorecompleted successfully.Failed: TheRestorefailed.
- One of:
Pending,Running,Completed,Failed