You can manage the backups by configuring the global properties of Alfresco Community. The global properties are defined in the alfresco-global.properties file, which is stored in <Alfresco Community installation directory>/tomcat/shared/classes.
The managing backups includes
Changing the location for storing backups
Actually there are two locations for storing the backups: one for backups of live documents, while the other - for backups of archived documents (documents become archived after deletion).
To change the locations for storing backups
Stop Cameo Collaborator.
- Open for edit the alfresco-global.properties file.
- Append to the file the following lines:
# the backup path
solr.backup.alfresco.remoteBackupLocation=${dir.root}/solrBackup/alfresco
solr.backup.archive.remoteBackupLocation=${dir.root}/solrBackup/archive
- Change the paths according to your needs.
- Save and close the file.
- Start Cameo Collaborator.
Changing the number of backups to keep
Changing the number of backups helps to save the disk space used for Cameo Collaborator. You can specify the number of backups to keep for the live documents as well as for the archived documents (documents become archived after deletion).
To change the number of backups to keep
Stop Cameo Collaborator.
- Open for edit the alfresco-global.properties file.
- Append to the file the following lines:
# the number of backups to keep
solr.backup.alfresco.numberToKeep=3
solr.backup.archive.numberToKeep=3
- Change the numbers of backups according to your needs.
- Save and close the file.
- Start Cameo Collaborator.
Turning off backups saving
We highly do not recommend to turn off the backups saving! Though this helps to save the disk space used for Cameo Collaborator, in case of critical error all projects and users may be lost forever.
To turn off the backups saving you must specify any year of the future, for example, 2099, as the year for starting to make backups.
To turn off backups saving
Stop Cameo Collaborator.
- Open for edit the alfresco-global.properties file.
- Append to the file the following lines:
#Effectively turn off solr backup
solr.backup.alfresco.cronExpression=0 0 2 * * ? 2099
solr.backup.archive.cronExpression=0 0 4 * * ? 2099
- Save and close the file.
- Start Cameo Collaborator.