Backup pvc with hostPath #1180
Answered
by
JohnStrunk
ParitoshBh
asked this question in
Q&A
-
I am able to create and associate PersistentVolume with a pod. However, when I try to backup the pvc using VolSync, it doesn't work. Here's how I have setup pv and pvc, apiVersion: v1
kind: PersistentVolume
metadata:
name: immich-upload
labels:
app: immich-server
parent: immich
type: local
spec:
storageClassName: manual
capacity:
storage: 500Gi
accessModes:
- ReadWriteMany
hostPath:
path: "/mnt/k3s/storage" apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: immich-upload-claim
labels:
app: immich-server
parent: immich
spec:
storageClassName: manual
accessModes:
- ReadWriteMany
resources:
requests:
storage: 500Gi and triggering manual volsync backup using, apiVersion: volsync.backube/v1alpha1
kind: ReplicationSource
metadata:
name: immich-backup
spec:
sourcePVC: immich-upload
trigger:
manual: manual-backup-id-1
restic:
repository: restic-nas-immich-config
copyMethod: Direct I can see that replicationsource gets registered but nothing happens. Any idea as to what might be happening here? |
Beta Was this translation helpful? Give feedback.
Answered by
JohnStrunk
Mar 22, 2024
Replies: 1 comment 1 reply
-
What sticks out to me is that If you need further help, please post the objects, including their |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ParitoshBh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What sticks out to me is that
spec.sourcePVC
needs to match the name of the PVC, not the PV.If you need further help, please post the objects, including their
.status
fields.