diff --git a/backup.sh b/backup.sh index bfd8f4b699af1f547017ba4917a876a99ca34a24..d97a8c491f2453b24caa9613fd82db364356f02b 100755 --- a/backup.sh +++ b/backup.sh @@ -10,9 +10,9 @@ dateformat=$(date +%F_%H)UTC$ext else mkdir -p $backupdir fi - screen -r mc -p 0 -X stuff "auto-save off^M" #Sends an input to screen-session conatining the papermc-server to disable world saving from minecraft + 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 - screen -r mc -p 0 -X stuff "auto-save on^M" #enables it again + screen -r mc -p 0 -X stuff "save-on^M" #enables it again chmod +rw $backupdir$dateformat echo "Backup complete."