From 4045473e651a6c7a92c1ac74f7ba67b93de478ba Mon Sep 17 00:00:00 2001 From: Adrian Malacoda Date: Sun, 16 Aug 2020 18:51:29 -0500 Subject: [PATCH] Gzip forums.tar to save space and time. Remove verbose output to save time. --- deploy_archives | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deploy_archives b/deploy_archives index b3b54b4..53b2e68 100755 --- a/deploy_archives +++ b/deploy_archives @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/sh -x 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" \ No newline at end of file +tar -cf forums.tar forums && gzip -f forums.tar +scp forums.tar.gz $HOSTNAME:$ARCHIVE_PATH +ssh $HOSTNAME "cd $ARCHIVE_PATH; tar -xf forums.tar.gz" \ No newline at end of file