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
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
screen -r mc -p 0 -X stuff "auto-save on"#enables it again
chmod +rw $backupdir$dateformat
screen -r mc -p 0 -X stuff "auto-save on"#enables it again