From 749d0b22a6ffb4f20aa4d251cce9ea443e836cfc Mon Sep 17 00:00:00 2001 From: tmueller <tmueller@cl.uni-heidelberg.de> Date: Tue, 9 Mar 2021 22:09:57 +0000 Subject: [PATCH] Update backup.sh --- backup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup.sh b/backup.sh index d97a8c4..3a7119f 100755 --- a/backup.sh +++ b/backup.sh @@ -11,9 +11,9 @@ dateformat=$(date +%F_%H)UTC$ext mkdir -p $backupdir fi screen -r mc -p 0 -X stuff "save-off^M" #Sends an input to screen-session conatining the papermc-server to disable world saving from minecraft - 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 + 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 "save-on^M" #enables it again chmod +rw $backupdir$dateformat echo "Backup complete." -exit 0 \ No newline at end of file +exit 0 -- GitLab