From 93a49f6ca1138ccd11e27bfd7969c52dc96d3f99 Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Fri, 12 Jun 2020 11:54:49 +0200 Subject: [PATCH] Added disable flag to disable site to tar funtion --- Backup-Util.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Backup-Util.sh b/Backup-Util.sh index 1d5247d..b942171 100644 --- a/Backup-Util.sh +++ b/Backup-Util.sh @@ -12,7 +12,7 @@ function SiteBackup () { WPUPDATE=0 AI1=0 -TEMP=`getopt -a -o d: -l sn:,db:,sd:,ext-files:,ai1,wpupdate,nodb -- "$@"` +TEMP=`getopt -a -o d: -l sn:,db:,sd:,ext-files:,ai1,wpupdate,nodb,snotar -- "$@"` eval set -- "$TEMP" while true ; do case "$1" in @@ -48,6 +48,10 @@ while true ; do NODB=1 shift 1 ;; + --snotar ) + SNOTAR=1 + shift 1 + ;; *) break ;; @@ -83,7 +87,9 @@ if [ "$NODB" != "1" ]; then fi #Taronmogelijking SiteFiles files +if [ "$SNOTAR" != "1" ]; then tar -zcf /"$SITESENDDIR"/"$SITENAME"-Files.tar.gz $SITEDIR $SITEEF +fi #Running WP Update if [ $WPUPDATE = 1 ]; then