website logo
Create accountLogin
Home
DCS
Node
Resources
Help center
Navigate through spaces
Home
DCS
Node
Resources
Help center
⌘K
Storj DCS
Get Started
AWS CLI and Hosted Gateway MT
AWS SDK and Hosted Gateway MT
Uplink CLI
Satellite Admin Console
Object Browser
Downloads
Download Uplink CLI
Download Self-hosted S3 Compatible Gateway
Download Storj Client Libraries
SDKs & Reference
Tutorial
How-to Guides
Concepts
Support
Support Overview
FAQ
Community Forum
Status Page
Help Desk
Billing, Payment & Accounts
Resources
Moved Documents
Docs powered by archbee 
15min

Create and host Chainstate Snapshots

Host snapshots at reduced cost when spinning up new node.

Create Storj account

After creating an account on Storj DCS, you’ll need to setup the uplink cli.

Setup uplink CLI

The uplink cli is a tool similar to aws cli that allows creation of buckets and uploading/downloading snapshots directly from the 15,000+ storage nodes. We also have an aws s3 compatible api as an alternative.

Install uplink

Linux AMD64

Shell
|


For different uplink binaries see Download Uplink CLI

Create access grant and setup uplink

Creating an access token in the Storj web console
Creating an access token in the Storj web console


Click "Continue in CLI" after giving your access grant a name

Keep the credential window open until you have completed the uplink setup command below



Run uplink setup to start the credentials prompt

Terminal
|


Enter a name for the credential (default is "main")

Copy your "API Key" from the web console to the uplink cli "Enter API key or Access grant" prompt



Copy your "Satellite Address" from the web console to the uplink cli "Satellite address" prompt



Enter a passphrase to complete the setup

Remember your Passphrase you will need it for future access of the data

Terminal
|


Create bucket

Create a bucket called snapshots

Terminal
|


Upload snapshots

Compress small files/directories to a single compressed file (e.g use tar).

Terminal
|


Use uplink cp to upload your snapshot to Storj DCS. Scale parallelism to at most 2x your thread count (16 threads = 32 parallelism)

Terminal
|


Create download access grant

For node operators in your community, you'll need to generate another access grant with limited permissions.

Create another access grant with the following limitations

  1. Check only 'Download' (leave others deselected)
  2. Select snapshots as the bucket from the dropdown


Select "Continue in Browser"

Copy the access grant in file. You'll use it later in the template below.



When populating the template, only publish the access grant that is limited to downloads. Do not use the access grant that was used to upload snapshots.

Adapt the Download blockchain snapshots template, changing <your_access_grant> fields to the Download-only access grant. The commands from the template can be published to your communities.

Updated 28 Feb 2023
Did this page help you?
Yes
No
UP NEXT
Nextcloud with Storj DCS
Docs powered by archbee 
TABLE OF CONTENTS
Create Storj account
Setup uplink CLI
Install uplink
Create access grant and setup uplink
Create bucket
Upload snapshots
Create download access grant