Hello,
To continue the evaluation of ACS, I tried to backup my server, build another one and restore the data (disaster recovery!). I looked in the procedures and did not find the exact commands to do. So I proceeded by trial and error and I finally go it. That is my process but maybe I'm missing something or I could do it better ?
The database is MYSQL. The root.dir is : /opt/alfresco/
Backup :
• sudo /opt/alfresco/ctlscript.sh stop
• sudo tar -pczvf backup-alfresco-data.tar.gz /opt/alfresco/apps/alfresco/data
• sudo tar -pczvf backup-alfresco-mysql.tar.gz /opt/alfresco/mysql/data
• sudo tar -pczvf backup-alfresco-config.tar.gz /opt/alfresco/apache-tomcat/shared/classes
• sudo /opt/alfresco/ctlscript.sh startCopy the 3 files with SFTP to the second server (I use Bitvise SSH)
Restore :
• sudo /opt/alfresco/ctlscript.sh stop
• sudo rm -r /opt/alfresco/apache-solr/server/solr/alfresco/index
• sudo tar -xpzvf backup-alfresco-data.tar.gz -C /
• sudo tar -xpzvf backup-alfresco-mysql.tar.gz -C /
• sudo tar -xpzvf backup-alfresco-config.tar.gz -C /
• sudo /opt/alfresco/ctlscript.sh startYou'll notice that I don't bother to backup and restore the Index and just reset them (it seems logical to reindex after a server crash,).
Also I could do a dumpSQL but that's more commands and the database is small in comparison with the data so I don't bother.
Of course, you must also change the IP adress of the ACS server in the DNS.
That's it, a good backup an a tested restore...