diff options
author | Erich Eckner <git@eckner.net> | 2017-01-13 12:11:20 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-01-13 12:11:20 +0100 |
commit | 91984d8aad163a6cde7000309f90e673c3b79cc9 (patch) | |
tree | 4dd7699f66774c9db044121be2303234c45013c6 | |
parent | 5eee0d912824b37c2aa69353a676c5e4e641d518 (diff) | |
download | hardlinkedBackups-91984d8aad163a6cde7000309f90e673c3b79cc9.tar.xz |
backup: only ping if backup is from remote
-rwxr-xr-x | backup.in | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -64,7 +64,10 @@ else usage fi -ping -c1 ${QuellIP} > /dev/null || exit 11 +if [ -n "${QuellIP}" ] +then + ping -c1 ${QuellIP} > /dev/null || exit 11 +fi if [ -n "${HoppIP}" ] then ping -c1 ${HoppIP} > /dev/null || exit 11 |