The Data Export Import module can be used to transfer site data between Drupal sites. The module page is at:
Data Export Import module
Views data export is a module that allows you to export the data from a View into a CSV, XML and other data types.
You must first create a View Page that will display the information that you want to filter and export (You will go to the path of this page to generate the export once done). The View can be whatever display/format type that you need as it will be the interface that the user will filter by and then export data from.
Add the fields that you want to display and include in the export, then add the exposed filters that you want to filter by in order to create custom exports (user role, status, pretty much any field you need). Make sure you check "Remember Last Selection" in the exposed filters you're using.
Add a new Display and select Data Export to create the display that will serve the export. Under Format you should see "CSV File", click that to change to the desired data type. Under settings next to the file you can find file name, download options, data sanitation options, etc.Read more