Migrating Scripts

Hi

Our Production group would like to have a script to migrate everything from our Dev to another Stagging environment.

Is there any script possible to migrate everything from an environement to another one.

ie. script will import or export package, profiles, document types and rules.

I know it is possible manually but to automate everything???