jbilcke-hf commited on
Commit
154ed69
·
verified ·
1 Parent(s): 2a87088

Update start.sh

Browse files
Files changed (1) hide show
  1. start.sh +4 -3
start.sh CHANGED
@@ -8,10 +8,11 @@ echo "User: $(whoami)"
8
  # Create base directory
9
  mkdir -p /data/ai-toolkit
10
 
11
- # Sync all files including frontend (but preserve node_modules and database)
 
12
  echo "Syncing codebase..."
13
- rsync -a --exclude='database' --exclude='aitk_db.db' --exclude='datasets' \
14
- /app/ai-toolkit/ /data/ai-toolkit/
15
  echo "✓ Codebase synced"
16
 
17
  # Ensure persistent directories exist
 
8
  # Create base directory
9
  mkdir -p /data/ai-toolkit
10
 
11
+ # Sync all files including frontend but important: we MUST preserve data folders
12
+ # (I had a situation where I lost precious data because I didn't had those excludes before...)
13
  echo "Syncing codebase..."
14
+ rsync -a --exclude='config' --exclude='output' --exclude='aitk_db.db' --exclude='datasets' \
15
+ /app/ /data/ai-toolkit/
16
  echo "✓ Codebase synced"
17
 
18
  # Ensure persistent directories exist