I am running eXist-db in servlet mode deployed on an WildFly 10 application server. But after redeploying the eXist-db WAR-file, all stored data is gone. So I want to change the path where the database data is stored. Currently it should be stored in "standalone/tmp/vfs/temp/..." but this dir is deleted on undeploying right?
eXist's default data directory is $EXIST_HOME/webapp/WEB-INF/data
, but it can be changed to a different directory, i.e., a directory outside the $EXIST_HOME
directory, by editing $EXIST_HOME/conf.xml
under db-connection/@files
. See the eXist documentation about the conf.xml
configuration file here: https://exist-db.org/exist/apps/doc/configuration.xml#D2.2.4.6