ooff… I may have several issues.
@vmassol: The link you provided says to either specify the permanent directory by configuring the servlet directly (not sure how). On this Centos VPS, the tomcat service is started with the following systemd file (comments removed for clarity):
Description=Apache Tomcat Web Application Container
and the tomcat.conf file (/etc/tomcat/tomcat.conf) (comments removed for clarity)
export CATALINA_OPTS="-Xmx2048m -Xms1024m"
export JAVA_OPTS="-Xmx2048m -Xms1024m"
Alternatively, the permanent directory property can be set in “xwiki.properties”. Mine resides in “/var/lib/tomcat/webapps/xwiki/WEB-INF/xwiki.properties”
This is how I would like to do it. Looking into this file, I dont see where the property “environment.permanentDirectory” could have been setup. Every line containing “environment.permanentDirectory” is currently commented out. So my understanding is that XWiki uses the temp folder specified in the Systemd script (i.e. /var/cache/tomcat/temp)/.
Looking in that temp folder I see what may be xwiki extensions.
> [root@centosvps sshuser]# ls -l /var/cache/tomcat/temp
> total 0
> drwxr-xr-x 3 tomcat tomcat 16 Jun 29 13:05 1593450338908-0
> drwxr-xr-x 3 tomcat tomcat 16 Jun 30 15:24 1593545080442-0
> drwxr-xr-x 4 tomcat tomcat 26 Jun 30 15:47 1593546464788-0
> drwxr-xr-x 4 tomcat tomcat 26 Jun 30 15:47 1593546464799-0
> drwxr-xr-x 4 tomcat tomcat 26 Jun 30 15:55 1593546909871-0
> drwxr-xr-x 3 tomcat tomcat 16 Jun 30 15:55 1593546911418-0
If this is indeed the temp folder xwiki uses, how do I change it without wiping the entire install and restarting fresh? I’d like to store permanent data under /var/www/html/ as I already backup this folder containing other websites on a daily basis.
To backup xwiki completely and restore should this VPS crash entirely, should I also backup the following folders in addition to the extensions folder (the one discussed on #1)?
What about the database? It uses MySQL but is there anything other than the permanent directory where wiki page data may be stored?
The Admin Guide (link provided by @vmassol) indicates that looking at the logs should help in determining the current permanent directory. I cannot look at the logs. “/var/log/tomcat/catalina.out” is empty, and within xwiki, under “Global Administration > Logging”, I dont see the actual logs, only what appears to be a page to set the log levels (ERROR-DEBUG…) of different log factories. Am I missing something?
Sorry for being such a hassle… I feel if I can move the install to a more permanent setup that will be better.