From 0ac75ff93a007ee12ccc641a84f1e1f70b691808 Mon Sep 17 00:00:00 2001 From: Aleksander Wasaznik Date: Tue, 13 Sep 2016 21:13:46 +0200 Subject: [PATCH] Use tar to deploy --- deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 deploy.sh diff --git a/deploy.sh b/deploy.sh old mode 100644 new mode 100755 index 70d37d8..3d8de6d --- a/deploy.sh +++ b/deploy.sh @@ -3,5 +3,5 @@ # It will upload all files not ignored by git files_not_ignored="$(git status --short | grep ^? | cut -d\ -f2- ; git ls-files)" -scp -r $files_not_ignored root@brzeczyszczykiewicz.pvv.ntnu.no:~grzegorz/grzegorz -ssh root@brzeczyszczykiewicz.pvv.ntnu.no systemctl restart grzegorz \ No newline at end of file +tar -c $files_not_ignored | ssh grzegorz@brzeczyszczykiewicz.pvv.ntnu.no tar -xC ~grzegorz/grzegorz +ssh root@brzeczyszczykiewicz.pvv.ntnu.no "systemctl restart grzegorz"