-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
velero.cheat
18 lines (13 loc) · 943 Bytes
/
velero.cheat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
% backup, velero
# Get details of velero backup schedule
velero schedule get <schedule> -oyaml
# Creating a backup reference to the defined resource policies. Users create a backup with the flag --resource-policies-configmap, which will reference the current backup to the defined resource policies. The creating command would be like the below:
velero backup create --resource-policies-configmap <configmap-name>
# When the backup completes, view information about the backups:
velero backup describe <backup_name> && kubectl -n velero get podvolumebackups -l velero.io/backup-name=<backup_name> -o yaml
§ restore
@ backup, velero
# Restore from your Velero backup:
velero restore create --from-backup <backup_name> <option>
# When the restore completes, view information about your pod volume restores:
velero restore describe <restore_name> && kubectl -n velero get podvolumerestores -l velero.io/restore-name=<restore_name> -o yaml