Previously Tecnoteca wrote:
Dear Bahareh,
Please do the following:
let's assume the database you use is called cmdbuild
1) Stop tomcat
2) Drop database cmdbuild
3) Create a new database cmdbuild
4) Now, restore Ready2Use database:
For a database with demo data, use file database.backup:
pg_restore --username postgres --dbname cmdbuild --disable-triggers -j 5 database.backup
For an empty database, use database_empty.backup
pg_restore --username postgres --dbname cmdbuild --disable-triggers -j 5 database_empty.backup
5) Restart tomcat
resolving [pg_restore, -U, {database.user}, -h, {database.host}, -p, {database.port}, -d, {database.name}, --disable-triggers, {database.file}]
executing: [pg_restore, -U, postgres, -h, 127.0.0.1, -p, 5432, -d, cmdbuild, --disable-triggers, ./../resources/database.backup]
Password:
exit value: 0
resolving [cp, -b, {logo.file}, {splash_blue.file}, {splash_gray.file}, {webapp.root}/images/]
executing: [cp, -b, ./../resources/logo.jpg, ./../resources/splash.png, ./../resources/splash-gray.png, /opt/tomcat-8/webapps/images/]
exit value: 1
cp: l'obiettivo '/opt/tomcat-8/webapps/images/' non è una directory
Exception in thread "main" java.lang.RuntimeException: error executing command
at com.tecnoteca.cmdbuild.ready2use.Main$ExecuteShellComand.execute(Main.java:88)
at com.tecnoteca.cmdbuild.ready2use.Main.main(Main.java:228)