Page MenuHome

elastic-dump.sh
No OneTemporary

File Metadata

Created
Sat, Dec 7, 5:44 PM

elastic-dump.sh

#!/bin/bash -e
NOW=$(date -u +'%Y%m%d-%H%M%S-UTC')
OUTFILE="/var/www/downloads/opendata-dump-${NOW}.jsonl.bz2"
cd /var/www/opendata
pipenv run python3 manage.py elastic_dump | bzip2 > ${OUTFILE}

Event Timeline