Skip to content
This repository has been archived by the owner on Apr 5, 2021. It is now read-only.

Latest commit

 

History

History
79 lines (57 loc) · 2.54 KB

BOOTSTRAP_FILES.md

File metadata and controls

79 lines (57 loc) · 2.54 KB

Blockchain Bootstrap Files

MongoDB bootstrap files comes in 2 flavors:

mongoexport

Raw JSON file exports, human readable and can be imported into any specified database and collection.

After extracted, you can choose to import JSON objects manually (through db.collection.insert()) or via mongoimport:

  • Example usage:
mongoimport -d DATABASE_NAME -c COLLECTION_NAME --file IMPORT_FILE.json

Mainnet block 1 - 1,000,000

Mainnet block 1,000,001 - 2,000,000

Mainnet block 2,000,001 - 2,500,000

Mainnet block 2,500,001 - 3,000,000

 

mongodump

MongoDB archive file that can be used to restore an entire database via mongorestore.

  • Example usage:
mongorestore --gzip --archive=BACKUP_FILE.archive.gz

Mainnet up to block 2,980,149