crontab -l > /tmp/crontab-backup
echo "" >> /tmp/crontab-backup
echo "# Price alerts check (daily 8am)" >> /tmp/crontab-backup
echo "0 8 * * * cd /var/www/sneakerpicks && npx tsx scripts/check-price-alerts.ts >> /var/log/sneakerpicks/price-alerts.log 2>&1" >> /tmp/crontab-backup
echo "" >> /tmp/crontab-backup
echo "# Weekly watchlist digest (Monday 9am)" >> /tmp/crontab-backup
echo "0 9 * * 1 cd /var/www/sneakerpicks && npx tsx scripts/send-watchlist-digest.ts >> /var/log/sneakerpicks/watchlist-digest.log 2>&1" >> /tmp/crontab-backup
crontab /tmp/crontab-backup
echo "Done. New crontab:"
crontab -l
