Exporting the entire datatable with back-end paging


I notice that when a datatable is rendered with back-end paging, the built-in export button can only export the current page. It exports the entire table when using front-end paging though, which seems to be the desired behavior to me.

Is there any way to have the same behavior for back-end paging (e.g. can we override the export callback function) please?