Created
July 23, 2021 15:25
-
-
Save AtHeartEngineer/3c621b6a6a1bbe05cee407be4684344b to your computer and use it in GitHub Desktop.
Geth pruning
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# RUN AS SUDO | |
systemctl stop geth && | |
sudo -u geth geth --datadir /my/data/dir snapshot prune-state && | |
systemctl start geth |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment