Fast Migration of Latest ONO Coin Database

To quickly migrate the latest ONO Coin database from a trusted source, follow these steps:


🔄 Fast Migration of Latest ONO Coin Database

To quickly migrate the latest ONO Coin database from a trusted source, follow these steps:


✅ Step 1: Download the Latest Database Dump

Go to the ONO official backup server and download the latest .dump file:

cd ~
curl -O https://core-eu-2.ono.gg/backups/ono_core_eu_2_{YYYY-MM-DD}.dump

for exmple:

cd ~
curl -O https://core-eu-2.ono.gg/backups/ono_core_eu_2_2025-06-16.dump

Or go to https://core-eu-2.ono.gg/backups/ and download latest dump manually.


🐳 Step 2A: Restore the Dump into a PostgreSQL Docker Container

1. Identify your container name:

docker ps

Look for the name of your PostgreSQL container (e.g., ono-postgres).

2. Copy the dump file into the container:

docker cp ono_core_eu_2_2025-06-16.dump ono-postgres:/tmp/latest.dump

3. Restore the dump:

docker exec -it ono-postgres bash
pg_restore -U postgres -d ono_db --clean --if-exists /tmp/latest.dump
exit

Replace ono_db with your actual database name if different.


🖥️ Step 2B: Restore the Dump to Local (Non-Docker) PostgreSQL

pg_restore -U postgres -d ono_db --clean --if-exists ~/ono_core_eu_2_2025-06-16.dump

Make sure your local PostgreSQL server is running and ono_db exists (create it with createdb ono_db if needed).


🚀 Step 3: Start the Core Service

If you're using Docker Compose:

docker-compose up -d core

Or if you're running the core manually:

cd /path/to/ono-core
npm start

✅ Done!

Your ONO Coin core service is now running with the latest synced database.

Last updated