Anythinhllm / copy-storage.sh
Kaballas's picture
Update copy-storage.sh
5b92649 verified
raw
history blame contribute delete
461 Bytes
#!/bin/bash
echo "Starting Database backup"
# Ensure the backup directory exists
mkdir -p /app/storage-backup/
# Copy the SQLite database file from /storage/anythingllm.db to /app/storage-backup/
cp /storage/anythingllm.db /app/storage-backup/anythingllm.db
# You can add additional logic here for backup or uploading the file
# Once the backup is done, continue with starting the application
echo "Database backup completed. Starting the application..."