Forked from delfer/gist:00448d021945205c225c3e7657410d1f
Created
March 14, 2023 04:34
-
-
Save tuananh/a63d549646dddc42f7678c97c55d658a to your computer and use it in GitHub Desktop.
Fix Sonatype Nexus OrientDB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /tmp | |
java -Xmx5g -jar /opt/sonatype/nexus/lib/support/nexus-orient-console.jar | |
CONNECT PLOCAL:/nexus-data/db/component admin admin | |
REBUILD INDEX * | |
REPAIR DATABASE --fix-graph | |
REPAIR DATABASE --fix-links | |
REPAIR DATABASE --fix-ridbags | |
REPAIR DATABASE --fix-bonsai | |
DISCONNECT | |
#Backup | |
backup database /nexus-data/db-component-backup.zip | |
#Restore | |
restore database /nexus-data/db-component-backup.zip | |
#Original console | |
curl https://s3.us-east-2.amazonaws.com/orientdb3/releases/2.2.37/orientdb-community-importers-2.2.37.tar.gz -o orientdb-community-importers-2.2.37.tar.gz | |
tar -xvf orientdb-community-importers-2.2.37.tar.gz | |
orientdb-community-importers-2.2.37/bin/console.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment