You always make a backup, after each working session.
Use that to Restore to the server.
Look at the "How To Restore External Files" readme, for whatever else you might need to do.
For instance:
Letter Templates folder, Logos and images folder, attachments, loan manager file, etc.