Skip to content

Commit

Permalink
Changed restore order so newest is first
Browse files Browse the repository at this point in the history
  • Loading branch information
Dashboy1998 committed Nov 17, 2024
1 parent 4a212bb commit a6d85fc
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 a6d85fc

Please sign in to comment.