...
Code Block |
---|
language | bash |
---|
title | Restore snapshot |
---|
|
# The destination directory must be empty and obviously have write permissions
$ etcdctl [--data-dir <data_dir>] snapshot restore <snapshot>
$ etcdctl --data-dir /tmp/snap_dir snapshot restore snapshot.db
# Paste the snapshot into the path where the etcd node data are stored
$ cp -r /tmp/snap_dir/member /var/lib/etcd/ |
BackUp CronJob
Ho trovato e sto provando questo Helm Chart.
Code Block |
---|
language | bash |
---|
title | Helm Chart |
---|
|
$ helm repo add adfinis https://charts.adfinis.com
$ helm show values adfinis/openshift-etcd-backup > etcd_values.yaml
$ helm install etcd-backup adfinis/openshift-etcd-backup --namespace etcd-backup --create-namespace --values etcd_values.yaml |