I have Alfresco community edition 5.2 and I did backup of my database and contentstore, contentstore.deleted and solr4 folders.
Then I installed new server and want to restore content and database from previous server. I did database restore by these steps:
./alfresco.sh start postgresql // start postgresql
./psql -U postgres
DROP DATABASE alfresco;
CREATE DATABASE alfresco WITH OWNER alfresco;
./psql -U alfresco -d alfresco
ALTER USER alfresco WITH PASSWORD 'mypassword';
./pg_restore -d alfresco /home/temp/alfresco_db.tar
exit // from postgres ID
./alfresco.sh stop postgresql // stop postgresq
As I could see database restored without errors.
Also, I deleted contentstore, contentstore.deleted and solr4 folders from my new server and replaced it with folders from previous server I already backed up. But after I did reset of alfresco service and postgres service I have unchanged content in my share repository, I have nothing from my first server, content restore was not successfull.
I want to give one more notice and it is that I changed name of my shared files folder at first server, I don`t know if it can cause problems with backup/restore.
So, Is there any help for my situation.