It keeps all transactions (sales, purchases, bank) but locks them read-only. Additionally there is some cleanup made on journal entries that aggregates Profit and Loss account etc.
You can undo Year End by deleting that journal entry and unlocking the period: Undo Year End
I think it would make sense to close these past years one-by-one because this will give you consistent history of year-to-year reports.