From 20af7096a2dd3acad73ad04406ea334b3ece2030 Mon Sep 17 00:00:00 2001 From: Riku Rouvila Date: Thu, 27 Jun 2024 11:13:31 +0300 Subject: [PATCH 1/2] Fix elasticsearch directories getting nested in the backup restoration source directory --- infrastructure/backups/download.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure/backups/download.sh b/infrastructure/backups/download.sh index 0d87a1783..b9ed2bd35 100644 --- a/infrastructure/backups/download.sh +++ b/infrastructure/backups/download.sh @@ -106,7 +106,7 @@ for BACKUP_DIR in /data/backups/*; do done -mv $BACKUP_RAW_FILES_DIR/extract/elasticsearch /data/backups/elasticsearch +mv $BACKUP_RAW_FILES_DIR/extract/elasticsearch/* $BACKUP_RAW_FILES_DIR/extract/elasticsearch/.* /data/backups/elasticsearch/ mv $BACKUP_RAW_FILES_DIR/extract/influxdb /data/backups/influxdb/${LABEL} mv $BACKUP_RAW_FILES_DIR/extract/minio/ocrvs-${LABEL}.tar.gz /data/backups/minio/ From 338db387b28d14bd4a2da29d8be6b629af7cf7c7 Mon Sep 17 00:00:00 2001 From: Riku Rouvila Date: Thu, 27 Jun 2024 11:34:43 +0300 Subject: [PATCH 2/2] Update infrastructure/backups/download.sh Co-authored-by: Tameem Bin Haider --- infrastructure/backups/download.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure/backups/download.sh b/infrastructure/backups/download.sh index b9ed2bd35..b2c2d1bdb 100644 --- a/infrastructure/backups/download.sh +++ b/infrastructure/backups/download.sh @@ -106,7 +106,7 @@ for BACKUP_DIR in /data/backups/*; do done -mv $BACKUP_RAW_FILES_DIR/extract/elasticsearch/* $BACKUP_RAW_FILES_DIR/extract/elasticsearch/.* /data/backups/elasticsearch/ +mv $BACKUP_RAW_FILES_DIR/extract/elasticsearch/* /data/backups/elasticsearch/ mv $BACKUP_RAW_FILES_DIR/extract/influxdb /data/backups/influxdb/${LABEL} mv $BACKUP_RAW_FILES_DIR/extract/minio/ocrvs-${LABEL}.tar.gz /data/backups/minio/