Skip to content

Latest commit

 

History

History
executable file
·
30 lines (19 loc) · 804 Bytes

kubernetes-backup-and-restore.md

File metadata and controls

executable file
·
30 lines (19 loc) · 804 Bytes

Cluster Backup and Restore

The velero CLI tool is installed in the dev container and may be used to perform backups and restores.

Example Rolling 7 Day Backup of Home-Automation Namespace

export NAMESPACE="home-automation"

velero schedule create home-automation-daily-backup --schedule "0 7 * * *" --ttl "720h" --include-namespaces $NAMESPACE

Restore

Find the backup you wish to restore by logging into Azure and looking in the Velero storage blob container. Backups are located in ./backups/daily-backup-$TIMESTAMP

Find a Backup

velero backup get

Restore Backup

# Replace timestamp with correct timestamp value from looking up the backup name.
export BACKUP_NAME="daily-backup-$TIMESTAMP"

velero restore create --from-backup $BACKUP_NAME