Add export_blocks view. Add iexport + audit table.

This commit is contained in:
mathan 2024-03-12 21:15:23 -07:00
parent e1ec43def7
commit 75386c0235
5 changed files with 142 additions and 2 deletions

View file

@ -59,12 +59,19 @@ sqldu:
# NOT RECOMMENDED TO RUN for the firts time on hot live db, will chomp all available IO. stop services first
csv-export:
@docker compose up -d postgres
@sleep 10
@nohup ./csv_export.sh > csv_export.out &
csv-iexport:
@docker compose up -d postgres
@sleep 10
@nohup ./csv_iexport.sh > csv_iexport.out &
kill-csv-export:
@kill -9 `pgrep csv_export.sh`
csv-compress:
@tar cvzf csv_export.tgz dids.csv handles.csv post_counts.csv follows.csv like_counts.csv
kill-csv-iexport:
@kill -9 `pgrep csv_iexport.sh`
# ---------------------------- CSV Export ----------------------------