default_ping=1
default_local=0
default_generations=0
+default_io_timeout="1800"
default_job_pre_exec=""
default_job_post_exec=""
default_tags=""
job_pre_exec="$default_job_pre_exec"
job_post_exec="$default_job_post_exec"
tags="$default_tags"
+ io_timeout="$default_io_timeout"
# Compatibility with backup-pull(1) script: Save global values ...
pre_exec_saved="$pre_exec"
# prepare (remote) command ...
if [[ "$backup_type" == "rsync" ]]; then
- cmd="$rsync --archive"
+ cmd="$rsync --archive --timeout=$io_timeout"
[ "$compress" -ne 0 ] && cmd="$cmd --compress"
[ "$local" -eq 0 ] && cmd="$cmd --rsh=\"$ssh_cmd\""
- cmd="$cmd --delete --delete-excluded --sparse"
+ cmd="$cmd --delete-during --delete-excluded --sparse"
if [ "$VERBOSE" -gt 0 ]; then
[ "$rsync_proto" -ge 31 ] \
&& cmd="$cmd --info=progress2" \