Spaces:
Running
Running
Update copy-storage.sh
Browse files- copy-storage.sh +5 -5
copy-storage.sh
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
#!/bin/bash
|
2 |
|
3 |
-
# Ensure the
|
4 |
mkdir -p /app/storage-backup/
|
5 |
|
6 |
-
#
|
7 |
-
cp
|
8 |
|
9 |
-
# You can add
|
10 |
|
11 |
# Once the backup is done, continue with starting the application
|
12 |
-
echo "
|
|
|
1 |
#!/bin/bash
|
2 |
|
3 |
+
# Ensure the backup directory exists
|
4 |
mkdir -p /app/storage-backup/
|
5 |
|
6 |
+
# Copy the SQLite database file from /storage/anythingllm.db to /app/storage-backup/
|
7 |
+
cp /storage/anythingllm.db /app/storage-backup/anythingllm.db
|
8 |
|
9 |
+
# You can add additional logic here for backup or uploading the file
|
10 |
|
11 |
# Once the backup is done, continue with starting the application
|
12 |
+
echo "Database backup completed. Starting the application..."
|