Skip to content

Add section: How to restore snapshots #92

@a1300

Description

@a1300

Related: #89

TODO



Restore snapshot with docker (script):

# If you run your node with docker, please follow the statements below.

#You need ~ 10GB of free space for this
sudo apt-get install zip unzip

# download
wget http://testnet.snapshots.gny.io/v2_height_2134447_09-01-2021_19_00_13.zip
unzip v2_height_2134447_09-01-2021_19_00_13.zip


sudo docker-compose --file docker-compose.yml down


# make space
sudo docker volume prune --force


# get newest image (1.0.55)
sudo docker-compose --file docker-compose.yml pull


# restore
sudo docker-compose --file docker-compose.yml up --no-start
sudo docker-compose --file docker-compose.yml start db1


sleep 10s
cat v2_height_2134447_09-01-2021_19_00_13.sql | sudo docker exec -i db1 psql -U postgres


# start again
sudo docker-compose --file docker-compose.yml up --detach

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions