Export and Import Tools

Document created by resplin Employee on Jun 6, 2015
Version 1Show Document
  • View in full screen mode

Obsolete Pages{{Obsolete}}

The official documentation is at: http://docs.alfresco.com



ImportExport
The Alfresco Repository provides the ability to export its content to an 'xml package'.  This package can be used for backup, editing or transfer to another Alfresco Repository.  Currently, you need to build these tools from the source distribution - they will become part of the bundles in a future release.

This document is old.  See Export and Import for more current information.


Export


org.alfresco.tools.Export



Usage: export -user username -s[tore] store [options] packagename

username: username for login
store: the store to extract from in the form of scheme://store_name
packagename: the filename to export to (with or without extension)

Options:
-h[elp] display this help
-p[ath] the path within the store to extract from (default: /)
-d[ir] the destination directory to export to (default: current directory)
-pwd password for login
-packagedir the directory to place extracted content (default: dir/<packagename>)
-nochildren do not extract children
-overwrite force overwrite of existing export package if it already exists
-quiet do not display any messages during export
-verbose report export progress

Import


org.alfresco.tools.Import



Usage: import -user username -s[tore] store [options] packagename

username: username for login
store: the store to import into the form of scheme://store_name
packagename: the filename to import from (with or without extension)

Options:
-h[elp] display this help
-p[ath] the path within the store to import into (default: /)
-d[ir] the source directory to import from (default: current directory)
-pwd password for login
-encoding package file encoding (default: windows-1252)
-uuidBinding CREATE_NEW, REMOVE_EXISTING, REPLACE_EXISTING, UPDATE_EXISTING, THROW_ON_COLLISION (default: CREATE_NEW)
-quiet do not display any messages during import
-verbose report import progress

Package Format


The export and import tools work with a 'package'.  A package is constructed as follows:



/<packagename>.xml
/<packagename>/
   exportNNN.bin
   exportNNN.bin

The <packagename>.xml file contains all the instances, properties and associations found at the exported Repository location.  The <packagename> sub-directory contains all the content property values (e.g. binary, large content) where each exportNNN.bin file represents a content property in the Repository.  Each exportNNN.bin file is referred to by a URL within the packagename.xml file.

The XML conforms to the Alfresco Repository View Schema.  This is the format also used by the Repository bootstrap process.


Examples


Export a complete Alfresco Web Client based Repository...

Export -user admin -pwd admin -s workspace://SpacesStore -d c:/ repo

Creates...



c:/repo.xml
c:/repo/exportNNN.bin
c:/repo/...

Import the above into your own Space created under 'Company Home' called 'Import'...

Import -user admin -pwd admin -s workspace://SpacesStore -p /app:Company_Home/cm:Import -d c:/ repo


Ant Tasks


To be added...






Back to Server Administration Guide

Attachments

    Outcomes