# OADP-1.3.0 datauploads and downloads ## get all datauploads ``` [whayutin@thinkdoe oadp-operator]$ oc get datauploads -A NAMESPACE NAME STATUS STARTED BYTES DONE TOTAL BYTES STORAGE LOCATION AGE NODE openshift-adp backup-test-1-sw76b Completed 9m47s 108104082 108104082 dpa-sample-1 9m47s ip-10-0-150-57.us-west-2.compute.internal openshift-adp mongo-block-7dtpf Completed 14m 1073741824 1073741824 dpa-sample-1 14m ip-10-0-150-57.us-west-2.compute.internal [whayutin@thinkdoe oadp-operator]$ ``` ## get datauploads from a specific backup ``` oc -n openshift-adp get datauploads -l velero.io/backup-name=backup-test-1 NAME STATUS STARTED BYTES DONE TOTAL BYTES STORAGE LOCATION AGE NODE backup-test-1-sw76b Completed 9m27s 108104082 108104082 dpa-sample-1 9m27s ip-10-0-150-57.us-west-2.compute.internal ``` ## get a dataupload details ``` oc get datauploads backup-test-1-sw76b -o yaml apiVersion: velero.io/v2alpha1 kind: DataUpload metadata: creationTimestamp: "2023-11-02T16:56:22Z" generateName: backup-test-1- generation: 6 labels: velero.io/accepted-by: ip-10-0-229-174.us-west-2.compute.internal velero.io/async-operation-id: du-4a58ec37-1313-4496-930f-ed77b442052b.9aa7338d-3743-486211b23 velero.io/backup-name: backup-test-1 velero.io/backup-uid: 4a58ec37-1313-4496-930f-ed77b442052b velero.io/pvc-uid: 9aa7338d-3743-486a-9105-d14b7539ef96 name: backup-test-1-sw76b namespace: openshift-adp ownerReferences: - apiVersion: velero.io/v1 controller: true kind: Backup name: backup-test-1 uid: 4a58ec37-1313-4496-930f-ed77b442052b resourceVersion: "8984951" uid: c617d26f-59cc-4e8c-92c7-1eed9ca30010 spec: backupStorageLocation: dpa-sample-1 csiSnapshot: snapshotClass: "" storageClass: gp3-csi volumeSnapshot: velero-mysql-fq8sl operationTimeout: 10m0s snapshotType: CSI sourceNamespace: mysql-persistent sourcePVC: mysql status: completionTimestamp: "2023-11-02T16:57:02Z" node: ip-10-0-150-57.us-west-2.compute.internal path: /host_pods/15116bac-cc01-4d9b-8ee7-609c3bef6bde/volumes/kubernetes.io~csi/pvc-eead8167-556b-461a-b3ec-441749e291c4/mount phase: Completed progress: bytesDone: 108104082 totalBytes: 108104082 snapshotID: 8da1c5febf25225f4577ada2aeb9f899 startTimestamp: "2023-11-02T16:56:22Z" ``` ## get all datadownloads ``` oc get datadownloads -A NAMESPACE NAME STATUS STARTED BYTES DONE TOTAL BYTES STORAGE LOCATION AGE NODE openshift-adp restore-test-1-sk7lg Completed 7m11s 108104082 108104082 dpa-sample-1 7m11s ip-10-0-150-57.us-west-2.compute.internal ``` ## get a datadownload from a specific restore ``` oc -n openshift-adp get datadownloads -l velero.io/restore-name=restore-test-1 NAME STATUS STARTED BYTES DONE TOTAL BYTES STORAGE LOCATION AGE NODE restore-test-1-sk7lg Completed 8m34s 108104082 108104082 dpa-sample-1 8m34s ip-10-0-150-57.us-west-2.compute.internal ``` ## get the details of a datadownload ``` oc get datadownloads restore-test-1-sk7lg -o yaml apiVersion: velero.io/v2alpha1 kind: DataDownload metadata: creationTimestamp: "2023-11-02T17:00:52Z" generateName: restore-test-1- generation: 6 labels: velero.io/accepted-by: ip-10-0-229-174.us-west-2.compute.internal velero.io/async-operation-id: dd-9ea3918f-8bf3-4c02-bc9c-15207c67343b.9aa7338d-3743-4864ac862 velero.io/restore-name: restore-test-1 velero.io/restore-uid: 9ea3918f-8bf3-4c02-bc9c-15207c67343b name: restore-test-1-sk7lg namespace: openshift-adp ownerReferences: - apiVersion: velero.io/v1 controller: true kind: Restore name: restore-test-1 uid: 9ea3918f-8bf3-4c02-bc9c-15207c67343b resourceVersion: "8987063" uid: a15d1392-95aa-46a2-a890-f9d5fd493539 spec: backupStorageLocation: dpa-sample-1 operationTimeout: 10m0s snapshotID: 8da1c5febf25225f4577ada2aeb9f899 sourceNamespace: mysql-persistent targetVolume: namespace: mysql-persistent pv: "" pvc: mysql status: completionTimestamp: "2023-11-02T17:01:24Z" node: ip-10-0-150-57.us-west-2.compute.internal phase: Completed progress: bytesDone: 108104082 totalBytes: 108104082 startTimestamp: "2023-11-02T17:00:52Z" ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up