Reverting changes in Drupal

I am studying Drupal 8 and planning on using it for a project in the near future. I am wondering if there are quick ways to backup and restore settings? Is there a module that does this or should I just backup the database and re-install drupal?

For example I often find myself trying out different modules and before I know it I am dealing with error messages and find myself unable to go back to a previous state. I’d like to avoid this. Suggestions?

Drupal version: 


Source: https://www.drupal.org/taxonomy/term/22/feed