Plugin Demo - Site Restore Every "x" hours?

I am getting a plugin ready for release and would like to make a demo site where users can log in as end-users or admin-users (U/P: admin/admin or user/user)

A lot of plugins have this setup, and they have it so the site gets restored to a default config (settings/posts/pages) every "x" number of hours.

What would you recommend as the best way to achieve this?