cancel
Showing results for 
Search instead for 
Did you mean: 

How to backup Alfresco daily and restore point in time

jack_chuong
Star Contributor
Star Contributor
Hi all,
I'm using alfresco-community-4.2.c, it is installed on Centos 6.4 64 bit server by using setup wizards.

./alfresco-community-4.2.c-installer-linux-x64.bin


Alfresco is placed in /opt/alfresco-4.2.c

pwd
/opt/alfresco-4.2.c
ls
alf_data      amps_share  libreoffice            README.txt  uninstall
alfresco.ico  awe.log     licenses               scripts     uninstall.dat
alfresco.log  bin         manager-linux-x64.run  share.log   webquickstart.log
alfresco.sh   common      postgresql             solr.log
amps          java        properties.ini         tomcat


Postgresql is started when Alfresco start

/etc/init.d/alfresco status
tomcat already running
postgresql already running

/etc/init.d/alfresco stop
Using CATALINA_BASE:   /opt/alfresco-4.2.c/tomcat
Using CATALINA_HOME:   /opt/alfresco-4.2.c/tomcat
Using CATALINA_TMPDIR: /opt/alfresco-4.2.c/tomcat/temp
Using JRE_HOME:        /opt/alfresco-4.2.c/java
Using CLASSPATH:       /opt/alfresco-4.2.c/tomcat/bin/bootstrap.jar:/opt/alfresco-4.2.c/tomcat/bin/tomcat-juli.jar
Using CATALINA_PID:    /opt/alfresco-4.2.c/tomcat/temp/catalina.pid
/opt/alfresco-4.2.c/tomcat/scripts/ctl.sh : tomcat stopped
waiting for server to shut down…. done
server stopped

/etc/init.d/alfresco start
waiting for server to start…. done
server started
/opt/alfresco-4.2.c/postgresql/scripts/ctl.sh : postgresql  started at port 5432
Using CATALINA_BASE:   /opt/alfresco-4.2.c/tomcat
Using CATALINA_HOME:   /opt/alfresco-4.2.c/tomcat
Using CATALINA_TMPDIR: /opt/alfresco-4.2.c/tomcat/temp
Using JRE_HOME:        /opt/alfresco-4.2.c/java
Using CLASSPATH:       /opt/alfresco-4.2.c/tomcat/bin/bootstrap.jar:/opt/alfresco-4.2.c/tomcat/bin/tomcat-juli.jar
Using CATALINA_PID:    /opt/alfresco-4.2.c/tomcat/temp/catalina.pid
/opt/alfresco-4.2.c/tomcat/scripts/ctl.sh : tomcat started

netstat -tupln | grep 8080
tcp        0      0 :::8080                     :::*                        LISTEN      19309/java
netstat -tupln | grep post
tcp        0      0 127.0.0.1:5432              0.0.0.0:*                   LISTEN      19288/postgres
tcp        0      0 ::1:5432                    :::*                        LISTEN      19288/postgres


I intend to backup Alfresco daily by using Bacula, backup full entire /opt/alfresco-4.2.c directory on 1:00 AM Sunday and backup incremental on weekday (from Mon to Sat). Is it enough ? Do I have to stop Alfresco service before backup job run and start Alfresco service after backup job done ?
1 REPLY 1

mrogers
Star Contributor
Star Contributor
I suggest you read the documentation for alfresco and PostgreSQL backup first.

You will need to fully stop alfresco and postgresql to do a file system level backup your way.