Skip to content
Snippets Groups Projects
Commit 749d0b22 authored by tmueller's avatar tmueller
Browse files

Update backup.sh

parent 463cfa95
No related branches found
No related tags found
No related merge requests found
...@@ -11,9 +11,9 @@ dateformat=$(date +%F_%H)UTC$ext ...@@ -11,9 +11,9 @@ dateformat=$(date +%F_%H)UTC$ext
mkdir -p $backupdir mkdir -p $backupdir
fi 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 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 screen -r mc -p 0 -X stuff "save-on^M" #enables it again
chmod +rw $backupdir$dateformat chmod +rw $backupdir$dateformat
echo "Backup complete." echo "Backup complete."
exit 0 exit 0
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment