Skip to content
Snippets Groups Projects
Commit 902ac670 authored by TheBroTMv2's avatar TheBroTMv2
Browse files

Update backup.sh

backup was backing up the whole container from root / it now tarballs only /papermc/
disables unneeded verbose flag from tar command
parent c0b76ae9
No related branches found
No related tags found
1 merge request!7Beta
Pipeline #2664 passed
......@@ -11,7 +11,7 @@ dateformat=$(date +%F_%H)UTC$ext
mkdir -p $backupdir
fi
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
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" #enables it again
chmod +rw $backupdir$dateformat
echo "Backup complete."
......
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