mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-25 04:28:15 +00:00
Merge pull request #3514 from ProjectInitiative/master
k3s version v1.21.4+k3s1 (3e250fdb) go version go1.16.6 does not crea…
This commit is contained in:
@@ -32,13 +32,13 @@ In this section, you'll learn how to create backups of the K3s cluster data and
|
||||
|
||||
Snapshots are enabled by default.
|
||||
|
||||
The snapshot directory defaults to `/server/db/snapshots`.
|
||||
The snapshot directory defaults to `${data-dir}/server/db/snapshots`. The data-dir value defaults to `/var/lib/rancher/k3s` and can be changed by setting the `--data-dir` flag.
|
||||
|
||||
To configure the snapshot interval or the number of retained snapshots, refer to the [options.](#options)
|
||||
|
||||
### Restoring a Cluster from a Snapshot
|
||||
|
||||
When K3s is restored from backup, the old data directory will be moved to `/server/db/etcd-old/`. Then K3s will attempt to restore the snapshot by creating a new data directory, then starting etcd with a new K3s cluster with one etcd member.
|
||||
When K3s is restored from backup, the old data directory will be moved to `${data-dir}/server/db/etcd-old/`. Then K3s will attempt to restore the snapshot by creating a new data directory, then starting etcd with a new K3s cluster with one etcd member.
|
||||
|
||||
To restore the cluster from backup, run K3s with the `--cluster-reset` option, with the `--cluster-reset-restore-path` also given:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user