Refactored syntax highlighting shortcodes into markdown
This commit is contained in:
parent
9e6bb1a3e5
commit
ea435049b3
71 changed files with 297 additions and 297 deletions
|
@ -9,9 +9,9 @@ tags:
|
|||
## The command
|
||||
|
||||
Here is how to migrate a data volume between two of your hosts. A rsync of the proper `/var/lib/docker/volumes` subfolder would work just as well, but here is a fun way to do it with docker and pipes :
|
||||
{{< highlight sh >}}
|
||||
```sh
|
||||
export VOLUME=tiddlywiki
|
||||
export DEST=10.1.0.242
|
||||
docker run --rm -v $VOLUME:/from alpine ash -c "cd /from ; tar -cpf - . " \
|
||||
| ssh $DEST "docker run --rm -i -v $VOLUME:/to alpine ash -c 'cd /to ; tar -xfp - ' "
|
||||
{{< /highlight >}}
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue