Update entrypoint.sh
Browse files21 unmodified lines2223242526272820 unmodified lines49505152535421 unmodified lines# STEP 1: RESTORE (Try, but continue if bucket empty)# ============================================echo '=== [STEP 1] RESTORING DATA FROM BUCKET ==='if hf sync "$BUCKET" "$SOURCE" --delete 2>/dev/null; thenecho '=== [STEP 1] RESTORE COMPLETE ==='elseecho '=== [STEP 1] Restore skipped (bucket empty or failed - continuing anyway) ==='20 unmodified linesexit 1fi# Real-time continuous sync (no interval - continuous!)hf sync "$SOURCE" "$BUCKET" --deletedone21 unmodified lines2223242526272820 unmodified lines49505152535421 unmodified lines# STEP 1: RESTORE (Try, but continue if bucket empty)# ============================================echo '=== [STEP 1] RESTORING DATA FROM BUCKET ==='if hf sync "$BUCKET" "$SOURCE" --delete --exclude ".npm/*" --exclude ".cache/*" 2>/dev/null; thenecho '=== [STEP 1] RESTORE COMPLETE ==='elseecho '=== [STEP 1] Restore skipped (bucket empty or failed - continuing anyway) ==='20 unmodified linesexit 1fi# Real-time continuous sync with exclusionshf sync "$SOURCE" "$BUCKET" --delete --exclude ".npm/*" --exclude ".cache/*"done
entrypoint.sh+4-4