Added disable flag to disable site to tar funtion

This commit is contained in:
Bram Prieshof
2020-06-12 11:54:49 +02:00
parent 03f55bca3f
commit 93a49f6ca1

View File

@@ -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