Tip #8: How to Export Resource Gallery Items using the Site Deployment API
To automate the process of transporting objects from one server to another, we use the Site Deployment API (SDAPI), which creates export packages containing channels and postings that have been modified since the last deployment.
While exporting channels and postings satisfies the requirements of most websites, many sites make use of resources without postings. Common examples include sites that provide a listing of resources from a channel rendering script, such as a list of documents within a resource gallery. Or perhaps there are links to specific resources from parts of the site, like the company’s logo or a site-wide help file. Such links are often found in user controls or web forms. In either case, you will require resources not linked to postings to be exported.
One constraint the SDAPI has is that it does not export resources directly. Only resources that are used by postings modified between the last deployment...