Added disable flag to disable site to tar funtion
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user