How to run:
python3 ./rmrk2psql.py -i <dump_filename> -o <output_sql_filename> [-b] <start_block> [-v] <verbose_mode>
python3 ./rmrk2psql.py [-h] -i DUMP_FILENAME -o OUTPUT_SQL_FILENAME [-b START_BLOCK] [-v]
python3 ./rmrk2psql.py -i precon-lite.rmrk.link -o output_vlite.sql -v
Required arguments:
-i DUMP_FILENAME, --input DUMP_FILENAME RMRK dump file name
-o OUTPUT_SQL_FILENAME, --output OUTPUT_SQL_FILENAME Output PSQL file name
Optional arguments: -h, --help show this help message and exit
-b START_BLOCK, --block START_BLOCK Start block, 0 by default
-v, --verbose Verbose mode
Fresh dump urls:
https://gateway.pinata.cloud/ipns/precon-mkt.rmrk.app - RMRKv1
https://gateway.pinata.cloud/ipns/precon-rmrk2.rmrk.link - RMRKv2
https://gateway.pinata.cloud/ipns/precon-lite.rmrk.link - RMRK2vLite
You can also use the following bash scripts:
init_rmrk_db.sh - first run script to initialize all psql DB tables
update_rmrk_db.sh - DB update for new blocks (you can add it to launch in crontab)
You should set the following parameters for bash scripts:
pg_login="<your_pg_login>"
pg_pass="<your_pg_password>"
pg_db_name="rmrk"
pg_host="localhost"
home_dir="<your_home_directory>"
You can remove the lines in the scripts if you do not need some DB versions