😎
Docs
  • Tamm - Docs
  • Azure
    • Sentinel KQL Samples
    • Managed Identities
    • Deploy Sentinel with Terraform
  • Docker
    • Allow standard user to interact with Docker
    • Install Docker
    • Installing and working with Traefik
    • Installing specific version of Docker
    • Deploy Guacamole
    • Traefik geoblock
    • Unpoller Prometheus UCG Ultra
  • HomeAssistant
    • HAOS install on Proxmox
    • Zigbee2MQTT
    • HAOS Reverse Proxy
    • ZBDongle-E
  • Kali
    • Enable RDP
  • Kubernetes
    • Cert manager with Cloudflare
    • On prem loadbalancer metallb
    • Nginx ingress
    • Cloudinit Rancher ubuntu
    • Rancher Ubuntu 18.04 node template
    • Velero with minio backend
    • vsphere pvc (in-tree)
    • Velero cheat sheet
    • nginx annotations examples
  • Linux
    • Expand lvm disk vmware
    • Expand lvm disk fresh install
    • Disk usage
    • flush-dns
    • Netplan config example
    • Add user in photon OS
    • SSH-Keys
    • Set timezone
    • sudo nopasswd
    • Add custom alias
    • Rocky Linux commands
  • macOS
    • Uninstall System extensions
    • 1Password Github setup
  • Microsoft 365
    • Powershell Cheat sheet
  • Portainer
    • Install Portainer
    • Add docker node
  • Powershell
    • GenericList example
    • Mixed stuff n things
    • Synopsis Template
    • Powershell Oh-my-posh
    • Powershell Sync Profile
    • Cleanup and install MS Graph module
  • Proxmox
    • Disable No Subscription notification
    • Import from vmware error
    • Proxmox commands
    • Proxmox on Intel NUC
    • Proxmox E1000
  • Terraform
    • Getting started
    • Deploy Sentinel
  • Unifi
    • Unifi Network App (migration)
    • Slow vlan throughput
    • interface-explanation
  • Windows
    • Network settings access denied
    • Windows GVLK Keys
    • Windows Server 2025
Powered by GitBook
On this page
  • Create backup location
  • Show backups with label
  • Show backups based on labels
  • Remove backups based on labels
  • Show Velero logs
  • Show backup logs
  • Delete backup
  • Remove backups in deleting state
  • Remove all backups
  • Remove backup location
  • Show backup location
  • Create restore job from backup
  • Create scheduled backup every 5 min
  • Set backup location in read only
  • Restore backup location to read and write
  • Delete backup-location

Was this helpful?

  1. Kubernetes

Velero cheat sheet

Create backup location

velero backup-location create wiki-demo --bucket wiki-demo --config region=minio,s3ForcePathStyle=”true”,s3Url=https://minio.qhrizz.se --provider aws

Show backups with label

velero backup get --show-labels

Show backups based on labels

velero backup get -l velero.io/storage-location=wiki-demo

Remove backups based on labels

velero backup delete -l ”velero.io/schedule-name=wiki-demo”

Show Velero logs

kubectl logs deployment/velero -n velero

Show backup logs

velero backup describe [backup name] –details

Delete backup

velero backup delete [backup name] (add --confirm to skip prompt)

Remove backups in deleting state

kubectl -n velero delete backup.velero.io [backup name]

Remove all backups

kubectl -n velero delete backup.velero.io --all

Remove backup location

kubectl -n velero delete backupstoragelocation [backup location name]

Show backup location

velero backup-location get

Create restore job from backup

velero restore create –from-backup [backup name]

Create scheduled backup every 5 min

velero schedule create wiki-demo --schedule=”*/5 * * * *” --storage-location wiki-demo --include-namespaces wiki-demo

Set backup location in read only

kubectl patch backupstoragelocation [backup location name] --namespace velero --type merge --patch '{”spec”:{”accessMode”:”ReadOnly”}}'

Restore backup location to read and write

kubectl patch backupstoragelocation [backup location name] --namespace velero --type merge --patch '{”spec”:{”accessMode”:”ReadWrite”}}'

Delete backup-location

kubectl -n velero delete backupstoragelocation NAME
Previousvsphere pvc (in-tree)Nextnginx annotations examples

Last updated 1 year ago

Was this helpful?