Fórum

Temp Directory

Christian Schefer, modificado 11 Anos atrás.

Temp Directory

New Member Postagens: 19 Data de Entrada: 27/05/11 Postagens Recentes
Hello,

I have an easy question. I'm thinking it can be possible but i need to be secure.

I'm making some scripts to my CentOS for automatically restart services, cleanup and backup all portal files and databases.

I wan't know if i can delete all of the content in:
- /liferay/tomcat/work/Catalina
- /liferay/tomcat/temp
- /liferay/tomcat/logs

Then start the services again.

I'm using Liferay 5.2.3

Thanks in advance!
thumbnail
Shinn Lok, modificado 11 Anos atrás.

RE: Temp Directory

Junior Member Postagens: 89 Data de Entrada: 14/01/11 Postagens Recentes
That is fine provided that you don't need the logs.
Christian Schefer, modificado 11 Anos atrás.

RE: Temp Directory

New Member Postagens: 19 Data de Entrada: 27/05/11 Postagens Recentes
Shinn Lok:
That is fine provided that you don't need the logs.


Thanks Shinn,

I will backup the logs files before deleting and restarting. Just for fresh backups every day.

Thanks!
thumbnail
David H Nebinger, modificado 11 Anos atrás.

RE: Temp Directory

Liferay Legend Postagens: 14914 Data de Entrada: 02/09/06 Postagens Recentes
Christian Schefer:
- /liferay/tomcat/work/Catalina


The work directory doesn't contain any real data, it just contains compiled JSP classes and the like. Deleting this directory is not a problem, but it's really detrimental to performance...
Christian Schefer, modificado 11 Anos atrás.

RE: Temp Directory

New Member Postagens: 19 Data de Entrada: 27/05/11 Postagens Recentes
David H Nebinger:
Christian Schefer:
- /liferay/tomcat/work/Catalina


The work directory doesn't contain any real data, it just contains compiled JSP classes and the like. Deleting this directory is not a problem, but it's really detrimental to performance...


Thanks for your advice,

If i restart the portal, will it compile all again on startup process or when a user access?
thumbnail
Romeo Sheshi, modificado 11 Anos atrás.

RE: Temp Directory

Junior Member Postagens: 35 Data de Entrada: 09/05/12 Postagens Recentes
Yes it will compile it again. exclude them from the backup without deleting them

Christian Schefer:
David H Nebinger:
Christian Schefer:
- /liferay/tomcat/work/Catalina


The work directory doesn't contain any real data, it just contains compiled JSP classes and the like. Deleting this directory is not a problem, but it's really detrimental to performance...


Thanks for your advice,

If i restart the portal, will it compile all again on startup process or when a user access?