File System Backup does not work without including pod in backup/restore #8527
-
For I try to restore the backup item,all pvs,pvcs can be find,but data not found |
Beta Was this translation helpful? Give feedback.
Replies: 36 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
-
How can I do... .... |
Beta Was this translation helpful? Give feedback.
-
Velero does not restic restore data to volumes when backups do not include pods mounting those volumes. |
Beta Was this translation helpful? Give feedback.
-
So....command like this? |
Beta Was this translation helpful? Give feedback.
-
About when I try to backup namespaces by prod,the restore schedule not completed [root@k8s-master-prod data]# cd prod-redis-data-redis-cluster-0-pvc-3e40d814-af8b-4c75-b602-1bb28c355d63/ |
Beta Was this translation helpful? Give feedback.
-
Secondly velero does not override existing volume. You have to delete PVC/pv for volume to be restored with data. |
Beta Was this translation helpful? Give feedback.
-
And try use v1.15.0 to backup resources like this: Phase: Failed (run Namespaces: Resources: Label selector: Or label selector: Storage Location: default Velero-Native Snapshot PVs: true TTL: 720h0m0s CSISnapshotTimeout: 10m0s Hooks: Backup Format Version: 1.1.0 Started: 2024-12-05 14:15:25 +0800 CST Expiration: 2025-01-04 14:15:25 +0800 CST Backup Volumes: command: velero backup create cluster1 --include-namespaces prod --include-resources persistentvolumeclaims,persistentvolumes.pods,serviceaccounts,secrets --item-operation-timeout 600s --snapshot-volumes=true --default-volumes-to-fs-backup=true time="2024-12-05T06:40:53Z" level=error msg="Error getting backup store for this location" backupLocation=velero/default controller=backup-sync error="rpc error: code = Unknown desc = Invalid s3 url http://192.168.127.131:9000\u00a0--uploader-type, URL must be valid according to https://golang.org/pkg/net/url/#Parse and start with http:// or https://" error.file="/go/src/velero-plugin-for-aws/velero-plugin-for-aws/object_store.go:255" error.function=main.newAWSConfig logSource="pkg/controller/backup_sync_controller.go:103" |
Beta Was this translation helpful? Give feedback.
-
By the way,one more ask about the how to change this images for restore steps: |
Beta Was this translation helpful? Give feedback.
-
@klllmxx apiVersion: v1
kind: ConfigMap
metadata:
# any name can be used; Velero uses the labels (below)
# to identify it rather than the name
name: fs-restore-action-config
# must be in the velero namespace
namespace: velero
# the below labels should be used verbatim in your
# ConfigMap.
labels:
# this value-less label identifies the ConfigMap as
# config for a plugin (i.e. the built-in restore
# item action plugin)
velero.io/plugin-config: ""
# this label identifies the name and kind of plugin
# that this ConfigMap is for.
velero.io/pod-volume-restore: RestoreItemAction
data:
# The value for "image" can either include a tag or not;
# if the tag is *not* included, the tag from the main Velero
# image will automatically be used.
image: myregistry.io/my-custom-helper-image[:OPTIONAL_TAG] |
Beta Was this translation helpful? Give feedback.
-
After deploy velero then deploy this one is best or having other way try?and need before deploy velero set this one before install step nessessary? |
Beta Was this translation helpful? Give feedback.
-
imo create the config map then create/install velero deployment |
Beta Was this translation helpful? Give feedback.
-
ammm...my deployment using for crds with command...no more using helm... |
Beta Was this translation helpful? Give feedback.
-
also about restore step must be having pods informations? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
if your backup is specific enough to your workload such as only your intended namespaces, you can just restore from that backup without specifying anything else. Otherwise you can filter what gets restored by namespaces, resource types. |
Beta Was this translation helpful? Give feedback.
-
I can see, but I don't use helm or tanzu so I don't have specifics whether it should work or not. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
The article you linked
I am not familiar with Redis, and I do not have access to Tanzu Platform cloud services account per the prerequisites of the document. I will not be able to reproduce your issue unfortunately. Perhaps other maintainers more familiar with the document can help. |
Beta Was this translation helpful? Give feedback.
-
That's is simple question man,it has nothing to do with helm and cloud,basically velero backup pv and pvc resources only and use this backup to restore to the new migrated cluster and the data can be back,do you understanding what i say?by the way,this link article was not written by me,thank you sir~ |
Beta Was this translation helpful? Give feedback.
-
Honestly, I was trying my best to understand what you mean and may have misunderstood the question. If I understand your question, you mean to ask if you could backup just the PV/PVC and nothing else (ie. without pods) like the article and restore this PV/PVC data in the new cluster. Yes but you need to
|
Beta Was this translation helpful? Give feedback.
-
Same like backup and restore steps shown with the link I sent you have been |
Beta Was this translation helpful? Give feedback.
-
If your nfs client provisioner does not have a CSI driver with snapshot capability then without adding pods to use file system backup you won't be able to migrate PV/PVC data. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Yes it is necessary with file system backup. Until such time that velero create a pod for you, your backup will need to contain a pod mounting PV for file system backup to work on these volumes. |
Beta Was this translation helpful? Give feedback.
-
Recovery steps also necessary carry pod resources right you mean ? |
Beta Was this translation helpful? Give feedback.
-
ok now i see,good,but offical document information not cleary to explain this one so hope update the recovery documentation is best i think sir |
Beta Was this translation helpful? Give feedback.
-
Our docs already highlight this. If more improvement is needed leave a suggestion or PR. |
Beta Was this translation helpful? Give feedback.
Our docs already highlight this.
If more improvement is needed leave a suggestion or PR.