Wednesday, August 1, 2012

what is a LAR file?

The Export / Import tab allows you to export the pages you create into a single file, called a LAR (Liferay Archive). You can then import this file into any server running Liferay, and all of your pages will be copied. This is a great way to take your content from one environment (say, a development or
QA environment) and move it all in one shot to your production server.


This is also a good way to back up your site's content. You can export it to a specific location on your server which is backed up, and if you ever have to restore your site, all you need to do is import the latest LAR file. One limitation on LAR files, however, is that they are version dependent, so you can't
use an export from an old version of Liferay and import it into a newer version.

1 comment:

  1. Hi Suresh!
    In work, production server has a Liferay 6.1 CE ga2 with some pages.
    My team is new in the company, so they recived all the liferay project without documentation and the unique administrator just manages themes and a little spring projects. I'm a new developer in the team and new in Liferay technology (new in english too Xd) so I configure a local environment with the same liferay bundle (& tomcat 7), my mission is to migrate all web content made it for the administrator (who just to know make themes--no use all technology support of liferay), so I think using migration with lar files with that conditions really be easy..but in all cases, the error is the same: NPE
    Sometimes the error is different:
    When I unchecked some conditions during the export and realize the import in my local configuration, the error is frecuently:
    ---- Debugging information ----
    message : Could not call com.liferay.portal.kernel.util.UnicodeProperties.readObject()
    cause-exception : com.thoughtworks.xstream.converters.reflection.MissingFieldException
    cause-message : No field 'cache_bitmask' found in class 'com.liferay.portal.kernel.util.UnicodeProperties'
    class : com.liferay.portal.kernel.util.UnicodeProperties
    required-type : com.liferay.portal.kernel.util.UnicodeProperties
    converter-type : com.thoughtworks.xstream.converters.reflection.SerializableConverter
    path : /com.liferay.portal.model.impl.LayoutImpl/_typeSettingsProperties/map/default/cache_bitmask
    line number : 149
    class[1] : com.liferay.portal.model.impl.LayoutImpl
    converter-type[1] : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
    version : null
    --
    but when I don't unchecked options, the error is the same: NPE
    maybe you can help me?
    I was think in realize a migration to 6.2 or 7 but in my work don´t want to do that, just want to still use the old version of liferay

    ReplyDelete