diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2025-12-28 11:16:33 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2025-12-28 11:16:33 +0200 |
| commit | 39feba1c79c1a0c2743932af35e157ba29d089d1 (patch) | |
| tree | b28c0675b58d89bb93650f0ec77c3635ab0a3dca /templates | |
| parent | b75c3a0f7b8d99600f4ae322bb28a4d7d68d7942 (diff) | |
Fix backup script
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/usr_local_bin_backup.sh.j2 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/usr_local_bin_backup.sh.j2 b/templates/usr_local_bin_backup.sh.j2 index 3c4d977..a79cdb7 100644 --- a/templates/usr_local_bin_backup.sh.j2 +++ b/templates/usr_local_bin_backup.sh.j2 @@ -174,7 +174,7 @@ cmd_prune_remote() { [[ -n "${b}" ]] || continue echo "Deleting remote: ${b}" set +e - echo "rm ${HOST_DIR}/${b}" | sftp -i "${KEYFILE}" "${USER}@${HOST}" + echo "rm ${b}" | sftp -i "${KEYFILE}" "${USER}@${HOST}" rc=$? set -e if [[ $rc -ne 0 ]]; then |
