change cp with tar

This commit is contained in:
Alexey Ukhov 2020-03-24 10:20:53 +07:00
parent ba21581030
commit 1e9a58a799

2
docker_clone_volume.sh Normal file → Executable file
View file

@ -47,4 +47,4 @@ docker run --rm \
-t \
-v $1:/from \
-v $2:/to \
alpine ash -c "cd /from ; cp -av . /to"
alpine ash -c "cd /from && tar cf - . | (cd /to && tar xvf -)"