1. Once the resource is loaded and succesfully running (don't forget to run /debugscript 3 into your ingame console (F8)), just run /save and the script will do it's job.
1.1. You will be able to see the saving progress through the debugscript, which shouldn't take very long, but depends on the amount of running resources you have.
2. Once all your current resources are saved in the database, you can rely on the script for starting them whenever your server starts.
Caution:
1. To avoid any conflicts, it's recommended that you keep the resource name as startResources.