Spaces:
Paused
Paused
Update start.sh
Browse files
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
|
|
|
|
| 12 |
echo "Syncing codebase..."
|
| 13 |
-
rsync -a --exclude='
|
| 14 |
-
/app/
|
| 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
|