With Android it’s pretty straightforward. Use the "Backup and Restore" app which you can find under All Apps .
This app lets you backup your personal data (like Contacts, Messages, Pictures, Calendar, etc.) as well as your installed apps. If you backup everything on your SD card, you can restore the data on your new Fairphone or your next (Android) phone.