aboutsummaryrefslogtreecommitdiffstats
path: root/extra
diff options
context:
space:
mode:
Diffstat (limited to 'extra')
-rwxr-xr-xextra/sitemap/update_prod.sh11
1 files changed, 11 insertions, 0 deletions
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