Skip to content

isabella232/epirus-migration

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

epirus-migration

This repository hosts migration scripts for the epirus blockchain explorer.

contract-registry-migration

The contract-registry-migration.sh is for migrating contract metadata files from one instance of epirus to another.

The steps for migration are as follows:

  1. Ssh onto the epirus instance you want to migration from
  2. Invoke the mongo shell with the mongo command - you may need to download the mongo client it with sudo apt install mongodb-clients
  3. Run the following query in the mongo shell:
db.metadata.files.aggregate([{ "$group": { "_id": "$metadata" } }]).map(function(e) { return e._id })
  1. Replace <CONTRACT_METADATAS> in contract-resigtry-migration.sh with the output of the previous command.
  2. Replace <SERVER_URL> in contract-resigtry-migration.sh` with the server URL of the new instance of the explorer.
  3. Run contract-resigtry-migration.sh

N.B. The script should be run on a machine that has access to the new instance of the explorer api.

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%