Funktioniert - im Docker

This commit is contained in:
2019-04-04 21:16:18 +02:00
parent 0af306aafb
commit 348666572e
5 changed files with 34 additions and 9 deletions

View File

@@ -26,6 +26,6 @@ fi
if [ $2 != "" ]
then
dat=`date +%Y%m%d%H%M`
ssh $2 "docker tag $1 $1:V_$dat"
docker save $1 | bzip2 | pv | ssh $2 'bunzip2 | docker load'
ssh -p 22022 $2 "docker tag $1 $1:V_$dat"
docker save $1 | bzip2 | pv | ssh -p 22022 $2 'bunzip2 | docker load'
fi