Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 4.x > Installation and deployment > Exporting objects changed after specific date View modes: 
User avatar
Member
Member
steve200309-hotmail - 3/10/2009 10:40:44 AM
   
Exporting objects changed after specific date
When exporting a site from my development environment, to load onto the production server, I only want to copy across things that have changed since a specific date.

To do this, in "Site Manager", I go to "Sites", click on export for the site I want, then enter a date & time in the "Preselect objects changed after specific date" box.

My problem is that when I then open the "cms_document.xml.export" file, to check what documents have been exported, documents that were last modified before the date I specified are still included.

Is this the intended behaviour, or should the documents exported be filtered by the specified date too?

Example:

I specified a date 7th March 2009 at 12:00 (UK time)

In "cms_document.xml.export" this is an example of a file changed before that date that is still being exported:

<DocumentNamePath>/Blog/February 2009/Kentico CMS Documentation</DocumentNamePath>
<DocumentModifiedWhen>2009-02-24T10:37:30.153+00:00</DocumentModifiedWhen> <DocumentModifiedByUserID>53</DocumentModifiedByUserID>
<DocumentForeignKeyValue>9</DocumentForeignKeyValue>
<DocumentCreatedByUserID>53</DocumentCreatedByUserID>
<DocumentCreatedWhen>2009-02-24T10:37:29.903+00:00</DocumentCreatedWhen>

Thanks for any clarification you can provide.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 3/11/2009 4:41:45 AM
   
RE:Exporting objects changed after specific date
Hi,

The incremental import export is applied only for the objects (http://www.kentico.com/docs/devguide/exporting_objects.htm).
If you are exporting whole site, all documents are included in the package. Then, when importing only new documents are imported. Existing documents are not updated.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
steve200309-hotmail - 3/11/2009 6:13:18 AM
   
RE:Exporting objects changed after specific date
Thanks for the clarification, Juraj.

At the moment I have a local copy of Kentico CMS, with a local SQL Server database. After making a batch of changes locally, I then want to import these changes into the live site (in a shared-host environment).

The problem I have, is that any text that is changed within a CMSEditableRegion in a document is then not changed on the server (because existing documents are not updated, as you explained).

Can you suggest the best way to work, so that in the example above, the text would be updated on the server?

One option would be to delete & recreate the whole shared-host site, each time, but this seems rather drastic.

I did wonder if versioning would solve the problem? In other words, if you create a new version, is this considered to be a new document, and will replace an earlier version of the same name, when imported?

Thanks for the further help.

Steve

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 3/11/2009 7:12:09 AM
   
RE:Exporting objects changed after specific date
Hi,

One options is that drastic one you mentioned.

Second option is that you will delete the page(s) on the production server (hosting server) and then import the site.

Best Regards,
Juraj Ondrus