Remove unused OrientDB files - Sonatype Nexus Repository - Sonatype Community

Remove unused OrientDB files

post by fdcastel on Mar 5, 2025

I successfully completed a migration from OrientDB to the H2 database by following the instructions provided here.

Notably, step 4 states:

Copy the produced nexus.mv.db file to your $data-dir/db directory.

However, I found it unusual that there is no mention of removing the old OrientDB files.

Currently, my $data-dir/db directory contains the following:

drwxr-xr-x 2 root root     4096 Feb  3  2017 OSystem
 drwxr-xr-x 2 root root     4096 Aug 12  2019 accesslog
 drwxr-xr-x 2 root root     4096 Mar  3 15:56 analytics
 drwxr-xr-x 2 root root     4096 Jun 20  2019 audit
 drwxr-xr-x 2 root root     4096 Mar  3 15:56 component
 drwxr-xr-x 2 root root     4096 Mar  3 15:56 config
 -rw-r--r-- 1 root root        2 Mar  3 15:30 frozen.marker
 -rw-r--r-- 1 root root       93 Aug  8  2024 model.properties
 -rw-r--r-- 1 root root 19726336 Mar  4 01:45 nexus.mv.db
 drwxr-xr-x 2 root root     4096 Mar  3 15:56 security

Am I correct in assuming that only the nexus.mv.db file is necessary? And everything else is no longer in use?

Which of these files and directories can be safely removed?

post by mpiggott on Mar 5, 2025

You should be able to archive everything except the nexus.mv.db

post by fdcastel on Mar 6, 2025

Thank you, @mpiggott! Much appreciated.

P.S.: If possible, please consider updating the documentation to include this valuable information.