[opencms-dev] Export/Import site while keeping the 'unpublished' flags

Mathias Lin | SYSVISION mail at mathiaslin.com
Thu Nov 19 05:36:42 CET 2009


Thanks Michael,
this approach does the job.
M.


Michael Emmerich-2 wrote:
> 
> Mathias,
> 
> when you want to migrate from OpenCms 6 to 7 as well, you should try the 
> following:
> 
> 
> 1) Go to the ONLINE project and export your content with the Database 
> Adminstration. This will make an export file that only contains the 
> content that was already published.
> 
> 2) Now switch to the project where you have made the changes that are 
> not published yet. In the Database Adminstration, mark the checkbox 
> "Changed in project". This should only export those files that are 
> changed or new in the current project you just have selected.
> 
> You then have two export files. Import the first one in your new system 
> and publish everything.
> Then create a project for the the unpublished files, switch to it and 
> import the second export fiel you made.
> 
> If you want to migrate modules, you MUST always do this with the module 
> export/import. You can later add changed module resoruces as described in
> 2)
> 
> 
> Hope this helps
> 
> Kind regards,
> Michael Emmerich
> 
> -------------------
> Michael Emmerich
> 
> Alkacon Software GmbH  - The OpenCms Experts
> http://www.alkacon.com - http://www.opencms.org
> 
> 
> Mathias Lin | SYSVISION schrieb:
>> Thanks for the hint. 
>> I forgot to mention, they're different OpenCms versions. Want to migrate
>> 6.2.3 ->7.5.1.
>> The db structure of v6 and v7 differs from each other. So DB dump
>> wouldn't
>> work in my case.
>> 
>> 
>> 
>> Isaac R. Higgins wrote:
>>>
>>> if you're using MySQL, do a DB dump from the old system and load it into
>>> the new one and configure your new installation to point to the loaded
>>> data... I've done it several times without issue.
>>>
>>> -----Original Message-----
>>> From: opencms-dev-bounces at opencms.org on behalf of Mathias Lin |
>>> SYSVISION
>>> Sent: Wed 11/18/2009 6:24 AM
>>> To: opencms-dev at opencms.org
>>> Subject: [opencms-dev] Export/Import site while keeping the
>>> 'unpublished'
>>> flags
>>>  
>>>
>>> I want to migrate a site from one OpenCms server to another, while in
>>> the
>>> old
>>> server/site, some files have not yet been published.
>>> Is there any way to migrate the site to a new OpenCms server while
>>> keeping
>>> the published flag for the files (and having the previously published
>>> files
>>> available under the online project)?
>>>
>>> Module im/export obviously wouldn't work since all files would get
>>> published.
>>>
>>> Doing an DB export/import via OpenCms admin and adding the module
>>> manually
>>> into opencms-modules.xml also wouldn't work since after the import into
>>> a
>>> clean OpenCms installation, there wouldn't be any files under the online
>>> project and all files under the offline project would be unpublished.
>>>
>>> Therefore my question, is it possible at all? If so, any best practice?
>>>
>>>
>>> -----
>>> Mathias Lin
>>> SYSVISION Ltd., China
>>> http://www.sysvision.com
>>> -- 
>>>
>>>
>> 
>> 
>> -----
>> Mathias Lin
>> SYSVISION Ltd., China
>> http://www.sysvision.com
> 
> -- 
> Kind Regards,
> Michael.
> 
> -------------------
> Michael Emmerich
> 
> Alkacon Software GmbH  - The OpenCms Experts
> http://www.alkacon.com - http://www.opencms.org
> 


-----
Mathias Lin
SYSVISION Ltd., China
http://www.sysvision.com
-- 
View this message in context: http://old.nabble.com/Export-Import-site-while-keeping-the-%27unpublished%27-flags-tp26406169p26420299.html
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.




More information about the opencms-dev mailing list