Skip to content
Snippets Groups Projects
Commit d852b244 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Make backup-one-task more robust against hung servers.

* backup-one-task: Use BatchMode and ServerAliveInterval when fetching
  the exclude file, to avoid hangs.
parent efcf20fb
No related branches found
No related tags found
No related merge requests found
2007-10-18 Per Cederqvist <ceder@shafan.lysator.liu.se>
Make backup-one-task more robust against hung servers.
* backup-one-task: Use BatchMode and ServerAliveInterval when
fetching the exclude file, to avoid hangs.
2007-08-09 Per Cederqvist <ceder@ryttargardskyrkan.se>
The "start immediately if the previous backup took more than 24
......
......@@ -158,6 +158,7 @@ then
# Fetch an up-to-date exclude file.
rm -f "$exclude"
scp -B -q -i /root/.ssh/backupkey \
-o BatchMode=yes -o ServerAliveInterval=120 \
"$server":"$serverpath"/.lysrdiff-exclude "$exclude" >/dev/null 2>&1
# Create an emtpy exclude file if non existed on the server.
touch "$exclude"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment