UNCLASSIFIED

Commit 19661e7e authored by dkeightley's avatar dkeightley Committed by Brad Davidson
Browse files

Stop RKE2 before performing a snapshot restore

parent 4eeab5a8
...@@ -30,9 +30,10 @@ rke2 server --cluster-reset ...@@ -30,9 +30,10 @@ rke2 server --cluster-reset
When RKE2 is restored from backup, the old data directory will be moved to `/var/lib/rancher/rke2/server/db/etcd-old-%date%/`. Then RKE2 will attempt to restore the snapshot by creating a new data directory, then starting etcd with a new RKE2 cluster with one etcd member. When RKE2 is restored from backup, the old data directory will be moved to `/var/lib/rancher/rke2/server/db/etcd-old-%date%/`. Then RKE2 will attempt to restore the snapshot by creating a new data directory, then starting etcd with a new RKE2 cluster with one etcd member.
To restore the cluster from backup, run RKE2 with the `--cluster-reset` option, with the `--cluster-reset-restore-path` also given: To restore the cluster from backup, first you need to stop RKE2 service if its enabled via systemd. Once stopped, run RKE2 with the `--cluster-reset` option, with the `--cluster-reset-restore-path` also given:
``` ```
systemctl stop rke2-server
rke2 server \ rke2 server \
--cluster-reset \ --cluster-reset \
--cluster-reset-restore-path=<PATH-TO-SNAPSHOT> --cluster-reset-restore-path=<PATH-TO-SNAPSHOT>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment