Default ist "1", ping the remote host to check if it is alive.
Set to "0" to always force rsync(1) to start.
ssh_args_add=""
rsync_args_add=""
compress=1
ssh_args_add=""
rsync_args_add=""
compress=1
local=0
case "$system" in
local=0
case "$system" in
target="$target/$system"
mkdir -p "$target"
target="$target/$system"
mkdir -p "$target"
- if [ "$local" -eq 0 ]; then
+ if [ "$local" -eq 0 -a "$ping" -ne 0 ]; then
# Check if system is alive
ping -c 1 "$system" >/dev/null 2>&1
if [ $? -ne 0 ]; then
# Check if system is alive
ping -c 1 "$system" >/dev/null 2>&1
if [ $? -ne 0 ]; then