Deployment for staging and production
You should look into drush, drush deploy and especially features.  Not all Drupal configuration options are supported by features, and you will need to do some work to create a deployment process that works for you.  There is no single script that will do everything correctly for you.