From 19a6d241465926bd98386d23d164c529da49d25a Mon Sep 17 00:00:00 2001 From: Sheppy Date: Mon, 22 Jul 2024 19:08:24 +0000 Subject: [PATCH] fix: explicitly switch to home dir --- roles/backup-vm/templates/slapd_backup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/backup-vm/templates/slapd_backup.sh b/roles/backup-vm/templates/slapd_backup.sh index e771cd8..1640a69 100644 --- a/roles/backup-vm/templates/slapd_backup.sh +++ b/roles/backup-vm/templates/slapd_backup.sh @@ -3,6 +3,8 @@ set -e DIR=/home/sheppy/slapd_backup +cd + rsync -r --remove-source-files sheppy@192.168.122.112:$DIR /home/sheppy ~/backups/backup-tools/backup_manager.py --extensions ldif -- $DIR