When running restore of a backup file, in localmode, an "unexpected" location is used for the data directory.
Use the data directory EXIST_HOME/data in stead of EXIST_HOME/../data
Run
bin\backup.bat -r full20190409-0300.zip -ouri=xmldb:exist:/// -R -q -P "password"
the data directory is actually written in the directory exist-distribution\target\data in stead of exist-distribution\target\exist-distribution-5.0.0-RC8-SNAPSHOT-dir
the current directory is exist-distribution\target\exist-distribution-5.0.0-RC8-SNAPSHOT-dir
Please always add the following information
I thought we were going to get rid of EXIST_HOME (and good riddance) so then the exist-distribution\target\data makes somewhat more sense. But i m sure there are standard project layout rules to consider. @adamretter ?
sorry, i referred EXIST_HOME as the location where eg the BIN directory is in. Please provide a better name if it is too confusing. it was not $EXIST_HOME :-)
The issue is, as reported, that the directory is one directory level off. I had no time yet to debug.
when -Dexist.home is set, the correct 'data' location is used....
Update: in the Configurator I see a relative path passing by ../data but this is relative to EXIST_HOME (still used!), instead of EXIST_HOME/etc where the conf.xml data is in these days.
That is as far as I got with the debugger until now.
confirmed.
Most helpful comment
confirmed.