mirror of
https://github.com/gdiepen/docker-convenience-scripts.git
synced 2025-04-28 10:13:41 +01:00
swap source and destination volume mapping
source volume -> /from destination volume -> /to
This commit is contained in:
parent
82f299a524
commit
300d65a2c2
1 changed files with 2 additions and 2 deletions
|
@ -45,6 +45,6 @@ echo "Copying data from source volume \"$1\" to destination volume \"$2\"..."
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
-i \
|
-i \
|
||||||
-t \
|
-t \
|
||||||
-v $2:/from \
|
-v $1:/from \
|
||||||
-v $1:/to \
|
-v $2:/to \
|
||||||
alpine ash -c "cd /to ; cp -a /from/* ."
|
alpine ash -c "cd /to ; cp -a /from/* ."
|
||||||
|
|
Loading…
Add table
Reference in a new issue