Update _index.md

At least in  CentOS 7 :z is needed to make it work. Source: https://stackoverflow.com/questions/24288616/permission-denied-on-accessing-host-directory-in-docker
This commit is contained in:
Kestas
2019-03-05 11:22:04 -08:00
committed by Denise
parent 944342d4b4
commit 0f63728fd4
@@ -54,7 +54,7 @@ This procedure creates a backup that you can restore if Rancher encounters a dis
1. <a id="tarball"></a>From the data container that you just created (`rancher-data-<DATE>`), create a backup tarball (`rancher-data-backup-<RANCHER_VERSION>-<DATE>.tar.gz`). Use the following command, replacing each [placeholder](#before-you-start).
```
docker run --volumes-from rancher-data-<DATE> -v $PWD:/backup alpine tar zcvf /backup/rancher-data-backup-<RANCHER_VERSION>-<DATE>.tar.gz /var/lib/rancher
docker run --volumes-from rancher-data-<DATE> -v $PWD:/backup:z alpine tar zcvf /backup/rancher-data-backup-<RANCHER_VERSION>-<DATE>.tar.gz /var/lib/rancher
```
**Step Result:** A stream of commands runs on the screen.