Badal commited on
Commit
6a21b54
·
1 Parent(s): 51c05f7

Full disk sync - no exclusions

Browse files
Files changed (1) hide show
  1. entrypoint.sh +1 -9
entrypoint.sh CHANGED
@@ -23,10 +23,6 @@ export PATH="$OP_PATH:$PATH"
23
  # ============================================
24
  echo '=== [STEP 1] RESTORING DATA FROM BUCKET ==='
25
  hf sync "$BUCKET" "$SOURCE" \
26
- --exclude 'bun/*' \
27
- --exclude '.bun/*' \
28
- --exclude '*/cache/*' \
29
- --exclude 'node_modules/*' \
30
  || { echo 'CRITICAL: Restore failed! Exiting to prevent bucket wipe!'; exit 1; }
31
  echo '=== [STEP 1] RESTORE COMPLETE ==='
32
 
@@ -51,13 +47,9 @@ while true; do
51
  exit 1
52
  fi
53
 
54
- # Sync local TO bucket (backup)
55
  echo "$(date): Syncing backup..."
56
  hf sync "$SOURCE" "$BUCKET" \
57
- --exclude 'bun/*' \
58
- --exclude '.bun/*' \
59
- --exclude '*/cache/*' \
60
- --exclude 'node_modules/*' \
61
  --delete
62
 
63
  if [ $? -eq 0 ]; then
 
23
  # ============================================
24
  echo '=== [STEP 1] RESTORING DATA FROM BUCKET ==='
25
  hf sync "$BUCKET" "$SOURCE" \
 
 
 
 
26
  || { echo 'CRITICAL: Restore failed! Exiting to prevent bucket wipe!'; exit 1; }
27
  echo '=== [STEP 1] RESTORE COMPLETE ==='
28
 
 
47
  exit 1
48
  fi
49
 
50
+ # Sync local TO bucket (backup) - full disk sync
51
  echo "$(date): Syncing backup..."
52
  hf sync "$SOURCE" "$BUCKET" \
 
 
 
 
53
  --delete
54
 
55
  if [ $? -eq 0 ]; then