cancel
Showing results for 
Search instead for 
Did you mean: 

Import-Export Sites Alfresco 4.1

dmralfing
Champ in-the-making
Champ in-the-making
Somebody can tell me what is the most recommendable way to export/import sites between environments?. I have to create a lot of sites with their stuff - data lists, document libraries.. - again and again along different environments, so it´s going to be a nightmare doing it manually.
  I have seen two different solutions in internet:

1. Using javascript:
  http://www.ixxus.com/blog/2012/03/creating-alfresco-share-sites-javascript

2. Using Python:
  https://code.google.com/p/share-import-export/

Any other easier way to do it, or at least what of this 2 options is more recommendable? I can´t understand why something as necessary as that is not included out-of-the-box as you can export/import normal spaces, or at least it should be easier to do it!. 
Thank you so much
7 REPLIES 7

mitpatoliya
Star Collaborator
Star Collaborator
Go to Alfresco explorer
Export full site folder as ACP file
Import that in other instance at same location.

I already knew what you tell me, but f you try to export sites by ACP files with Alfresco Explorer it appears this exception message:

   <b>"This space is managed by Alfresco Share. Please use the Alfresco Share application to work with content within this space and any sub-spaces"</b>.

  Does it exist any "easy" way to export/import all the Sites in order to copy between different environments?.

mitpatoliya
Star Collaborator
Star Collaborator
Hey I have used this method even though it shows warning on UI side you still will be able to export and import the sites this way.

dmralfing
Champ in-the-making
Champ in-the-making
I have tryed with sites and is doesn´t work, while I have tested with normal folders and ir works OK. When I import it, it uploads the .ACP file in the Sites folder, but does not uncompress anything!

mitpatoliya
Star Collaborator
Star Collaborator
That's really strange.
And are there any rules created on the spaces? Or any content with custom types created inside them?
Both the instances are of same version? Are you able to import normal spaces which are not part of site?

sami080791
Champ in-the-making
Champ in-the-making
Hey, im an intern and i have a slightly similar issue. i have developed a plugin on a an open source Modeler called MODELIO, my plugin generates a web site (folder that containts html,css,js,img…) on local disk then send them via FTP to a host server. My next task is to have alfresco import and publish the generated web site.
can anyone help me !
Thx

crono40
Champ on-the-rise
Champ on-the-rise
I tried this one and it's good. It's python script that you will have to execute in command line.

https://github.com/wabson/share-import-export