diff --git a/backup.sh b/backup.sh index d97a8c491f2453b24caa9613fd82db364356f02b..3a7119f262485929ba8c61ca3c1a501dddbf1cef 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