This is a fork of cosmprund with some improvements:
- support pebbledb
- prune all stores of app state
- support blockstore prunning
- support tx_index prunning
# clone & build cosmprund repo
git clone https://github.com/notional-labs/cosmprund
cd cosmprund
make build
# run cosmprund
./build/cosmprund prune ~/.gaiad/data --app=cosmoshub --backend=pebbledb --blocks=362880 --versions=362880 --compact=true
Flags:
data-dir
: path to data directory if not defaultblocks
: amount of blocks to keep on the node (Default 10)versions
: amount of app state versions to keep on the node (Default 10)app
: deprecated! does not use for anything exccep some special chains.cosmos-sdk
: If pruning app state (Default true)tendermint
: If pruning tendermint data including blockstore and state. (Default true)tx_index
: set to false you dont want to prune tx_index.db (default true)compact
: set to false you dont want to compact dbs after prunning (default true)