X-Git-Url: http://git.treefish.org/~alex/backmeupscotty.git/blobdiff_plain/4e6a9bb8cabd617d7368f55fa75a08bd99ca789c..0abd94d083c743e18d7c4037a27686845aeb7d8f:/backmeupscotty diff --git a/backmeupscotty b/backmeupscotty index 35ec754..9087a17 100644 --- a/backmeupscotty +++ b/backmeupscotty @@ -178,10 +178,15 @@ function backmeupscotty { esac done + if (! ssh -q $REMOTE_HOST exit); then + scottyerror "Could not establish SSH connection to $REMOTE_HOST!" + exit 1 + fi + if isNthDay; then scottyinfo "This is the nth day." elif latestTooOld; then - scottyerror "The latest backup is too old." + scottyinfo "The latest backup is too old." else scottyinfo "No backup has to be done. Exiting." exit 0