bk.sh: use ssh-agent

This commit is contained in:
dogeystamp 2022-07-18 20:13:08 -04:00
parent 2061e0abf5
commit 674f9226d6
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38

View File

@ -28,6 +28,9 @@ then
~/med ~/dox dogeystamp@lambda:/mnt/disk/uv/
fi
eval `ssh-agent`
ssh-add ~/.ssh/keys/lambda
if [ $ACTION = RECV ]
then
rsync -avzP --append-verify \
@ -36,3 +39,4 @@ then
dogeystamp@lambda:/mnt/disk/data/navidrome/mus/ ~/med/mus
fi
kill $SSH_AGENT_PID