Most of the time we use test and production server. Then we create list and libraries at test server and copy or miserably create again. To copy whole site, save as template feature is used.
When publishing feature is enabled save as template link disappear but we can reach this feature by manually using


exam. http:\\www.sharepointtest/team/_layouts/SaveTmpl.aspx