5 DATE=$(date -d "1 day ago" "+%Y-%m-%d")
8 OUTDIR="<%= @output_dir %>"
9 TMPDIR=$(mktemp -d -t tilelog.XXXXXXXXX)
13 export AWS_ACCESS_KEY_ID="AKIASQUXHPE7JFCFMOUP"
14 export AWS_SECRET_ACCESS_KEY="<%= @aws_key %>"
15 export AWS_REGION="eu-west-1"
17 nice -n 19 /opt/tilelog/bin/tilelog --date ${DATE} && mv tiles-${DATE}.txt.xz "${OUTDIR}"