Tis allows setting of the maximum I/O timeout in seconds. If no data
is transferred for the specified time then rsync will abort.
This patch also changes the default from 900 to 1800 seconds (30 min).
The latest snapshot is always reachable using a symlink named `latest`
inside the system directory.
The latest snapshot is always reachable using a symlink named `latest`
inside the system directory.
+### [default_]io_timeout
+
+The maximum I/O timeout in seconds. If no data is transferred for the specified
+time then rsync will abort. Default: 1800 (30 minutes).
+
### [default_]tags
Comma-separated list of tags of this job. All uppercase tag names are reserved
### [default_]tags
Comma-separated list of tags of this job. All uppercase tag names are reserved
default_ping=1
default_local=0
default_generations=0
default_ping=1
default_local=0
default_generations=0
+default_io_timeout="1800"
default_job_pre_exec=""
default_job_post_exec=""
default_tags=""
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"
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"
# Compatibility with backup-pull(1) script: Save global values ...
pre_exec_saved="$pre_exec"
# prepare (remote) command ...
if [[ "$backup_type" == "rsync" ]]; then
# prepare (remote) command ...
if [[ "$backup_type" == "rsync" ]]; then
- cmd="$rsync --archive --timeout=900"
+ cmd="$rsync --archive --timeout=$io_timeout"
[ "$compress" -ne 0 ] && cmd="$cmd --compress"
[ "$local" -eq 0 ] && cmd="$cmd --rsh=\"$ssh_cmd\""
cmd="$cmd --delete-during --delete-excluded --sparse"
[ "$compress" -ne 0 ] && cmd="$cmd --compress"
[ "$local" -eq 0 ] && cmd="$cmd --rsh=\"$ssh_cmd\""
cmd="$cmd --delete-during --delete-excluded --sparse"