Kaballas commited on
Commit
5134d95
·
verified ·
1 Parent(s): 8177a0f

Update copy-storage.sh

Browse files
Files changed (1) hide show
  1. copy-storage.sh +5 -5
copy-storage.sh CHANGED
@@ -1,12 +1,12 @@
1
  #!/bin/bash
2
 
3
- # Ensure the storage-backup directory exists
4
  mkdir -p /app/storage-backup/
5
 
6
- # Now copy the contents of /data/storage to /app/storage-backup
7
- cp -r /data/storage/* /app/storage-backup/
8
 
9
- # You can add any additional backup logic here (e.g., uploading to cloud storage)
10
 
11
  # Once the backup is done, continue with starting the application
12
- echo "Backup completed. Starting the application..."
 
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..."