bk939448 commited on
Commit
a5fd804
·
verified ·
1 Parent(s): 9dfa504

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +4 -4
entrypoint.sh CHANGED
@@ -22,7 +22,7 @@ export PATH="$OP_PATH:$PATH"
22
  # STEP 1: RESTORE (Try, but continue if bucket empty)
23
  # ============================================
24
  echo '=== [STEP 1] RESTORING DATA FROM BUCKET ==='
25
- if hf sync "$BUCKET" "$SOURCE" --delete 2>/dev/null; then
26
  echo '=== [STEP 1] RESTORE COMPLETE ==='
27
  else
28
  echo '=== [STEP 1] Restore skipped (bucket empty or failed - continuing anyway) ==='
@@ -49,6 +49,6 @@ while true; do
49
  exit 1
50
  fi
51
 
52
- # Real-time continuous sync (no interval - continuous!)
53
- hf sync "$SOURCE" "$BUCKET" --delete
54
- done
 
22
  # STEP 1: RESTORE (Try, but continue if bucket empty)
23
  # ============================================
24
  echo '=== [STEP 1] RESTORING DATA FROM BUCKET ==='
25
+ if hf sync "$BUCKET" "$SOURCE" --delete --exclude ".npm/*" --exclude ".cache/*" 2>/dev/null; then
26
  echo '=== [STEP 1] RESTORE COMPLETE ==='
27
  else
28
  echo '=== [STEP 1] Restore skipped (bucket empty or failed - continuing anyway) ==='
 
49
  exit 1
50
  fi
51
 
52
+ # Real-time continuous sync with exclusions
53
+ hf sync "$SOURCE" "$BUCKET" --delete --exclude ".npm/*" --exclude ".cache/*"
54
+ done