File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed
Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -144,3 +144,5 @@ src/types
144144* -cid
145145
146146.envrc
147+
148+ ** /* .sql.gz
Original file line number Diff line number Diff line change 11network :
22 chainId : ' 1' # Ethereum Mainnet
3- endpoint : ' https://eth.api.onfinality.io/ws?apikey=${ONFINALITY_API_KEY}'
3+ endpoint : ' https://eth-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY} ' # 'https://eth .api.onfinality.io/ws?apikey=${ONFINALITY_API_KEY}'
44 # dictionary: 'https://gx.api.subquery.network/sq/subquery/eth-dictionary'
55dataSources :
66 - kind : ethereum/Runtime # PoolManager V1
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ source .envrc
4+
5+ echo " Stopping SubQL nodes..."
6+ docker compose stop subql-node-cfg subql-node-base subql-node-eth
7+
8+ echo " Creating database backup..."
9+ docker compose exec subql-db pg_dump -U ${SUBQL_DB_USER} postgres | gzip > backup_$( date +%Y%m%d_%H%M%S) .sql.gz
10+
11+ echo " Restarting SubQL nodes..."
12+ docker compose start subql-node-cfg subql-node-base subql-node-eth
13+
14+ echo " Backup complete!"
You can’t perform that action at this time.
0 commit comments