Update entrypoint.sh
Browse files21 unmodified lines22232425252627282920 unmodified lines505152525353545521 unmodified lines# STEP 1: RESTORE (Try, but continue if bucket empty)# ============================================echo '=== [STEP 1] RESTORING DATA FROM BUCKET ==='# यहाँ --exclude को बिना /* के इस्तेमाल किया हैif hf sync "$BUCKET" "$SOURCE" --delete --exclude ".npm/*" --exclude ".cache/*" 2>/dev/null; thenif hf sync "$BUCKET" "$SOURCE" --delete --exclude ".npm/" --exclude ".cache/" 2>/dev/null; then echo '=== [STEP 1] RESTORE COMPLETE ==='else echo '=== [STEP 1] Restore skipped (bucket empty or failed - continuing anyway) ==='20 unmodified lines exit 1 fi # Real-time continuous sync with exclusions hf sync "$SOURCE" "$BUCKET" --delete --exclude ".npm/*" --exclude ".cache/*" # Real-time continuous sync with direct folder exclusion hf sync "$SOURCE" "$BUCKET" --delete --exclude ".npm/" --exclude ".cache/"doneentrypoint.sh+4-3