···11+---
22+apiVersion: volsync.backube/v1alpha1
33+kind: ReplicationDestination
44+metadata:
55+ name: ${job}
66+ namespace: ${ns}
77+spec:
88+ trigger:
99+ manual: restore-once
1010+ restic:
1111+ repository: ${app}-volsync-secret
1212+ destinationPVC: ${claim}
1313+ copyMethod: Direct
1414+ storageClassName: ceph-block
1515+ # storageClassName: ceph-filesystem
1616+ # accessModes: ["ReadWriteMany"]
1717+ # IMPORTANT NOTE:
1818+ # Set to the last X number of snapshots to restore from
1919+ previous: ${previous}
2020+ # OR;
2121+ # IMPORTANT NOTE:
2222+ # On bootstrap set `restoreAsOf` to the time the old cluster was destroyed.
2323+ # This will essentially prevent volsync from trying to restore a backup
2424+ # from a application that started with default data in the PVC.
2525+ # Do not restore snapshots made after the following RFC3339 Timestamp.
2626+ # date --rfc-3339=seconds (--utc)
2727+ # restoreAsOf: "2022-12-10T16:00:00-05:00"
2828+ moverSecurityContext:
2929+ runAsUser: ${puid}
3030+ runAsGroup: ${pgid}
3131+ fsGroup: ${pgid}