summaryrefslogtreecommitdiffstats
path: root/lass/3modules
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-12-30 23:37:04 +0100
committerlassulus <lassulus@lassul.us>2022-12-30 23:37:04 +0100
commit3918ad6cf863646d4f27aabfa9e1cd28a612df47 (patch)
tree89d0855747e8c9074d83d06eac35840d5f696337 /lass/3modules
parent8a04a15a7b812ad8c7aac1ae987ac2e970f4c0ae (diff)
l sync-containers3: add rsync timeout
Diffstat (limited to 'lass/3modules')
-rw-r--r--lass/3modules/sync-containers3.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lass/3modules/sync-containers3.nix b/lass/3modules/sync-containers3.nix
index c04a7758b..16e04d743 100644
--- a/lass/3modules/sync-containers3.nix
+++ b/lass/3modules/sync-containers3.nix
@@ -100,7 +100,7 @@ in {
set -efux
if /run/wrappers/bin/ping -c 1 ${ctr.name}.r; then
touch "$HOME"/incomplete
- rsync -a -e "ssh -i $CREDENTIALS_DIRECTORY/ssh_key" --inplace container_sync@${ctr.name}.r:disk "$HOME"/disk
+ rsync -a -e "ssh -i $CREDENTIALS_DIRECTORY/ssh_key" --timeout=30 --inplace container_sync@${ctr.name}.r:disk "$HOME"/disk
rm "$HOME"/incomplete
fi
''}