backup script

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-29-2012 09:47 AM
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
Shouldn't I be using "/opt/local/alfresco/alfresco-3.4.d/alfresco.sh stop tomcat" instead?
Thanks
Dave
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-29-2012 11:27 AM
No, but in the subfolder /opt/alfresco/tomcat/scripts there is a ctl.sh script for stopping and starting tomcat.
/Erik
/Erik

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-30-2012 10:35 AM
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
/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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-30-2012 10:40 AM
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
/Erik
