Skip to content

Commit

Permalink
Merge pull request #624 from Dashboy1998/Change-restore-order
Browse files Browse the repository at this point in the history
Changed restore order so newest is first
  • Loading branch information
thijsvanloef authored Nov 17, 2024
2 parents 4a7eebc + ca49475 commit 8a940c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 8a940c1

Please sign in to comment.