<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>How it is possible to automatize pages and content exporting to LAR files ?</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121682066" />
  <subtitle>How it is possible to automatize pages and content exporting to LAR files ?</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121682066</id>
  <updated>2026-04-04T22:42:11Z</updated>
  <dc:date>2026-04-04T22:42:11Z</dc:date>
  <entry>
    <title>RE: RE: How it is possible to automatize pages and content exporting to LAR files ?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121683926" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121683926</id>
    <updated>2023-03-30T17:34:01Z</updated>
    <published>2023-03-30T17:34:00Z</published>
    <summary type="html">&lt;p&gt;Those kinds of things are not easy... A single instance or a single
  site, those are truly problematic...&lt;/p&gt;
&lt;p&gt;The instance is an obvious fail - there is no way to export/import an
  instance because export/import only works at a &lt;em&gt;site&lt;/em&gt; level. I
  would say that if you need to be able to restore individual instances,
  they should be in separate servers so you can just restore the server
  and the instance w/o impacting any others.&lt;/p&gt;
&lt;p&gt;A single site, that is almost as hard. The LAR export/import is
  really the only option, but it is going to be an untrustworthy one at
  that, especially if you are not completely deleting the site before
  trying to import the LAR.&lt;/p&gt;
&lt;p&gt;Individual assets? I'd likely restore the DB into a non-prod environ,
  find the individual asset and try the LAR export from there and import
  into the target environment, but again this is not something that is
  guaranteed to work and will require care setting up the environ to
  restore from since the LAR export/import requires that both sides be
  the exact same version, down to the last detail.&lt;/p&gt;
&lt;p&gt;Document library for a single site? Well this is probably the ugliest
  of all because you have to coordinate the restore of whatever you're
  using as the underlying document store (i.e. your filesystem or S3
  bucket or whatever) along with the DB restore before you can even
  think about a LAR export...&lt;/p&gt;
&lt;p&gt;Ideally though if you are using Liferay the way Liferay intends,
  these kinds of things should not be required:&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;Web content and documents are versioned, so nothing is lost when
    you create new ones and you can always revert to an older version.&lt;/li&gt;
  &lt;li&gt;Workflow can be used to approve individual assets before they go
    live, so you have a chance to reject possible changes that you would
    otherwise have to restore later on.&lt;/li&gt;
  &lt;li&gt;Staging and publications can be used to preview page changes
    before they go live, so if you don't like or approve the changes,
    they won't go live and there's nothing to have to restore.&lt;/li&gt;
  &lt;li&gt;Finally, don't treat content like a development activity by
    creating it in non-prod environments and plan to move it to the
    production environment; do all of your content work directly in production.&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;When you can fully adopt &lt;em&gt;The Liferay Way&lt;/em&gt;, your issues about
  restoring instances, sites, assets or document libraries all tend to
  fall away. And in cases where there is some asset to restore or a
  document to recover or something, these become outliers that point to
  a problem in your review process (or lack of review process).&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2023-03-30T17:34:00Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: How it is possible to automatize pages and content exporting to LAR files ?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121683040" />
    <author>
      <name>Alla Sapozhnikova</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121683040</id>
    <updated>2023-03-30T17:07:07Z</updated>
    <published>2023-03-30T17:07:06Z</published>
    <summary type="html">&lt;p&gt;What we need is an ability to restote not the whole Liferay
  installation, but a Liferay instance or a single site or a single
  assey for a single site, like a documnet library for a single site.
  How should we go about doing that?&lt;/p&gt;</summary>
    <dc:creator>Alla Sapozhnikova</dc:creator>
    <dc:date>2023-03-30T17:07:06Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: How it is possible to automatize pages and content exporting to LAR files ?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121683872" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121683872</id>
    <updated>2023-03-30T16:45:47Z</updated>
    <published>2023-03-30T16:45:46Z</published>
    <summary type="html">&lt;p&gt;For DR, you're better w/ a full database backup and also replication
  to your remote DR database.&lt;/p&gt;
&lt;p&gt;As far as the use cases for LARs, I think they are pretty small and
  rather narrow, although I don't think we have any official
  documentation for how to use them.&lt;/p&gt;
&lt;p&gt;They can help move simple assets between environments, but even that
  can sometimes be challenging when there is an object graph (i.e. you
  have a web content with 5 embedded images, if you include all 5 it can
  load into a clean environment but it can be a challenge when loading
  into an environment that already has 3 of the 5 images).&lt;/p&gt;
&lt;p&gt;Interestingly, staging is based on lar export/import, but there is
  enhanced logic in there for selecting the right assets to publish in
  conjunction with better conflict resolution...&lt;/p&gt;
&lt;p&gt;Me, I've never seen a stable, long term process based on LAR
  export/import that didn't at some point end in serious failure... I
  don't advocate using them really at all because I just always expect disaster.&lt;/p&gt;
&lt;p&gt;It's the reason that I wrote that &amp;quot;Content Creation is Not a
  Development Activity&amp;quot; blog post in order to share Liferay's view
  of how to handle content and steer folks away from trying to use LAR export/import...&lt;/p&gt;</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2023-03-30T16:45:46Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: How it is possible to automatize pages and content exporting to LAR files ?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121682991" />
    <author>
      <name>Alla Sapozhnikova</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121682991</id>
    <updated>2023-03-30T16:35:43Z</updated>
    <published>2023-03-30T16:35:39Z</published>
    <summary type="html">&lt;p&gt;For what use case were the LARs created?&lt;/p&gt;
&lt;p&gt;We were thinking about using the LARs for disaster recovery. But you
  are right, they really break for seemingly no reason.&lt;/p&gt;
&lt;p&gt;What does Liferay recommend to use the LARs for?&lt;/p&gt;</summary>
    <dc:creator>Alla Sapozhnikova</dc:creator>
    <dc:date>2023-03-30T16:35:39Z</dc:date>
  </entry>
  <entry>
    <title>RE: How it is possible to automatize pages and content exporting to LAR files ?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121683825" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121683825</id>
    <updated>2023-03-30T16:02:20Z</updated>
    <published>2023-03-30T16:02:19Z</published>
    <summary type="html">&lt;p&gt;There is no OOTB way to do this.&lt;/p&gt;
&lt;p&gt;And most of the time, you really shouldn't consider doing this
    anyway: &lt;a href="https://liferay.dev/blogs/-/blogs/content-creation-is-not-a-development-activity-"&gt;https://liferay.dev/blogs/-/blogs/content-creation-is-not-a-development-activity-&lt;/a&gt;&lt;/p&gt;</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2023-03-30T16:02:19Z</dc:date>
  </entry>
  <entry>
    <title>How it is possible to automatize pages and content exporting to LAR files ?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121682065" />
    <author>
      <name>A B</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121682065</id>
    <updated>2023-04-21T16:10:53Z</updated>
    <published>2023-03-29T11:18:31Z</published>
    <summary type="html">&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;How it is possible to automatize of exporting site pages and content
  to LAR files ?&lt;/p&gt;
&lt;p&gt;If someone here have sample to use API to export pages and content or
  an other way to do that?&lt;/p&gt;
&lt;p&gt;​​​​​​​( any other way than using the menu Site Menu&lt;br&gt;
  ​​​​​​​https://learn.liferay.com/w/dxp/site-building/sites/exporting-importing-site-pages-and-content#exporting-site-pages-and-content  )&lt;/p&gt;
&lt;p&gt;Thanks by advance&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>A B</dc:creator>
    <dc:date>2023-03-29T11:18:31Z</dc:date>
  </entry>
</feed>
