You can export and import a website using Kentico CMS API, using the CMS.CMSImportExport.ImportProvider/ExportProvider classes. You can use the following methods:
• | public static void ImportSite(string siteName, string siteDisplayName, string siteDomain, string fullSourcePath, string websitePath) |
• | siteName - code name of the newly created website |
• | siteDisplayName - display name of the newly created website |
• | siteDomain - domain name of the newly created website |
• | fullSourcePath - physical disk path of the package with exported site |
• | websitePath - physical disk path of the website root
|
• | public static void ExportSite(string siteName, string fullExportFilePath, string websitePath, bool template) |
• | siteName - code name of the website to be exported |
• | fullExportFilePath - physical disk path of the export package |
• | websitePath - physical disk path of the website root |
• | template - if false, a .zip file containing the site will be created under fullExportFilePath (should be the full path including the .zip file name). Otherwise, the whole site will be exported to the same location (should be the full path without any file name in this case) |
Page url:
http://devnet.kentico.com/docs/5_5r2/devguide/index.html?import_and_export_of_the_web_site.htm