<?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 Re: Bulk Filesystem Import Tool treats versions as new files in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/bulk-filesystem-import-tool-treats-versions-as-new-files/m-p/80852#M24978</link>
    <description>&lt;P&gt;After quite some investigation I figured out that the import tool expects the versioned files to be prefixed with `.#` instead of `.#.0` (see&amp;nbsp;&lt;A href="https://docs.alfresco.com/5.2/concepts/bulk-import-prepare-filesystem.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/5.2/concepts/bulk-import-prepare-filesystem.html&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;I have no clue why the `Alfresco&amp;nbsp;Bulk Filesystem Export Tool` generates files with a suffix that is incompatible with the import tool. I can't find any config option to manipulate this behaviour.&lt;/P&gt;&lt;P&gt;However, it is quite easy to fix the import directory with a bash one-liner:&lt;/P&gt;&lt;PRE&gt;find &amp;lt;exportfolder&amp;gt; -name "*.0" | while read f; do mv $f ${f%.0}; done&lt;/PRE&gt;&lt;P&gt;This basically renames every file with a `.0` suffix so that it is removed.&lt;/P&gt;&lt;P&gt;After this the versioned files were resolved and imported correctly.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Nov 2019 01:01:47 GMT</pubDate>
    <dc:creator>apiening</dc:creator>
    <dc:date>2019-11-27T01:01:47Z</dc:date>
    <item>
      <title>Bulk Filesystem Import Tool treats versions as new files</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/bulk-filesystem-import-tool-treats-versions-as-new-files/m-p/80851#M24977</link>
      <description>&lt;P&gt;I have exported a site with the Alfresco bulk export extension and enabled &lt;STRONG&gt;Export Versions&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;In the export directory I can see that there is a file like &lt;STRONG&gt;document.pdf&lt;/STRONG&gt;&amp;nbsp;for example with the metadata file&amp;nbsp;&lt;STRONG&gt;document.pdf.metadata.properties.xml.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;For a file with versions there are additional files like &lt;STRONG&gt;document.pdf.v1.0&lt;/STRONG&gt; and the corresponding&amp;nbsp;&lt;STRONG&gt;document.pdf.metadata.properties.xml.v1.0&lt;/STRONG&gt; so I assumed that the export went fine including the versions.&lt;/P&gt;&lt;P&gt;When I Import this folder into Alfresco v6.1.2 via the&amp;nbsp;&lt;STRONG&gt;Bulk Filesystem Import Tool&lt;/STRONG&gt; the import finishes without errors or warnings. However, all versioned files are imported as normal files. This is also true for the &lt;STRONG&gt;metadata.propierties.xml&amp;lt;version&amp;gt;&lt;/STRONG&gt; files, so I ended up with two files per version in addition to the initial file.&lt;/P&gt;&lt;P&gt;I would expect that the versioned files would be attached to the initial file (&lt;STRONG&gt;document.pdf&lt;/STRONG&gt; in this example) as a version.&lt;/P&gt;&lt;P&gt;Is there an option to control this behaviour that I missed?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 01:37:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/bulk-filesystem-import-tool-treats-versions-as-new-files/m-p/80851#M24977</guid>
      <dc:creator>apiening</dc:creator>
      <dc:date>2019-11-26T01:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk Filesystem Import Tool treats versions as new files</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/bulk-filesystem-import-tool-treats-versions-as-new-files/m-p/80852#M24978</link>
      <description>&lt;P&gt;After quite some investigation I figured out that the import tool expects the versioned files to be prefixed with `.#` instead of `.#.0` (see&amp;nbsp;&lt;A href="https://docs.alfresco.com/5.2/concepts/bulk-import-prepare-filesystem.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/5.2/concepts/bulk-import-prepare-filesystem.html&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;I have no clue why the `Alfresco&amp;nbsp;Bulk Filesystem Export Tool` generates files with a suffix that is incompatible with the import tool. I can't find any config option to manipulate this behaviour.&lt;/P&gt;&lt;P&gt;However, it is quite easy to fix the import directory with a bash one-liner:&lt;/P&gt;&lt;PRE&gt;find &amp;lt;exportfolder&amp;gt; -name "*.0" | while read f; do mv $f ${f%.0}; done&lt;/PRE&gt;&lt;P&gt;This basically renames every file with a `.0` suffix so that it is removed.&lt;/P&gt;&lt;P&gt;After this the versioned files were resolved and imported correctly.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 01:01:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/bulk-filesystem-import-tool-treats-versions-as-new-files/m-p/80852#M24978</guid>
      <dc:creator>apiening</dc:creator>
      <dc:date>2019-11-27T01:01:47Z</dc:date>
    </item>
  </channel>
</rss>

