Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

vovscorp13/snap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

1 option

#Stop the service and move the validator file

  sudo systemctl stop nolusd
  cp $HOME/.nolus/data/priv_validator_state.json $HOME/.nolus/priv_validator_state.json.backup

#Delete a folder

  rm -rf $HOME/.nolus/data

#Cloning a Snapshot

  git clone git clone https://github.com/vovscorp13/snap

#Unzip the snapshot to a folder

   lz4 -d nolus_01_03_23_17_56.tar.lz4 | tar -xv -C $HOME/.nolus

#Move the validator file and start the service

   mv $HOME/.nolus/priv_validator_state.json.backup $HOME/.nolus/data/priv_validator_state.json

   sudo systemctl start nolusd

   sudo journalctl -u nolusd -f --no-hostname -o cat

2 option (windows-server)

#Install WinSCP on a local PC (https://winscp.net/eng/download.php)

#Download the file from the cloud (https://cloclo13.cloud.mail.ru/attach/nolus/nolus_01_03_23_17_56.tar.lz4)

#Connect to the server via WinSCP and download the downloaded file to home directory #In server stop the service and move the validator file

  sudo systemctl stop nolusd
  cp $HOME/.nolus/data/priv_validator_state.json $HOME/.nolus/priv_validator_state.json.backup

#Delete a folder

  rm -rf $HOME/.nolus/data

#Unzip the snapshot to a folder

   lz4 -d nolus_01_03_23_17_56.tar.lz4 | tar -xv -C $HOME/.nolus

#Move the validator file and start the service

   mv $HOME/.nolus/priv_validator_state.json.backup $HOME/.nolus/data/priv_validator_state.json

   sudo systemctl start nolusd

   sudo journalctl -u nolusd -f --no-hostname -o cat

How to take a snapshot

#We stop the service and archive the folder, having previously moved the validator file. sudo systemctl stop nolusd

   cp $HOME/.nolus/data/priv_validator_state.json $HOME/.nolus/priv_validator_state.json.backup

   tar cvf - $HOME/.nolus/data | lz4 - nolussnap.tar.lz4 

#Create a snapshot folder, move the archive there and delete the old folder.

   mkdir snapshot

   mv $HOME/.nolus/data/nolussnap.tar.lz4 $HOME/snapshot

   rm -rf $HOME/.nolus/data

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published