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 1/4] 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: From 636125ce669d0faf6d04b535f013e9f6e7e59281 Mon Sep 17 00:00:00 2001 From: Jennifer Travinski Date: Thu, 4 Nov 2021 11:37:29 -0400 Subject: [PATCH 2/4] Call out data-dir prefix and flag --- 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 3852dff89b1..5054e7bdf47 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 `/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: From 7073cb868bd1b0de549e622470aff2a03ad22bcb Mon Sep 17 00:00:00 2001 From: Jennifer Travinski Date: Fri, 5 Nov 2021 11:33:27 -0400 Subject: [PATCH 3/4] Removed unneeded phrase --- content/k3s/latest/en/backup-restore/_index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/k3s/latest/en/backup-restore/_index.md b/content/k3s/latest/en/backup-restore/_index.md index 5054e7bdf47..68febf6a094 100644 --- a/content/k3s/latest/en/backup-restore/_index.md +++ b/content/k3s/latest/en/backup-restore/_index.md @@ -30,7 +30,7 @@ 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 `${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. +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. To configure the snapshot interval or the number of retained snapshots, refer to the [options.](#options) From d175c147cb496b396d4cee4047dfe1878c54b2f3 Mon Sep 17 00:00:00 2001 From: Jen Travinski Date: Fri, 5 Nov 2021 17:50:45 -0400 Subject: [PATCH 4/4] Update content/k3s/latest/en/backup-restore/_index.md Co-authored-by: Brad Davidson --- content/k3s/latest/en/backup-restore/_index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/k3s/latest/en/backup-restore/_index.md b/content/k3s/latest/en/backup-restore/_index.md index 68febf6a094..8120488cbaa 100644 --- a/content/k3s/latest/en/backup-restore/_index.md +++ b/content/k3s/latest/en/backup-restore/_index.md @@ -30,7 +30,7 @@ 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 `${data-dir}/server/db/snapshots`. Note that the `/var/lib/rancher/k3s` prefix can be changed by setting the `--data-dir` flag. +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)