From 8b3b788974aa0f245f28204083f5c8b88a71decb Mon Sep 17 00:00:00 2001 From: Sheppy Date: Sun, 22 Dec 2024 22:28:00 +0000 Subject: [PATCH] fix: add missing ssh-add --- roles/backup-vm/templates/slapd_backup.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/backup-vm/templates/slapd_backup.sh b/roles/backup-vm/templates/slapd_backup.sh index 8e8c86d..8a1e800 100644 --- a/roles/backup-vm/templates/slapd_backup.sh +++ b/roles/backup-vm/templates/slapd_backup.sh @@ -3,6 +3,9 @@ set -e DIR=/home/sheppy/slapd_backup +eval `ssh-agent` +ssh-add ~/.ssh/id_rsa + cd rsync -r --remove-source-files sheppy@192.168.122.112:$DIR /home/sheppy