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