Call out data-dir prefix and flag

This commit is contained in:
Jennifer Travinski
2021-11-04 11:37:29 -04:00
parent 71054fa029
commit 636125ce66
@@ -30,13 +30,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 `/var/lib/rancher/k3s/server/db/snapshots`.
The snapshot directory defaults to `${data-dir}/server/db/snapshots`. Note that the `/var/lib/rancher/k3s` prefix can be changed by setting the `--data-dir` flag. This prefix is currently omitted from the documented paths.
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 `/var/lib/rancher/k3s/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: