Blame docs/operations/ci/create_etcd_backup.md

47c289
# Create etcd backup
47c289
This SOP should be followed in the following scenarios:
47c289
47c289
- When the need exists to create an etcd backup. 
47c289
- When shutting a cluster down gracefully.
47c289
47c289
## Steps
47c289
David Kirwan 2774c0
1. Connect to the admin node for either `staging` or `production`. See the inventory `ocp` for produduction, `ocp-stg` for staging. The hostname is in the group `ocp-ci-management` or `ocp-stg-ci-management`.
47c289
47c289
```
David Kirwan 2774c0
ssh <admin-node>
47c289
```
47c289
David Kirwan 2774c0
2. Become the ocp administrator user, check the hostvars associated with the host in the previous step.
47c289
47c289
```
David Kirwan 2774c0
sudo su <ocp-admin-user>
47c289
```
47c289
David Kirwan 2774c0
3. Run the cluster backup script:
47c289
47c289
```
David Kirwan 2774c0
~/bin/ocp-etcd-backup
47c289
```
47c289
David Kirwan 2774c0
4. This will save an etcd snapshot in the `~/ocp_backups` location.
47c289
David Kirwan 2774c0
5. These snapshots are taken nightly at `02:00 UTC` and rsynced to a backup storage device.
47c289
47c289
### Resources
47c289
47c289
- [1] [Creating an etcd backup](https://docs.openshift.com/container-platform/4.5/backup_and_restore/backing-up-etcd.html#backing-up-etcd-data_backup-etcd)