From a6d85fc0e411883a39c4a99151e774ebc72e7f6a Mon Sep 17 00:00:00 2001 From: Dashboy1998 <18587674+Dashboy1998@users.noreply.github.com> Date: Sun, 17 Nov 2024 03:27:22 -0500 Subject: [PATCH] Changed restore order so newest is first --- scripts/restore.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/restore.sh b/scripts/restore.sh index 186b0b1ce..c179f36fa 100644 --- a/scripts/restore.sh +++ b/scripts/restore.sh @@ -42,7 +42,7 @@ fi # Show up backup list LogInfo "Backup List:" -mapfile -t BACKUP_FILES < <(find "$BACKUP_DIRECTORY_PATH" -type f -name "*.tar.gz" | sort) +mapfile -t BACKUP_FILES < <(find "$BACKUP_DIRECTORY_PATH" -type f -name "*.tar.gz" | sort -r) select BACKUP_FILE in "${BACKUP_FILES[@]}"; do if [ -n "$BACKUP_FILE" ]; then LogInfo "Selected backup: $BACKUP_FILE"