How do I apply all the old transaction logs that weren't applied to the secondary server without having to tediously add them to the back-up device list?

The core problem is that I encountered an error stating that the transaction log that was being loaded was earlier(or later) than was is currently loadable on the database. It has this LSNXXXXX thing.

Thank you very much.