cancel
Showing results for 
Search instead for 
Did you mean: 

Backup options

andy_ukgrid
Champ in-the-making
Champ in-the-making
Hi,

  Im completely new to Alfresco, I've been looking on the wiki site for information on backup and restore. I'm trying to work out how you would restore a single file if it was accidentally removed but I can only find very basic backup and restore information regarding doing a full backup and full restore. Can anyone give me any info regarding per file restores?

thanks a lot, Andy.
11 REPLIES 11

vibhutewary
Champ in-the-making
Champ in-the-making
Hi,
Finally i have the solution.

Since i was not logging the errors, i didn't realize the problem until "Permission Denied" show after implementing log method.

Also setting the variables for the program in the scripts made it run as per schedule.

So my script looks like this after running a chmod 777  alf_script.sh :

For cron:

SHELL=/bin/bash
37 * * * * su - root -c "/opt/alf_script.sh" > /opt/oracle_script.log 2>&1   

and the alf_script.sh is:

[i]set -x
export CATALINA_HOME=/opt/alfresco/tomcat
export CATALINA_BASE=/opt/alfresco/tomcat
export JAVA_HOME=/usr/java/jdk1.6.0_04
export JRE_HOME=/usr/java/jdk1.6.0_04/jre
hostname localhost
PATH=$PATH:/opt/alfresco/bin
/opt/alfresco/tomcat/bin/startup.sh[/i]

The /opt/oracle_script.log now says:

++ export CATALINA_HOME=/opt/alfresco/tomcat
++ CATALINA_HOME=/opt/alfresco/tomcat
++ export CATALINA_BASE=/opt/alfresco/tomcat
++ CATALINA_BASE=/opt/alfresco/tomcat
++ export JAVA_HOME=/usr/java/jdk1.6.0_04
++ JAVA_HOME=/usr/java/jdk1.6.0_04
++ export JRE_HOME=/usr/java/jdk1.6.0_04/jre
++ JRE_HOME=/usr/java/jdk1.6.0_04/jre
++ hostname localhost
++ PATH=/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/alfresco/bin:/root/bin:/opt/alfresco/bin
++ /opt/alfresco/tomcat/bin/startup.sh

Regards,
Vibhu.

elibra
Champ in-the-making
Champ in-the-making
thanks, vibhutewary

I had simmilar issue - your post was helpful!