From 7e7cc95a9bb8600b90263061b23f2fc6f23b85c5 Mon Sep 17 00:00:00 2001 From: Fabrisus <41049445+Fabrisus@users.noreply.github.com> Date: Tue, 19 Mar 2024 09:52:23 +0100 Subject: [PATCH] Updated backup Added --exclude='./plugins' --- start.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/start.sh b/start.sh index b921e6b..29e664a 100644 --- a/start.sh +++ b/start.sh @@ -62,10 +62,10 @@ Permissions=$(bash dirname/minecraft/fixpermissions.sh -a) if [ -d "world" ]; then if [ -n "$(which pigz)" ]; then echo "Backing up server (all cores) to cd minecraft/backups folder" - tar -I pigz --exclude='./backups' --exclude='./cache' --exclude='./logs' --exclude='./jre' --exclude='./paperclip.jar' -pvcf backups/$(date +%Y.%m.%d.%H.%M.%S).tar.gz ./* + tar -I pigz --exclude='./plugins' --exclude='./backups' --exclude='./cache' --exclude='./logs' --exclude='./jre' --exclude='./paperclip.jar' -pvcf backups/$(date +%Y.%m.%d.%H.%M.%S).tar.gz ./* else echo "Backing up server (single core, pigz not found) to cd minecraft/backups folder" - tar --exclude='./backups' --exclude='./cache' --exclude='./logs' --exclude='./jre' --exclude='./paperclip.jar' -pzvcf backups/$(date +%Y.%m.%d.%H.%M.%S).tar.gz ./* + tar --exclude='./plugins' --exclude='./backups' --exclude='./cache' --exclude='./logs' --exclude='./jre' --exclude='./paperclip.jar' -pzvcf backups/$(date +%Y.%m.%d.%H.%M.%S).tar.gz ./* fi fi