6 DATE=$(date -d "1 day ago" "+%Y-%m-%d")
9 OUTDIR="<%= @output_dir %>"
10 TMPDIR=$(mktemp -d -t tilelog.XXXXXXXXX)
14 export AWS_ACCESS_KEY_ID="AKIASQUXHPE7JFCFMOUP"
15 export AWS_SECRET_ACCESS_KEY="<%= @aws_key %>"
16 export AWS_REGION="eu-west-1"
18 TILEFILE="tiles-${DATE}.txt.xz"
19 HOSTFILE="hosts-${DATE}.csv"
21 nice -n 19 /opt/tilelog/bin/tilelog --date "${DATE}" --generate-success \
22 --tile "${TILEFILE}" --host "${HOSTFILE}"
24 mv "${TILEFILE}" "${HOSTFILE}" "${OUTDIR}"