Remove cron job setup from deploy script

Backup scheduling will be handled via the Unraid User Scripts plugin
instead, which persists across reboots.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Julian Tabel
2026-02-10 12:02:35 +01:00
parent 58475d9cba
commit 0c4cc815be

View File

@@ -75,18 +75,6 @@ ssh "${UNRAID_SSH}" "
fi fi
" || error "Failed to check/create .env on Unraid." " || error "Failed to check/create .env on Unraid."
# ── Ensure daily backup cron job exists ───────────────────────────
info "Checking for backup cron job on Unraid..."
CRON_CMD="0 3 * * * ${UNRAID_DEPLOY_DIR}/backup.sh >> ${UNRAID_DEPLOY_DIR}/backups/cron.log 2>&1"
ssh "${UNRAID_SSH}" "
if ! crontab -l 2>/dev/null | grep -qF '${UNRAID_DEPLOY_DIR}/backup.sh'; then
(crontab -l 2>/dev/null; echo '${CRON_CMD}') | crontab -
echo 'Cron job installed (daily at 03:00)'
else
echo 'Cron job already exists, skipping'
fi
" || error "Failed to set up backup cron job on Unraid."
# ── Pull images and (re)start on Unraid ────────────────────────── # ── Pull images and (re)start on Unraid ──────────────────────────
info "Pulling images and starting containers on Unraid..." info "Pulling images and starting containers on Unraid..."
ssh "${UNRAID_SSH}" "cd '${UNRAID_DEPLOY_DIR}' && docker compose pull && docker compose up -d" \ ssh "${UNRAID_SSH}" "cd '${UNRAID_DEPLOY_DIR}' && docker compose pull && docker compose up -d" \