mirror of https://github.com/docker/docs.git
Update inaccurate section headers for backing up/restoring volumes (#13860)
* Change section headers for backing up/restoring volumes to use "volume" instead of "container" The section headers "Backup a container" and "Restore container from backup" are used as headers for sections that are actually about backing up and restoring volumes. * Minor style update Co-authored-by: Usha Mandya <47779042+usha-mandya@users.noreply.github.com>
This commit is contained in:
parent
0b0b7050e5
commit
309ebe05e8
|
@ -519,7 +519,7 @@ Notice the `addr` option is required if using a hostname instead of an IP so doc
|
|||
Volumes are useful for backups, restores, and migrations. Use the
|
||||
`--volumes-from` flag to create a new container that mounts that volume.
|
||||
|
||||
### Backup a container
|
||||
### Back up a volume
|
||||
|
||||
For example, create a new container named `dbstore`:
|
||||
|
||||
|
@ -540,7 +540,7 @@ $ docker run --rm --volumes-from dbstore -v $(pwd):/backup ubuntu tar cvf /backu
|
|||
When the command completes and the container stops, we are left with a backup of
|
||||
our `dbdata` volume.
|
||||
|
||||
### Restore container from backup
|
||||
### Restore volume from backup
|
||||
|
||||
With the backup just created, you can restore it to the same container, or
|
||||
another that you made elsewhere.
|
||||
|
|
Loading…
Reference in New Issue