cancel
Showing results for 
Search instead for 
Did you mean: 

backup script

zdavid
Champ in-the-making
Champ in-the-making
I want to confirm I am doing backups correctly. (running Community version 3.4d on RH Linux & mysql) I have a script the follows the guidelines in the wiki documentation. But I noticed when stopping Alfresco if I use "/opt/local/alfresco/alfresco-3.4.d/alfresco.sh stop" it also shuts down the database and when I do the 'mysqldump' it fails cause mysql is not running (Got error: 2002: Can't connect to local MySQL server)

Shouldn't I be using "/opt/local/alfresco/alfresco-3.4.d/alfresco.sh stop tomcat" instead?

Thanks
Dave
3 REPLIES 3

billerby
Champ on-the-rise
Champ on-the-rise
No, but in the subfolder /opt/alfresco/tomcat/scripts there is a ctl.sh script for stopping and starting tomcat.

/Erik

zdavid
Champ in-the-making
Champ in-the-making
It looks like alfresco.sh also has option to stop tomcat only:

/opt/local/alfresco/alfresco-3.4.d/alfresco.sh help
usage: /opt/local/alfresco/alfresco-3.4.d/alfresco.sh help
       /opt/local/alfresco/alfresco-3.4.d/alfresco.sh (start|stop|restart|status)
       /opt/local/alfresco/alfresco-3.4.d/alfresco.sh (start|stop|restart|status) mysql
       /opt/local/alfresco/alfresco-3.4.d/alfresco.sh (start|stop|restart|status) tomcat

My question however is shouldn't we be using the 'alfresco.sh stop tomcat' option when doing a cold backup, otherwise mysqldump is not possible if we do 'alfresco.sh stop' cause it will also stop mysql.

Dave

billerby
Champ on-the-rise
Champ on-the-rise
Ok, I wasn´t aware of the tomcat option. Yes you are correct. To be able to use mysqldump the database must be running.

/Erik