Skip to main content

Node Data Snapshots

Before you start running a node, you must first sync with the network. This means your node needs to download all the headers and blocks that other nodes in the network already have. You can speed up this process by downloading the latest data snapshots from a public S3 bucket.

Here are the available snapshots directories based on node type and network. Please note that the snapshots are updated every 12 hours.

Node Type and NetworkS3 Path
RPC testnets3://near-protocol-public/backups/testnet/rpc/latest
RPC mainnets3://near-protocol-public/backups/mainnet/rpc/latest
Archival testnets3://near-protocol-public/backups/testnet/archive/latest
Archival mainnets3://near-protocol-public/backups/mainnet/archive/latest

If you've initialized the working directory for your node without passing in a preferred location, the default working directory for your node is ~/.near. It is recommended that you wget and untar into a data folder under ~/.near/. The new ~/.near/data is where your node will store historical states and write its state. To use the default location, run the following commands.

First, please install AWS CLI:

$ sudo apt-get install awscli -y

Then, download the snapshot using the AWS CLI:

$ aws s3 --no-sign-request cp s3://near-protocol-public/backups/{mainnet|testnet}/{rpc|archive}/latest .
$ LATEST=$(cat latest)
$ aws s3 --no-sign-request cp --no-sign-request --recursive s3://near-protocol-public/backups/{mainnet|testnet}/{rpc|archive}/$LATEST ~/.near/data

For a faster snapshot download speed, use s5cmd, the download accelerator for S3 written in Go. For download instruction, please see

Got a question?

Ask it on StackOverflow!