Spaces:
Paused
Paused
Update copy-storage.sh
Browse files- copy-storage.sh +10 -0
copy-storage.sh
CHANGED
@@ -1,2 +1,12 @@
|
|
1 |
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
|
2 |
cp -r /data/storage/* /app/storage-backup/
|
|
|
|
|
|
|
|
|
|
|
|
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..."
|