DCP Docs v0.0.1
  • Welcome
  • 🤝T4L3NT Net
    • Blockchain
      • Setting up a t4l3nt node
        • Build the Docker Image locally
        • Run a node without docker
          • Updating Node without Docker
      • Snapshots
      • Importing keys
      • Updating your t4l3nt node
      • Switching to a rolling node
      • T4L3NT Rewards distributor
      • t4l3nt Governance Overview
Powered by GitBook
On this page
  • Exporting an image
  • Importing a snapshot
  1. T4L3NT Net
  2. Blockchain

Snapshots

Instructions to import and export a snapshot from a t4l3nt node

Exporting an image

From inside the node bash session:

tlnt-node snapshot export --block <BLOCK>

If using docker you will need to copy the exported snapshot to the host like so:

docker cp <containerId>:/file/path/within/container /host/path/target

For example from host dir it would look like this:

docker cp <containerID>:/home/tlnt/TLNT_NET-BMN362FVdqj5UrApPHNBBJnCiawVzjM8aQmEYWhsRnkxVTTSmu1-1004069.full ~/TLNT_NET-BMN362FVdqj5UrApPHNBBJnCiawVzjM8aQmEYWhsRnkxVTTSmu1-1004069.full

To copy file from a remote host to local host SCP example:

$ scp username@from_host:file.txt /local/directory/

Copy file from local host to a remote host SCP example:

$ scp file.txt username@to_host:/remote/directory/

Importing a snapshot

You can use wget to download the file if it is accessible on the internet

sudo apt-get update

sudo apt-get install wget

Then

wget <https://path.to.file.fileextesion>

Example using the file below would be

wget https://loonfilms.com/tlnt.net.snapshot.6.16.22.zip

Here is an example of a snapshot from block 1004069 we will soon be doing regular snapshots and will publish the repo here when those nightly snapshots are online and ready to do.

Latest snapshot https://loonfilms.com/tlnt.net.snapshot.6.16.22.zip

Install zip with sudo apt-get update

Then

sudo apt-get install zip

Then

unzip tlnt.net.snapshot.6.16.22.zip

From inside the node bash session

tlnt-node snapshot import FILE --block <BLOCK_HASH>

Example using the file above:

tlnt-node snapshot import TLNT_NET-BMN362FVdqj5UrApPHNBBJnCiawVzjM8aQmEYWhsRnkxVTTSmu1-1004069.full --block BMN362FVdqj5UrApPHNBBJnCiawVzjM8aQmEYWhsRnkxVTTSmu1

If your node is in archive mode you will need to change it inside the tlnt-node.conf file (this example uses nano, you can use any editor like vim, vi, nano etc.

sudo nano /etc/supervisor/conf.d/tlnt-node.conf

Remove the --history archive param from line 3 and save/exit.

Then exit the node bash session

exit

docker ps

docker stop <containerID>

docker start <containerID>

docker exec -it <containerID> bash

tlnt-client bootstrapped

Once bootstrapped

supervisorctl restart all

Done.

PreviousUpdating Node without DockerNextImporting keys

Last updated 2 years ago

🤝