Add some hacky scripts to sync demos and logs from GK

This commit is contained in:
Ari Timonen 2020-10-13 23:02:10 +03:00
parent 8d31bb902f
commit 7baa8ce807
2 changed files with 9 additions and 0 deletions

7
script/shell/dl_demos.sh Executable file
View file

@ -0,0 +1,7 @@
cd /srv/ensl/files/demos/sputnik ||exit 1
lynx -cache=0 -dump -listonly "http://ensl.gk-servers.de/public/index.php?dir=demos/SPUNTIK-1/" | grep -E "(*\.gz$)|(*\.dem$)" | awk '{print $2}'|tee demlinks.txt && wget --content-disposition -nc -i demlinks.txt
rm demlinks.txt
lynx -cache=0 -dump -listonly "http://ensl.gk-servers.de/public/index.php?dir=demos/SPUNTIK-2/" | grep -E "(*\.gz$)|(*\.dem$)" | awk '{print $2}'|tee demlinks.txt && wget --content-disposition -nc -i demlinks.txt
rm demlinks.txt
lynx -cache=0 -dump -listonly "http://ensl.gk-servers.de/public/index.php?dir=demos/" | grep -E "(*\.gz$)|(*\.dem$)" | awk '{print $2}'|tee demlinks.txt && wget --content-disposition -nc -i demlinks.txt
rm demlinks.txt

2
script/shell/dl_logs.sh Executable file
View file

@ -0,0 +1,2 @@
cd /srv/ensl/files/logs/sputnik1 ||exit 1
lynx -cache=0 -dump -listonly "http://ensl.gk-servers.de/public/index.php?dir=logs/SPUTNIK-1/" | grep -E "(*\.gz$)|(*\.log$)" | awk '{print $2}'|tee links.txt && wget --content-disposition -nc -i links.txt