How do I restore the WordPress loop from a backup?

Use your backup plugin restore wizard or import database and files manually. Update siteurl/home URLs if the domain changed, then flush permalinks.