AnsweredAssumed Answered

Download all documents within a site/folder along with metadata information

Question asked by kartech11 on Jul 23, 2018
Latest reply on Jul 27, 2018 by jpotts



I currently have an alfresco production instance on which I have setup my content model, sites and folders using the Share UI. 


I now am looking to bootstrap all the above and I gather that if the content model has been setup in Model Manager via the Share UI, implementing a bootstrap version of the model would not be handled well by alfresco when it starts up. 

I have about 300 -400 documents uploaded on to my production instance. 


1. I plan to locate and download the documents using the search REST API in alfresco. I would also like to get the metadata for the documents (I have aspects associated to the documents) and also store the folders where the documents were located initially. I plan to keep all of this in a temporary database somewhere

2. I plan on installing a fresh version of alfresco and then apply my bootstrap on it

3. I then plan on using the alfresco upload REST APIs to upload the documents and metadata




a.Should I use CMIS for download from old instance and REST APIs to upload the documents to a new instance?

b. I actually want to get all the documents within a folder along with its metadata. Are there any recommended REST APIs I can use to get the list of documents and its metadata?

c. Is there any better approach to download all folders and files within a site and then upload it back to another alfresco instance. This might save me going through the above approach and create the documents using some tool that alfresco allowes that I am not aware of at the minute.

d. With downloading and uploading documents using REST API approach, I plan on discarding the node Ids for the documents

e.Please let me know if the above approach has any issues or would affect alfresco search capabilities?

f. Would using CIMS be easier for this to extract document content and metadata information and storing it in temp database and then migrating them using my custom REST API. It would then index the documents as well.