Alfresco Export tool for version 6

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
jiby_jose
Member II

Alfresco Export tool for version 6

I would like to know whether there is any export tools available for Alfresco. I tried the following links:

GitHub - gsdenys/alfresco-bulk-export: Automatically exported from code.google.com/p/alfresco-bulk-e... 

GitHub - atolcd/alfresco-share-import-export 

GitHub - vprince1/alfresco-bulk-export: Automatically exported from code.google.com/p/alfresco-bulk-... 

I tried the amp installation from the above links using alfrescos module management tool. But it was not getting installed,

nor did I get some errors. I guess the ones in the links works for Alfresco 5 and below. Please let me know whether any export tool is available for Alfresco 6.0, or  how could I implement an Alfresco Export tool.

3 Replies
angelborroy
Expert

Re: Alfresco Export tool for version 6

You can use Alfresco JavaScript Console or similar.

This code should still work in Alfresco 6.

var nodeToExport = companyhome.childByNamePath("Sites/swsdp/documentLibrary");
var exportAction= actions.create("export");
exportAction.parameters['store'] = "workspace://SpacesStore";
exportAction.parameters['package-name'] = "ACPexport";
exportAction.parameters['destination'] = companyhome;
exportAction.parameters['include-children'] = true;
exportAction.parameters['include-self'] = false;
exportAction.parameters['encoding'] = "UTF-8";
exportAction.execute(nodeToExport);
Software Engineer in Alfresco Search Team.
angelborroy
Expert

Re: Alfresco Export tool for version 6

And  if you want to import the result...

var targetNodeForImport =
companyhome.childByNamePath("Sites/swsdp2/documentLibrary");
var ACPFile = companyhome.childByNamePath("ACPexport.acp");
var importAction = actions.create("import");
importAction.parameters.encoding = "UTF-8";
importAction.parameters.destination = targetNodeForImport;
importAction.execute(ACPFile);
Software Engineer in Alfresco Search Team.
jiby_jose
Member II

Re: Alfresco Export tool for version 6

Hi Angel Borroy,

I was referring this link to create a export tool.

GitHub - vprince1/alfresco-bulk-export: Automatically exported from code.google.com/p/alfresco-bulk-...

I tried the installation of Alfresco-bulk-export tool in the link in two different ways.

1. I have ACS 6.0 deployed using docker compose. What I was saying is I tried the amp(bulkexport-0.7.amp) installation of bulk export tool from the link I provided. But I was not getting it run. I was asking whether the code in the link wont work with ACS 6.

2. The second way I tried to do the Alfresco-bulk-export tool installation is:

I used the Alfresco maven archetype all-in-one, and generated one project, and I added the bulk export tool to it. But I didnt find an Alfresco maven archetype in Alfresco 6 documentation. So, what is the replacement for the Alfresco maven archetype in Alfresco 6?

I also wanna ask you, is this the right approach to implement an export tool in Alfresco 6. Or, shall I need to try a different approch to implement bulk export tool in Alfresco 6.

Thanks in advance.