2025-03-14 21:59:59 -06:00
|
|
|
# velero
|
|
|
|
|
|
|
|
|
|
> Backup and migrate Kubernetes applications and their persistent volumes.
|
2025-05-08 12:26:01 -06:00
|
|
|
> More information: <https://velero.io/docs/main/>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Create a backup containing all resources:
|
|
|
|
|
|
|
|
|
|
`velero backup create {{backup_name}}`
|
|
|
|
|
|
|
|
|
|
- List all backups:
|
|
|
|
|
|
|
|
|
|
`velero backup get`
|
|
|
|
|
|
|
|
|
|
- Delete a backup:
|
|
|
|
|
|
|
|
|
|
`velero backup delete {{backup_name}}`
|
|
|
|
|
|
|
|
|
|
- Create a weekly backup, each living for 90 days (2160 hours):
|
|
|
|
|
|
|
|
|
|
`velero schedule create {{schedule_name}} --schedules="{{@every 7d}}" --ttl {{2160h0m0s}}`
|
|
|
|
|
|
|
|
|
|
- Create a restore from the latest successful backup triggered by specific schedule:
|
|
|
|
|
|
|
|
|
|
`velero restore create --from-schedule {{schedule_name}}`
|