Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Christian Schefer
Temp Directory
June 1, 2012 9:14 AM
Answer

Christian Schefer

Rank: New Member

Posts: 19

Join Date: May 27, 2011

Recent Posts

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!
Shinn Lok
RE: Temp Directory
June 1, 2012 9:40 AM
Answer

Shinn Lok

LIFERAY STAFF

Rank: Junior Member

Posts: 86

Join Date: January 14, 2011

Recent Posts

That is fine provided that you don't need the logs.
Christian Schefer
RE: Temp Directory
June 1, 2012 9:50 AM
Answer

Christian Schefer

Rank: New Member

Posts: 19

Join Date: May 27, 2011

Recent Posts

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!
David H Nebinger
RE: Temp Directory
June 1, 2012 10:08 AM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 11100

Join Date: September 1, 2006

Recent Posts

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
RE: Temp Directory
June 1, 2012 10:13 AM
Answer

Christian Schefer

Rank: New Member

Posts: 19

Join Date: May 27, 2011

Recent Posts

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?
Romeo Sheshi
RE: Temp Directory
June 1, 2012 10:40 AM
Answer

Romeo Sheshi

Rank: Junior Member

Posts: 31

Join Date: May 9, 2012

Recent Posts

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?