This commit is contained in:
Luk Lu
2019-12-18 16:53:04 +08:00
parent 350906875c
commit 67715ec2e2
8 changed files with 15 additions and 11 deletions

View File

@@ -2,14 +2,14 @@ if [ $1 ]
then
LOCALPATH=$1
else
read -p "Enter localpath " LOCALPATH
read -p "Enter localpath >> " LOCALPATH
fi
if [ $2 ]
then
REMOTEPATH=$2
else
read -p "Enter user@remotehost:path " REMOTEPATH
read -p "Enter user@remotehost:path >> " REMOTEPATH
fi
echo rsync -rvz -e ssh -p 22000 --progress $LOCALPATH $REMOTEHOST