cancel
Showing results for 
Search instead for 
Did you mean: 

Backup Alfresco

hienque
Champ in-the-making
Champ in-the-making
Hi everyone,
I want to backup all of Alfresco . I use Windows 2k8. And Alfresco will move to new server. How can I backup and restore?
12 REPLIES 12

That screenshot indicates there are memory problems.  Is there a difference in RAM between the source and destination servers? Or does the destination server have more programs running so it has less free memory even if the amount of RAM there is the same as at the source?

Also, if it's permgen, you'll want to find the tomcat startup file (on linux it's tomcat/scripts/ctl.sh, maybe look for tomcat/scripts/ctl.bat on your computer or similar, or find how startup.bat eventually starts tomcat.  In that batch file you'll probably see a JAVA_OPTS variable.  In that variable set the following:

XX:MaxPermSize=512m -Xmx1024

you may want to increase or decrease those numbers as appropriate for you.  They work for me although my max permgen size of 512MB is probably too high :-).  Works for me though, memory is cheap, headaches are expensive.

If that doesn't help (or if your values are already high) then you'll probably need to post your whole tomcat7 command line (not sure how you'd get that from windows, maybe something in the task manager?) and probably also all of alfresco.log and catalina.log.  Before posting the log files (just copy-paste them here), first stop alfresco, remove the current log files (so you'll have new log files that don't have extra content) and then start alfresco.  when it fails, stop it again and copy-paste the log file content.  Log file content could be pasted here or (maybe better) pasted on pastebin.com and you just paste the URL to the pastebin here.

hienque
Champ in-the-making
Champ in-the-making
Hi bopolissimus,
Here are alfresco.log, catalina.bat, startup.bat and catalina.bat . It has just created.
http://www.mediafire.com/?42qnqw3u8gc4lmm

bopolissimus
Confirmed Champ
Confirmed Champ
There are 2 problems there.

in alfresco.log, the errors indicate that it's not able to connect to the database.  look in your alfresco-global.properties file for the db.* parameters.  from the second server, are you able to connect to the database?  not sure how you'd test (since I don't use windows).  Probably pgadmin.  install pgadmin on that computer, and configure pgadmin to connect to your db.host at your db.port using your db.username and connecting to the db.name.  You'll have to figure out what the problem is there.  Maybe paste your db.* parameters here, but that might not help too much since whether that's correct or not will depend on your environment, which we can't see.

you still have that PermGen issue.  startup.bat calls catalina.bat.  Look at catalina.bat to see if it starts tomcat.  If not, look in there to see what .bat file it calls that starts tomcat.  When you're finally at the .bat file that starts tomcat, edit the java command line (or JAVA_OPTS, if it exists and is used in the java command line) to include the XX:MaxPermSize mentioned above.

Good luck.