Hi all,
Due to a server crash, I have to restore the whole Alfresco Community (ver 5.2). I am trying to follow the guide in https://community.alfresco.com/thread/202783-backup-and-restore-procedures , but get stuck at recovery of Postgres database, since I cannot login with 'postgres' account (mine PostgreSQL is running on Centos 7). Which is the default password of 'postgres' user? anyone who knows, please help me. I am much appreciated!
Tien
Solved! Go to Solution.
Try this with root privileges:
Enter with postgres user
su - postgres
Go to the directory
cd /opt/alfresco-community/postgresql/bin/
Run bin
./psql
Insert the password (usually on the alfresco-global-properties)
> YOUR_SQL_COMMAND
>\q
Exit from postgres user
exit
If you want just do a dump then
su - postgres
cd /opt/alfresco-community/postgresql/bin/
./pg_dump -h 127.0.0.1 -U alfresco -W alfresco > /opt/alfresco/alfresco52dump.sql
for restore
./psql -h 127.0.0.1 -U alfresco -W alfresco < /opt/alfresco/alfresco52dump.sql
Try this with root privileges:
Enter with postgres user
su - postgres
Go to the directory
cd /opt/alfresco-community/postgresql/bin/
Run bin
./psql
Insert the password (usually on the alfresco-global-properties)
> YOUR_SQL_COMMAND
>\q
Exit from postgres user
exit
If you want just do a dump then
su - postgres
cd /opt/alfresco-community/postgresql/bin/
./pg_dump -h 127.0.0.1 -U alfresco -W alfresco > /opt/alfresco/alfresco52dump.sql
for restore
./psql -h 127.0.0.1 -U alfresco -W alfresco < /opt/alfresco/alfresco52dump.sql
Thanks a lot. It works fantastically!
Mark as Corrected Answer then
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.