From 902ac67015b32393358e93031bc2785e49159160 Mon Sep 17 00:00:00 2001
From: TheBroTMv2 <tobias-mueller@outlook.de>
Date: Wed, 3 Mar 2021 00:18:42 +0100
Subject: [PATCH] Update backup.sh

backup was backing up the whole container from root / it now tarballs only /papermc/
disables unneeded verbose flag from tar command
---
 backup.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backup.sh b/backup.sh
index 4db8f67..0223669 100755
--- a/backup.sh
+++ b/backup.sh
@@ -11,7 +11,7 @@ dateformat=$(date +%F_%H)UTC$ext
         mkdir -p $backupdir
     fi
     screen -r mc -p 0 -X stuff "auto-save off" #Sends an input to screen-session conatining the papermc-server to disable world saving from minecraft
-    tar -czvf $backupdir$dateformat --exclude="plugins/dynmap/web/tiles" --exclude="cache/" --exclude="*.gz" --exclude="spigo*.jar" --exclude="paper*.jar" * #creates a compressed tarball of the minecraft folder
+    tar -czf $backupdir$dateformat --exclude="plugins/dynmap/web/tiles" --exclude="cache/" --exclude="*.gz" --exclude="spigo*.jar" --exclude="paper*.jar" /papermc/* #creates a compressed tarball of the minecraft folder
     screen -r mc -p 0 -X stuff "auto-save on" #enables it again
     chmod +rw $backupdir$dateformat
     echo "Backup complete."
-- 
GitLab