Alfresco – Exporting a whole site from Alfresco 4.2.c to Alfresco 5.0.c

Sometimes a whole Alfresco upgrading from database is not possible, so we have to export some parts from our old repository to import them in our new repository. Alfresco does not support Site export/import, due to some missing parameters in ACP files. Following lines show a process in order to export a Site from Alfresco 4.2.c and to import this Site in Alfresco 5.0.c

Alfresco 4.2.c

Let’s take an Alfresco site called “Biblioteca de Software”, with some folders, documents, members, wiki pages and links.

alfresco-export-42c-1
From alfresco web interface we can get Company Home > Sites > biblioteca-de-software and we can select Export action by using Include Children and Include this Space options.

alfresco-export-42c-2

Export file (bc-site.acp) will be generated at destination folder. This file is a ZIP file includes information related to the site, having XML files for description and BIN files for contents.

alfresco-export-42c-3

XML root file (bs-site.xml) includes metadata for the site. In order to get a perfect import process in Alfresco 5.0.c we should review several points in this XML file:

  • All namespaces must exist in Alfresco 5.0.c (for instance, if we had Google Docs module on Alfresco 4.2.c but we haven’t it on Alfresco 5.0.c we must delete all relative metadata on the XML file)
  • All users must exist in Alfresco 5.0.c, if any user does not exist will be reflected as “deleted user” after import process
  • All content names must be correct (no special characters are allowed, pay attention to encoding)

Once this XML file has been reviewed, we can re-package our ACP file and proceed to import process in Alfresco 5.0.c.

Alfresco 5.0.c

We start uploading bs-site.acp file to any Alfresco 5.0.c folder and we define a rule to perform an import operation on this folder.

alfresco-import-50c-1

Pay attention to destination folder, it must be Repository > Sites. If this rule has been defined after copying operation, we can use Run rules for this folder option in order to start the import process.

When import process has finished, we create a new site with the old name “Biblioteca de Software” but using a different URL.

alfresco-import-50c-2

Next we move all contents from the imported folder (Repository > Sites > biblioteca-de-software) to new site container (Repository > Sites > biblioteca-de-software-new). In our case, moving folders will be documentLibrary, wiki and links.

Finally, we assign site members according to original rules to the new site and we configure in the new site the same Alfresco 4.2.c pages (wiki and links). Wiki and Links content has been moved in the previous operation, so just only restoring the configuration we get access to this content. And our site “Biblioteca de Software” is now available on Alfresco 5.0.c with the same contents as it was on Alfresco 4.2.c.

alfresco-import-50c-3

Some functionalities are not provided by default in Alfresco, but it can be achieved using simple procedures. However, always is advisable to perform this kind of operations in test environments in order to detect any future problem in the real system.

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s