Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 1.03 KB

README.md

File metadata and controls

21 lines (18 loc) · 1.03 KB

ocp4-etcd-backup

This project is meant to provide a simple ETCD backup solution embedded in OCP4.

To apply the manifests, just run kustomize or oc apply -k from the root of the repository:
kustomize build . | oc apply -f -
oc apply -k .

If you want to add an NFS mount just add the mount before executing the backup script in the ocp4-backup/etcd-bck-cronJob.yml file:
chroot /host sudo -E mount -t nfs <nfs-server-IP>:<shared-path> /home/core/backup
and unmout it at the end:
chroot /host sudo -E umount /home/core/backup

If you want to test the backup job, run the following command:
oc create job backup --from=cronjob/openshift-backup -n ocp-etcd-backup

Notes

The following articles have been used to create this Repository.
https://access.redhat.com/solutions/5843611
https://cloud.redhat.com/blog/ocp-disaster-recovery-part-1-how-to-create-automated-etcd-backup-in-openshift-4.x