Add script to deploy the generated html archive to a server.

This commit is contained in:
2020-08-10 01:59:48 -05:00
parent f3b0319d5a
commit 0116646dd9
2 changed files with 10 additions and 1 deletions

8
deploy_archives Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/sh
HOSTNAME=glitchcity.info
ARCHIVE_PATH=/var/www/html/gclarchives
cd archives
tar -cvf forums.tar forums
scp forums.tar $HOSTNAME:$ARCHIVE_PATH
ssh $HOSTNAME "cd $ARCHIVE_PATH; tar -xvf forums.tar"