Commands - Velero
List backups
velero backup get
Check namespace backup contents
velero backup describe daily-backup-20241201020000 --details
Create a restore to a new namespace
velero restore create my-restore-test
—from-backup daily-backup-20241201020000
—namespace-mappings original-namespace:test-namespace
—include-resources deployments,configmaps,secrets,persistentvolumeclaims
Example i want to restore from “hoarder” namespace to “backup-hoarder” namespace
velero restore create my-restore-test \
--from-backup velero-daily-backup-20251121020023 \
--namespace-mappings hoarder:backup-hoarder \
--include-resources deployments,configmaps,secrets,persistentvolumeclaims
Check restore status
velero restore describe my-restore-test
# and logs
velero restore logs my-restore-test
Test backup restore on kind cluster
kind create cluster --name test-velero
kubectl config use-context kind-test-velero
Explore files with kopia
kopia repository connect s3 \
--bucket=k3s \
--endpoint=ip:port \
--region=garage \
--disable-tls \
--disable-tls-verification \
--prefix=kopia/namespace/ \
--access-key=key \
--secret-access-key=key \
--password=password
!!! Dont forget the / after the namesapce in prefix
List snapshots
kopia snapshot list --all
kopia ls kd9afe646300e779cb4f05873e344148f
mkdir /tmp/jellyfin-restore
kopia mount kd9afe646300e779cb4f05873e344148f /tmp/jellyfin-restore &