|
@@ -37,16 +37,14 @@
|
|
|
|
|
|
|
|
# Variables
|
|
# Variables
|
|
|
BACKUP_DIR="/media/yaye/nextcloud_files/backup/nc2/docker_volumes" # Change this to your desired backup directory
|
|
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
|
|
# List of volumes to restore
|
|
|
VOLUME=nc4
|
|
VOLUME=nc4
|
|
|
NEW_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
|
|
# Ensure backup directory exists
|
|
|
mkdir -p "$BACKUP_DIR"
|
|
mkdir -p "$BACKUP_DIR"
|