From 71054fa0296e5b9739d9d500e779010013a009c6 Mon Sep 17 00:00:00 2001 From: Kyle Petryszak <6314611+ProjectInitiative@users.noreply.github.com> Date: Mon, 13 Sep 2021 23:28:38 -0500 Subject: [PATCH] k3s version v1.21.4+k3s1 (3e250fdb) go version go1.16.6 does not create /server/db/snapshots, instead it is now located at /var/lib/rancher/k3s/server/db --- content/k3s/latest/en/backup-restore/_index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/k3s/latest/en/backup-restore/_index.md b/content/k3s/latest/en/backup-restore/_index.md index 21734573e14..3852dff89b1 100644 --- a/content/k3s/latest/en/backup-restore/_index.md +++ b/content/k3s/latest/en/backup-restore/_index.md @@ -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 `/server/db/snapshots`. +The snapshot directory defaults to `/var/lib/rancher/k3s/server/db/snapshots`. 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 `/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. To restore the cluster from backup, run K3s with the `--cluster-reset` option, with the `--cluster-reset-restore-path` also given: