Backup
| API version | kobblestone.io/v1alpha1 |
|---|---|
| Kind | Backup |
| Scope | Namespaced |
| kubectl | kubectl get backups |
A Backup defines a request for a snapshot of a Server.
The snapshot includes the servers data and configs. Transient data like .jar files is excluded.
Backups can be restored via the Restore object.
Live backups on running servers are supported and implemented using RCON.
Note: Backups are not supported for servers that do not have storage configured.
spec
jobobjectConfigures the spec of the managed Job object.
4 fields
Maximum duration of the backup Job in seconds. When it is exceeded, the Job and thus the Backup fails.
Default is no limit.
imagestringCustom image for online backups of running servers.
Default is itzg/mc-backup.
retainPolicystringPolicy that determines what should happen with the physical snapshot data when the Backup is deleted.
Values:
Retain: Snapshots are retained in theirBackupRepo.Delete: An attempt is made to delete the snapshot from theBackupRepo. The result of that deletion is ignored and not awaited.RequireDelete: The snapshot must be deleted from theBackupRepofor theBackupto be finally removed. Deletion is retried until success.
Default is Retain.
- One of:
Retain,Delete,RequireDelete
status
conditions[]objectConditions of the Backup.
6 fields
lastTransitionTimestring- Format:
date-time
messagestringobservedGenerationint64reasonstringstatusstringtypestringmessagestringMessage explaining the current state of the Backup.
phasestringCurrent phase of the Backup.
Values:
Pending:Backupis pending.Running:Backupis currently running.Completed:Backupcompleted successfully.Failed:Backupfailed.
- One of:
Pending,Running,Completed,Failed
repostringName of the target BackupRepo.
targetstringName of the target.