You are here

Backing up and restoring the repository

Backing up an Alfresco repository involves backing up the following:

  • The directory pointed to by the dir.root setting
  • The database Alfresco is configured to use
Note: If Solr is being used, only the following directories must be backed up from the dir.root directory:
  • contentstore directory
  • solr/workspace/ directory
  • solr/archive/ directory 
  • contentstore.deleted directory (optional)
Note: If Lucene is being used, only the following directories must be backed up from the dir.root directory:
  • contentstore directory
  • lucene-indexes directory
  • contentstore.deleted directory (optional)

To restore the backup successfully, the directory and database must be backed up as a single unit. When you restore an Alfresco backup, you must restore both the dir.root directory (only the above mentioned directories) and the Alfresco database from the same backup set. Otherwise, the repository will be corrupted.

The dir.root directory is defined in the alfresco-global.properties file. By default, this directory is named alf_data and is located within the directory where Alfresco is installed.