diff --git a/content/rancher/v2.x/en/backups/backups/single-node-backups/_index.md b/content/rancher/v2.x/en/backups/backups/single-node-backups/_index.md index 10d6b1e9747..381a66bdff6 100644 --- a/content/rancher/v2.x/en/backups/backups/single-node-backups/_index.md +++ b/content/rancher/v2.x/en/backups/backups/single-node-backups/_index.md @@ -21,29 +21,40 @@ After completing your single node installation of Rancher, we recommend creating ``` docker stop ``` - You can obtain the name for your Rancher container by entering `docker ps`. + You can obtain the name for your Rancher container by entering `docker ps`. ![Stop Rancher Container]({{< baseurl >}}/img/rancher/docker-container-ps-output.png) 1. Using the command below, create a data container from the Rancher container you just stopped. - - Replace `` with the name from the previous step (our example uses `festive_mestorf`). - - Replace `` with the version of Rancher that you are currently running, as mentioned in the [Prerequisite](#prereq) (`v2.0.5` in our example). - - Replace `` with tag of your Rancher image (`v2.0.5` in our example). - - ``` + ``` docker create --volumes-from --name rancher-data- rancher/rancher: ``` -1. From the data container that you just created (`rancher-data-`), create a backup tarball (`rancher-data-backup-.tar.gz`). + Replace each of the command placeholders using help from the table below. + + + + Placeholder | Example | Description + ---------|----------|--------- + `` | `festive_mestorf` | The name of your [Rancher container](#placeholders). + `` | `v2.0.5` | The [version](#prereq) of Rancher run in your container. + `` | `v2.0.5` | The [rancher/rancher image](#placeholders) you pulled for install. +
+ ![Backup Data Container]({{< baseurl >}}/img/rancher/backup-container.png) + +1. From the data container that you just created (`rancher-data-`), create a backup tarball (`rancher-data-backup-.tar.gz`). Use the following command, replacing each [placeholder](#ref-table). ``` docker run --volumes-from rancher-data- -v $PWD:/backup alpine tar zcvf /backup/rancher-data-backup-.tar.gz /var/lib/rancher ``` -1. Enter the `dir` command to confirm that the backup tarball was created. + **Step Result:** A stream of commands runs on screen. +1. Enter the `dir` command to confirm that the backup tarball was created. It will have a name similar to `rancher-data-backup-`. -1. Restart Rancher Server. Replace `` with the name of your Rancher container. + ![Backup Backup Tarball]({{< baseurl >}}/img/rancher/dir-backup-tarball.png) + +1. Restart Rancher Server. Replace `` with the name of your [Rancher container](#placeholders). ``` docker start diff --git a/src/img/rancher/backup-container.png b/src/img/rancher/backup-container.png new file mode 100644 index 00000000000..e1fce01bd2c Binary files /dev/null and b/src/img/rancher/backup-container.png differ diff --git a/src/img/rancher/create-backup-tarball.png b/src/img/rancher/create-backup-tarball.png new file mode 100644 index 00000000000..e659d50f351 Binary files /dev/null and b/src/img/rancher/create-backup-tarball.png differ diff --git a/src/img/rancher/dir-backup-tarball.png b/src/img/rancher/dir-backup-tarball.png new file mode 100644 index 00000000000..eeb2a4687e6 Binary files /dev/null and b/src/img/rancher/dir-backup-tarball.png differ