l sync-containers3: add rsync timeout
This commit is contained in:
parent
8a04a15a7b
commit
3918ad6cf8
@ -100,7 +100,7 @@ in {
|
|||||||
set -efux
|
set -efux
|
||||||
if /run/wrappers/bin/ping -c 1 ${ctr.name}.r; then
|
if /run/wrappers/bin/ping -c 1 ${ctr.name}.r; then
|
||||||
touch "$HOME"/incomplete
|
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
|
rm "$HOME"/incomplete
|
||||||
fi
|
fi
|
||||||
''}
|
''}
|
||||||
|
Loading…
Reference in New Issue
Block a user