lc 1 рік тому
батько
коміт
5448a6b9fc
2 змінених файлів з 4 додано та 6 видалено
  1. 1 1
      docker-compose.yml
  2. 3 5
      restore_volumes.sh

+ 1 - 1
docker-compose.yml

@@ -96,7 +96,7 @@ services:
       - files_player1:/var/www/html/data/player1
       - files_mindy:/var/www/html/data/mindy
       - files_jennifer:/var/www/html/data/jennifer
-#      - files_player1:/var/www/html/data/michelle
+      - files_michelle:/var/www/html/data/michelle
     restart: "no" 
     environment:
       - REDIS_HOST=redis

+ 3 - 5
restore_volumes.sh

@@ -37,16 +37,14 @@
 
 # Variables
 BACKUP_DIR="/media/yaye/nextcloud_files/backup/nc2/docker_volumes"  # Change this to your desired backup directory
-TIMESTAMP="20250129_100833"  # Replace with your desired timestamp
+TIMESTAMP="20250128_225505"  # Replace with your desired timestamp
 
 
 # List of volumes to restore
 VOLUME=nc4
 NEW_VOLUME=nc4
-#VOLUMES=("${VOLUME}_files" "${VOLUME}_oo_data"  "${VOLUME}_es_index" "${VOLUME}_db" "${VOLUME}_clamav")  # Replace with your original volume names
-#NEW_VOLUMES=(${NEW_VOLUME}_files "${NEW_VOLUME}_oo_data"  "${NEW_VOLUME}_es_index" "${NEW_VOLUME}_db" "${NEW_VOLUME}_clamav")  # Replace with your new volume names
-VOLUMES=("${VOLUME}_es_index")  # Replace with your original volume names
-NEW_VOLUMES=("${NEW_VOLUME}_es_index")  # Replace with your new volume names
+VOLUMES=("${VOLUME}_files" "${VOLUME}_oo_data"  "${VOLUME}_es_index" "${VOLUME}_db" "${VOLUME}_clamav")  # Replace with your original volume names
+NEW_VOLUMES=(${NEW_VOLUME}_files "${NEW_VOLUME}_oo_data"  "${NEW_VOLUME}_es_index" "${NEW_VOLUME}_db" "${NEW_VOLUME}_clamav")  # Replace with your new volume names
 
 # Ensure backup directory exists
 mkdir -p "$BACKUP_DIR"