refine backup
test / pytest (push) Successful in 44s

This commit is contained in:
2026-05-04 11:03:44 +02:00
parent 13be98570d
commit b9b65838c9
+2 -3
View File
@@ -73,9 +73,8 @@ for backup_file in $(find "$BACKUP_DIR" -maxdepth 1 -type f -name 'app-*.db' | s
done
if [ -n "${BACKUP_REMOTE:-}" ]; then
remote_target=${BACKUP_REMOTE%/}/$(basename "$FINAL_BACKUP")
rclone sync "$FINAL_BACKUP" "$remote_target"
echo "Backup uploaded to remote: $remote_target"
rclone sync "$BACKUP_DIR" "${BACKUP_REMOTE%/}"
echo "Backup uploaded to remote: $BACKUP_REMOTE"
else
echo "BACKUP_REMOTE is empty; skipping remote upload"
fi