mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2025-12-08 23:04:35 +00:00
wallets now do list of survex files
This commit is contained in:
31
noinfo/walletscripts/scp-index-pages.sh
Normal file
31
noinfo/walletscripts/scp-index-pages.sh
Normal file
@@ -0,0 +1,31 @@
|
||||
#/bin/sh
|
||||
# Because wallets.py carefully re-sets the timestamp for the generated walletindex.html files to be the same as the contents.json,
|
||||
# there is no way for rsync to recognise that new pages have been generated. So I use this scp script to update them
|
||||
# on the server after running wallets.py on my home machine
|
||||
# 2020-01-01 Philip Sargent
|
||||
# 2022-03-25 also coopying contents.json as I have updated soem of them
|
||||
|
||||
date >scp-log.txt
|
||||
start=$SECONDS
|
||||
|
||||
# copy myself
|
||||
scp scp-index-pages.sh expo@expo.survex.com:expofiles/surveyscans/ >>../scp-log.txt
|
||||
|
||||
# to do, add in seconds the number of days since 1970. Hmm.
|
||||
|
||||
for i in 2012 2013 2014 2015 2016 2017 2018 2019; do
|
||||
#for i in 2019; do
|
||||
echo $i
|
||||
echo $i >>scp-log.txt
|
||||
cd $i
|
||||
for j in `ls -d ${i:0:4}*` ; do
|
||||
echo $i/$j
|
||||
scp $j/walletindex.html expo@expo.survex.com:expofiles/surveyscans/$i/$j >>../scp-log.txt
|
||||
scp $j/contents.json expo@expo.survex.com:expofiles/surveyscans/$i/$j >>../scp-log.txt
|
||||
done
|
||||
cd ..
|
||||
duration=$(( SECONDS - start ))
|
||||
echo $duration seconds so far
|
||||
done
|
||||
duration=$(( SECONDS - start ))
|
||||
echo $duration seconds overall
|
||||
Reference in New Issue
Block a user