Kaballas commited on
Commit
5bcd78e
·
verified ·
1 Parent(s): 08aa66f

Update copy-storage.sh

Browse files
Files changed (1) hide show
  1. 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..."