Implement rudimentary wikitext renderer and buff deploy_archives script to be able to deploy the wiki archive, as well as sql/sqlite/xml data dumps.

This commit is contained in:
2020-08-17 01:51:09 -05:00
parent 0b1320a9da
commit 54fa852897
7 changed files with 121 additions and 31 deletions

View File

@@ -6,13 +6,15 @@ cd archives
scp index.html style.css $HOSTNAME:$ARCHIVE_PATH
if [ -d "forums" ]; then
tar -cf forums.tar forums && gzip -f forums.tar
scp forums.tar.gz $HOSTNAME:$ARCHIVE_PATH
cat ../forum/structure.sql ../forum/categories.sql ../forum/boards.sql ../forum/threads.sql ../forum/misc_data.sql > forums.sql
cp ../forum/forum.sqlite forums.sqlite # forum or forums?
tar -cf forums.tar forums && gzip -f forums.tar forums.sqlite forums.sql
scp forums.sql.gz forums.sqlite.gz forums.tar.gz $HOSTNAME:$ARCHIVE_PATH
ssh $HOSTNAME "cd $ARCHIVE_PATH; tar -xf forums.tar.gz"
fi;
if [ -d "wiki" ]; then
tar -cf wiki.tar wiki && gzip -f wiki.tar
scp wiki.tar.gz $HOSTNAME:$ARCHIVE_PATH
tar -cf wiki.tar wiki && gzip -f wiki.tar wiki.xml
scp wiki.xml.gz wiki.tar.gz $HOSTNAME:$ARCHIVE_PATH
ssh $HOSTNAME "cd $ARCHIVE_PATH; tar -xf wiki.tar.gz"
fi;