diff options
author | Derek Stevens <nilix@nilfm.cc> | 2021-04-12 23:49:50 -0400 |
---|---|---|
committer | Derek Stevens <nilix@nilfm.cc> | 2021-04-12 23:49:50 -0400 |
commit | 3d3e74144663a4e32e0196baafc831834817d867 (patch) | |
tree | 347236aa9d166c2ef36412754a0f3b9df9172fb8 | |
parent | cfda9f62fb8d7238169ee860991ecec76a1a443e (diff) |
fix remote host and typo in help
-rwxr-xr-x | kyanite.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -16,7 +16,7 @@ helpme() { echo " DEST:" echo " Relative or absolute path for the destination to backup or restore to." echo " When backing up, this is path to the root of your kyanite backups." - echo " When retoring, this is the path to your restore destination." + echo " When restoring, this is the path to your restore destination." echo " OPTIONS:" echo " anything provided after DEST is passed as additional options to rsync," echo " e.g. '--exclude .cache'" @@ -41,7 +41,7 @@ srcDir=$1; shift; destDir=$1 -remoteHost=$(echo $destDir | awk -F : '{ print $1 }' | awk -F @ '{ print $2 }'); +remoteHost=$(echo $srcDir | awk -F : '{ print $1 }' | awk -F @ '{ print $2 }'); if [ ! -z "${remoteHost}" ]; then host=${remoteHost}; @@ -67,4 +67,4 @@ case $mode in *) helpme ;; -esac
\ No newline at end of file +esac |