diff options
author | Tharre <tharre3@gmail.com> | 2019-04-21 19:38:23 +0200 |
---|---|---|
committer | Tharre <tharre3@gmail.com> | 2019-04-21 19:44:51 +0200 |
commit | 3d3996edaf169424babc8b9da6bde6ea1051d3db (patch) | |
tree | 48865eeeafc770b9053fce9f652f2252979da580 /arch-system/borgbackup | |
parent | 090f2d964d99d78700415a0084e2170aaf148a79 (diff) | |
download | pkgbuilds-3d3996edaf169424babc8b9da6bde6ea1051d3db.tar.gz pkgbuilds-3d3996edaf169424babc8b9da6bde6ea1051d3db.tar.xz pkgbuilds-3d3996edaf169424babc8b9da6bde6ea1051d3db.zip |
arch-system: borgbackup: use proper ssh timeout
ConnectTimeout merely specifies the TCP timeout, what we really want is
ServerAliceInterval, which makes the client send a null packet every X
seconds.
Diffstat (limited to 'arch-system/borgbackup')
-rwxr-xr-x | arch-system/borgbackup | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch-system/borgbackup b/arch-system/borgbackup index 9368452..8467b16 100755 --- a/arch-system/borgbackup +++ b/arch-system/borgbackup @@ -6,7 +6,7 @@ BORG_HOST="12390@ch-s012.rsync.net" export BORG_REPO="$BORG_HOST:repos/$(hostname)" export BORG_PASSPHRASE="$(< ~/.borg_secret)" export BORG_RSH="ssh -o IdentitiesOnly=yes -o ConnectionAttempts=20 \ - -o ConnectTimeout=30 -i ~/.ssh/borg_key" + -o ServerAliveInterval=30 -i ~/.ssh/borg_key" export LC_COLLATE=C SNAPSHOT_TARGET="/.snapshots/home-$(date "+%Y-%m-%dT%H:%M:%S")" |