Langzaam herbak-script om te voorkomen dat uw server wordt overweldigd

Sorry for bumping into post, I am kind of same situation with my Discourse.

Any tips how to run this script ?

Where to create script and how to call it

Thanks in advanced