<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Transering data without root access in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/transering-data-without-root-access/m-p/97248#M28478</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Let's say I'm a site manager (I have access to all files within the site). Can I transfer all site's files&amp;nbsp;&lt;STRONG&gt;including&lt;/STRONG&gt; &lt;STRONG&gt;permissions&lt;/STRONG&gt;&amp;nbsp;and folder structures to another Alfresco server, which I'm the owner?&lt;/P&gt;</description>
    <pubDate>Sun, 05 Jan 2020 15:14:26 GMT</pubDate>
    <dc:creator>upforsin</dc:creator>
    <dc:date>2020-01-05T15:14:26Z</dc:date>
    <item>
      <title>Transering data without root access</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/transering-data-without-root-access/m-p/97248#M28478</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Let's say I'm a site manager (I have access to all files within the site). Can I transfer all site's files&amp;nbsp;&lt;STRONG&gt;including&lt;/STRONG&gt; &lt;STRONG&gt;permissions&lt;/STRONG&gt;&amp;nbsp;and folder structures to another Alfresco server, which I'm the owner?&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jan 2020 15:14:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/transering-data-without-root-access/m-p/97248#M28478</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2020-01-05T15:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Transering data without root access</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/transering-data-without-root-access/m-p/97249#M28479</link>
      <description>&lt;P&gt;Yes, but it depends either on the configuration of your system or your ability to craft some custom web script / URL calls. Every Alfresco installation has a default action called "export" which can be called by any user. This action can create a downloadable ZIP-like file (ACP = Alfresco Content Package), which can - with potentially no or only minor adaptions - be imported into another Alfresco system using a similar "import" action.&lt;/P&gt;
&lt;P&gt;Unfortunately, a default Alfresco installation does not provide a UI action to trigger either the "export" nor "import" actions. So unless your system has been configured with some customisations, e.g. by adding a 3rd-party module to provide access to those actions or having some custom configuration to enable this, you are forced to craft web script calls using any kind of HTTP / ReST client (e.g. cURL). Such a call essentially needs to "fake" the submission of a form for the action, including the necessary action parameters as specially prepared form parameters.&lt;/P&gt;
&lt;P&gt;The relevant web scripts are &lt;A href="https://github.com/Alfresco/alfresco-remote-api/blob/master/src/main/resources/alfresco/templates/webscripts/org/alfresco/repository/forms/form.post.desc.xml" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/alfresco-remote-api/blob/master/src/main/resources/alfresco/templates/webscripts/org/alfresco/repository/forms/form.post.desc.xml&lt;/A&gt; (for submitting the form) and &lt;A href="https://github.com/Alfresco/alfresco-remote-api/blob/master/src/main/resources/alfresco/templates/webscripts/org/alfresco/repository/forms/formdefinition.post.desc.xml" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/alfresco-remote-api/blob/master/src/main/resources/alfresco/templates/webscripts/org/alfresco/repository/forms/formdefinition.post.desc.xml&lt;/A&gt; (for retrieving a structured definition of the form for a specific item / action). The "item kind" will be "action", while the "item ID" will be the name of the action, e.g. "export" / "import". The form definition will list the supported parameters. Form data can be submitted in JSON format, where the "dataKey" of fields should be used to reference the corresponding parameter values.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jan 2020 19:42:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/transering-data-without-root-access/m-p/97249#M28479</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2020-01-05T19:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Transering data without root access</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/transering-data-without-root-access/m-p/97250#M28480</link>
      <description>&lt;P&gt;Thank you for your reply. Unfortunately, my system is just a default Alfresco installation.&lt;/P&gt;&lt;P&gt;I tried to craft a POST requests but I do not fully understand how does this web script work.&lt;/P&gt;&lt;P&gt;I'm using Postman, I filled "Basic Auth" tab, and in the "body" I typed:&lt;/P&gt;&lt;PRE&gt;{
     "itemKind" : "action",
     "itemId" : "export",
     "fields" : "",
     "force" : "false"
}&lt;/PRE&gt;&lt;P&gt;Of course, I got a 500 error:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;"00060014 Wrapped Exception (with status template): 00060168 An error occurred while processing the template 'When calling macro \"formDefJSON\", required parameter \"form\" (parameter #1) was specified, but had null/missing value.\n\nTip: If the parameter value expression on the caller side is known to be legally null/missing, you may want to specify a default value for it with the \"!\" operator, like paramValue!defaultValue.\n\nThe failing instruction:\n==&amp;gt; @formDefLib.formDefJSON form=form  [in template \"org/alfresco/repository/forms/formdefinition.post.json.ftl\" at line 2, column 1]'.&lt;/PRE&gt;&lt;P&gt;What should be the value of the "fields" parameter? How can I specify which site should it export?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2020 17:03:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/transering-data-without-root-access/m-p/97250#M28480</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2020-01-06T17:03:39Z</dc:date>
    </item>
  </channel>
</rss>

