Index: scripts/usr/local/bin/7dtd-backup.sh
===================================================================
--- scripts/usr/local/bin/7dtd-backup.sh	(revision 1)
+++ scripts/usr/local/bin/7dtd-backup.sh	(revision 1)
@@ -0,0 +1,23 @@
+#!/bin/bash
+. /etc/7dtd.conf
+
+DT=`date "+%Y-%m-%d_%H-%M"`
+NewBackup=$SDTD_BACKUP_ROOT/$DT
+
+# Check for backup folder existence
+if [ -e $SDTD_BACKUP_ROOT ]; then
+	# Exists, copy(link) latest backup
+	unset -v LatestBackup
+	for file in "$SDTD_BACKUP_ROOT"/*; do
+		[[ $file -nt $LatestBackup ]] && LatestBackup=$file
+	done
+	$CP -al $LatestBackup $NewBackup
+else
+	# Create new backup dir
+	mkdir $SDTD_BACKUP_ROOT
+fi
+
+$RSYNC -a --delete --numeric-ids --delete-excluded $SDTD_ROOT/Data/Worlds/./ $NewBackup
+touch $NewBackup
+
+#echo "Backup folder disk usage: `$DU -sh $SDTD_BACKUP_ROOT`"
Index: scripts/usr/local/bin/7dtd-check_mem.sh
===================================================================
--- scripts/usr/local/bin/7dtd-check_mem.sh	(revision 1)
+++ scripts/usr/local/bin/7dtd-check_mem.sh	(revision 1)
@@ -0,0 +1,36 @@
+#!/bin/bash
+. /etc/7dtd.conf
+
+if [[ "$MEM_NOTIFY_XMPP" = "no" ]]; then
+	if [[ "$MEM_NOTIFY_MAIL" = "no" ]]; then
+		exit
+	fi
+fi
+
+PID=`$PIDOF 7DaysToDie.exe`
+
+if [[ -z "$PID" ]]; then
+	exit 0
+fi
+
+USED_CUR_MB=`$FREE -m | $AWK '/buffers\/cache/{print $3;}'`
+#USED_CUR_MB=`cat /proc/$PID/status | $AWK '/VmRSS/{print int($2/1024);}'`
+TELNETPORT=$(($SDTD_PORT + 3))
+#USED_CHUNKS=`echo -e "cc" | nc -q 3 127.0.0.1 $TELNETPORT | grep -a Mem | awk '/Chunk/{print $3;}'`
+
+if [ "$USED_CUR_MB" -gt "$MEM_NOTIFY_MAX_RAM" ]
+then
+	MESSAGE="7dtd: $USED_CUR_MB MiB of memory used! Chunk memory: $USED_CHUNKS"
+	if [[ "$MEM_NOTIFY_XMPP" = "yes" ]]; then
+		echo $MESSAGE | sendxmpp -u $XMPP_USER -p $XMPP_PASSWORD -j $XMPP_SERVER -t $XMPP_TARGET
+	fi
+	if [[ "$MEM_NOTIFY_MAIL" = "yes" ]]; then
+		if [[ -n "$MAIL_USER" ]]; then
+			userparam="-xu $MAIL_USER"
+		fi
+		if [[ -n "$MAIL_PASS" ]]; then
+			passparam="-xp $MAIL_PASS"
+		fi
+		sendEmail -q -f $MAIL_FROM -t $MAIL_TO -u "$MAIL_SUBJECT" -m "$MESSAGE" -s $MAIL_SMTP $userparam $passparam
+	fi
+fi
Index: scripts/usr/local/bin/7dtd-kill.sh
===================================================================
--- scripts/usr/local/bin/7dtd-kill.sh	(revision 1)
+++ scripts/usr/local/bin/7dtd-kill.sh	(revision 1)
@@ -0,0 +1,2 @@
+#!/bin/bash
+/etc/init.d/7dtd.sh stop
Index: scripts/usr/local/bin/7dtd-start.sh
===================================================================
--- scripts/usr/local/bin/7dtd-start.sh	(revision 1)
+++ scripts/usr/local/bin/7dtd-start.sh	(revision 1)
@@ -0,0 +1,2 @@
+#!/bin/bash
+/etc/init.d/7dtd.sh start
Index: scripts/usr/local/bin/7dtd-update.sh
===================================================================
--- scripts/usr/local/bin/7dtd-update.sh	(revision 1)
+++ scripts/usr/local/bin/7dtd-update.sh	(revision 1)
@@ -0,0 +1,21 @@
+#!/bin/bash
+. /etc/7dtd.conf
+
+if [ ! -e $STEAMCMD_ROOT ]; then
+	mkdir $STEAMCMD_ROOT
+	cd /tmp
+	wget http://media.steampowered.com/installer/steamcmd_linux.tar.gz
+	tar -xvzf steamcmd_linux.tar.gz -C $STEAMCMD_ROOT
+	cd $STEAMCMD_ROOT
+	./steamcmd.sh +quit
+fi
+
+cd $STEAMCMD_ROOT
+
+./steamcmd.sh +@sSteamCmdForcePlatformType windows +login $STEAM_USER $STEAM_PASS +force_install_dir $SDTD_ROOT +app_update 251570 validate +quit
+chown $SDTD_USER.$SDTD_GROUP -R $SDTD_ROOT
+
+cp $SDTD_ROOT/Install/32bit/7DaysToDie.exe $SDTD_ROOT/
+cp $SDTD_ROOT/Install/32bit/mono.dll $SDTD_ROOT/7DaysToDie_Data/Mono/
+cp $SDTD_ROOT/Install/32bit/SteamworksManaged.dll $SDTD_ROOT/7DaysToDie_Data/Managed/
+cp $SDTD_ROOT/../msvcr100.dll $SDTD_ROOT/
Index: scripts/usr/local/bin/7dtd.sh
===================================================================
--- scripts/usr/local/bin/7dtd.sh	(revision 500)
+++ 	(revision )
@@ -1,50 +1,0 @@
-#!/bin/bash
-
-#   Copyright 2016 Christian 'Alloc' Illy
-#
-#   Licensed under the Apache License, Version 2.0 (the "License");
-#   you may not use this file except in compliance with the License.
-#   You may obtain a copy of the License at
-#
-#       http://www.apache.org/licenses/LICENSE-2.0
-#
-#   Unless required by applicable law or agreed to in writing, software
-#   distributed under the License is distributed on an "AS IS" BASIS,
-#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#   See the License for the specific language governing permissions and
-#   limitations under the License.
-
-
-. /usr/local/lib/7dtd/common.sh
-checkRootLoadConf
-
-if [ -z $1 ]; then
-	genericHelp
-else
-	CMD=$(camelcasePrep "$1")
-	shift
-	
-	if [ "$CMD" = "Help" ]; then
-		if [ -z $1 ]; then
-			genericHelp
-		else
-			HELPCMD=$(camelcasePrep "$1")
-			if [ "$(type -t sdtdCommand${HELPCMD}Help)" = "function" ]; then
-				sdtdCommand${HELPCMD}Help
-			else
-				echo "Command \"$1\" does not exist!"
-				exit 1
-			fi
-		fi
-	else
-		if [ "$(type -t sdtdCommand${CMD})" = "function" ]; then
-			sdtdCommand${CMD} "$@"
-		else
-			echo "Command \"$CMD\" does not exist!"
-			exit 1
-		fi
-	fi
-fi
-
-exit 0
-
