Explorar o código

Corrected port variable error

Simon Royer %!s(int64=2) %!d(string=hai) anos
pai
achega
6fe9552738
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      backup.sh

+ 1 - 1
backup.sh

@@ -9,4 +9,4 @@ destusername='simon'
 destport='27022'
 
 test=$(ssh -p $vpngatewayport root@$vpngateway -C 'cat /root/home.ip')
-rsync -av -e 'ssh -p $destport' $backupsource simon@$test:$backupdest
+rsync -av -e "ssh -p $destport" $backupsource simon@$test:$backupdest