mirror of https://github.com/docker/docs.git
Fix formatting
This commit is contained in:
parent
6e95663acd
commit
355898a118
|
@ -60,16 +60,16 @@ You might find it helpful to download or back up the data from volumes that are
|
|||
|
||||
1. Run an SSH service that mounts the volumes of the service you want to back up.
|
||||
|
||||
In the example snippet below, replace `mysql` with the actual service name.
|
||||
In the example snippet below, replace `mysql` with the actual service name.
|
||||
|
||||
```
|
||||
$ docker-cloud service run -n downloader -p 22:2222 -e AUTHORIZED_KEYS="$(cat ~/.ssh/id_rsa.pub)" --volumes-from mysql tutum/ubuntu
|
||||
```
|
||||
```
|
||||
$ docker-cloud service run -n downloader -p 22:2222 -e AUTHORIZED_KEYS="$(cat ~/.ssh/id_rsa.pub)" --volumes-from mysql tutum/ubuntu
|
||||
```
|
||||
|
||||
2. Run a `scp` (secure-copy) to download the files to your local machine.
|
||||
|
||||
In the example snippet below, replace `downloader-1.uuid.cont.dockerapp.io` with the container's Fully Qualified Domain Name (FQDN), and replace `/var/lib/mysql` with the path within the container from which you want to download the data. The data will be downloaded to the current local folder.
|
||||
In the example snippet below, replace `downloader-1.uuid.cont.dockerapp.io` with the container's Fully Qualified Domain Name (FQDN), and replace `/var/lib/mysql` with the path within the container from which you want to download the data. The data will be downloaded to the current local folder.
|
||||
|
||||
```
|
||||
$ scp -r -P 2222 root@downloader-1.uuid.cont.dockerapp.io:/var/lib/mysql .
|
||||
```
|
||||
```
|
||||
$ scp -r -P 2222 root@downloader-1.uuid.cont.dockerapp.io:/var/lib/mysql .
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue