diff options
author | Bryan Newbold <bnewbold@archive.org> | 2022-04-07 17:08:58 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2022-04-07 17:08:58 -0700 |
commit | aace407aecf934b72263de9d1bccb20dd2093037 (patch) | |
tree | 95687dbcb487f84a9739cf08fa551bc94000f319 /extra | |
parent | 87445479e1a8ed9f6caeeb4999c377df908e2f4a (diff) | |
download | fatcat-scholar-aace407aecf934b72263de9d1bccb20dd2093037.tar.gz fatcat-scholar-aace407aecf934b72263de9d1bccb20dd2093037.zip |
sitemap: single-command sitemap update script
Diffstat (limited to 'extra')
-rwxr-xr-x | extra/sitemap/update_prod.sh | 11 |
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 |