From aace407aecf934b72263de9d1bccb20dd2093037 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 7 Apr 2022 17:08:58 -0700 Subject: sitemap: single-command sitemap update script --- extra/sitemap/update_prod.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 extra/sitemap/update_prod.sh diff --git a/extra/sitemap/update_prod.sh b/extra/sitemap/update_prod.sh new file mode 100755 index 0000000..c26dabe --- /dev/null +++ b/extra/sitemap/update_prod.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +set -euo pipefail + +export SCHOLARREPLICAHOST=wbgrp-svc500.us.archive.org + +cd /srv/fatcat_scholar/sitemap +/srv/fatcat_scholar/src/extra/sitemap/work_urls_query.sh +/srv/fatcat_scholar/src/extra/sitemap/access_urls_query.sh +/srv/fatcat_scholar/src/extra/sitemap/generate_sitemap_indices.py +scp *.txt *.xml $SCHOLARREPLICAHOST:/srv/fatcat_scholar/sitemap -- cgit v1.2.3