← All cheatsheets
$ velero backup create dailyInstall Velero, back up namespaces and volumes, schedule backups and restore into the same or a new namespace.
Install and check
Replace the plugin version with the one that matches your Velero release.
velero install --provider aws --plugins velero/velero-plugin-for-aws:v1.x.y --bucket velero-backups --backup-location-config region=us-east-1 --secret-file ./credentials-veleroInstall Velero with S3 storagevelero versionShow client and server versionsvelero backup-location getCheck the storage location is availableBackups
velero backup create daily --include-namespaces appBack up one namespacevelero backup create full --exclude-namespaces kube-systemBack up almost everythingvelero backup create db --selector app=postgresBack up by labelvelero backup create vols --default-volumes-to-fs-backupInclude volume data with file system backupvelero backup getList backupsvelero backup describe daily --detailsShow what a backup containsvelero backup logs dailyDebug a failed backupvelero backup delete dailyDelete a backupSchedules
velero schedule create nightly --schedule="0 2 * * *" --ttl 168hBack up every night, keep 7 daysvelero schedule getList schedulesvelero backup create --from-schedule nightlyRun a schedule nowRestores
velero restore create --from-backup dailyRestore a backupvelero restore create --from-backup daily --namespace-mappings app:app-restoreRestore into a new namespacevelero restore getList restoresvelero restore describe RESTORE_NAME --detailsCheck restore results