Services Dexanode
  • Mapping Networks
    • Mapping Networks
  • Mainnet
    • Planq Network
      • Installation
      • Upgrade
      • Snapshot
      • Statesync
      • CLI Cheat Sheet
    • Lambda Network
      • Installation
    • Ununifi
      • Installation
      • Manual Installation
    • Lambda Network
  • Testnet
    • CreditCoin (Polkadot)
    • BEVM Incentiviced Testnet Full Node
      • Binaries
      • Docker
    • Dymension Froopyland
      • Create Pull Request
      • Deploy NFT & Smart Contract
    • Noria
      • Installation
      • Manual Installation
      • Upgrade
      • Snapshot
      • Statesync
      • CLI Cheat Sheet
    • Artela
      • Installation
      • Manual Installation
      • Upgrade
      • Snapshot
      • Statesync
      • CLI Cheat Sheet
    • Empower
      • Installation
      • Manual Installation
      • Upgrade
      • Snapshot
      • Statesync
      • CLI Cheat Sheet
    • Cross Finance
      • Installation
      • Upgrade
      • Snapshot
      • Statesync
      • Tool and Services
    • Eclipse Testnet
      • Eclipse Testnet Bridge Quest
    • Polymer
      • Polymer With Docker
      • Polymer Challenge 4
      • Polymer Challenge 4 Gitpod
    • Risc Zero Contributed Phase 1
  • Page 2
  • Tooling Service
    • Create Custom Endpoint Cosmos
    • Create custom endpoint Initia Node
    • Create Snapshoot
  • Page
Powered by GitBook
On this page
  1. Tooling Service

Create Snapshoot

Create Directory

**change planqd to your other project cosmos

mkdir -p /var/www/snapshot/planq

Install Package

**change .plandq to your other project cosmos

sudo apt install lz4
cd $HOME/.planqd
sudo systemctl stop planqd
tar -cf - data | lz4 > /var/www/snapshot/planq/planq-snapshot-$(date +%Y%m%d).tar.lz4
sudo systemctl start planqd

Create Services

sudo cat <<EOF > /etc/nginx/sites-enabled/your_domain_name.conf
server {

        # SSL configuration
        #
        # listen 443 ssl default_server;
        # listen [::]:443 ssl default_server;
        #
        # Note: You should disable gzip for SSL traffic.
        # See: https://bugs.debian.org/773332
        #
        # Read up on ssl_ciphers to ensure a secure configuration.
        # See: https://bugs.debian.org/765782
        #
        # Self signed certs generated by the ssl-cert package
        # Don't use them in a production server!
        #
        # include snippets/snakeoil.conf;

        root /var/www/html;

        # Add index.php to the list if you are using PHP
        index index.html index.htm index.nginx-debian.html;
        server_name your_domain_name; 


        location / {
                # First attempt to serve request as file, then
                # as directory, then fall back to displaying a 404.
                # try_files $uri $uri/ =404;
                root /var/www/snapshot/;
                autoindex off;
        }
    }
EOF

**change your_domain_name.conf to your domain

Restart nginx

service nginx restart

PreviousCreate custom endpoint Initia NodeNextPage

Last updated 1 year ago

Reffer this tutorial :

https://github.com/konsortech/Node/blob/main/Mainnet/Planq/how-to-create-snapshot.md