Added Minecraft-Script Files
This commit is contained in:
parent
9467689a84
commit
d8640e3967
0
minecraft-scripts/Backups/Backup1
Executable file
0
minecraft-scripts/Backups/Backup1
Executable file
17
minecraft-scripts/Backups/Backup1.sh
Executable file
17
minecraft-scripts/Backups/Backup1.sh
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# make file and copy
|
||||||
|
mkdir /usr/minecraft/backups/1-temp
|
||||||
|
cp -v -r /usr/minecraft/1 /usr/minecraft/backups/1-temp
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
echo OK
|
||||||
|
|
||||||
|
else
|
||||||
|
echo FAIL
|
||||||
|
sleep 10m
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Remove Previus
|
||||||
|
rm -rf /usr/minecraft/backups/1/
|
||||||
|
mv -v /usr/minecraft/backups/1-temp /usr/minecraft/backups/1
|
||||||
|
|
||||||
4
minecraft-scripts/Backups/backup1-0000.sh
Executable file
4
minecraft-scripts/Backups/backup1-0000.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cp -r /usr/minecraft/1 /usr/minecraft/backups/
|
||||||
|
|
||||||
4
minecraft-scripts/Backups/backup1-0000.sh.save
Executable file
4
minecraft-scripts/Backups/backup1-0000.sh.save
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cp -r /usr/minecraft/1 /usr/minecraft/backups/1
|
||||||
|
|
||||||
4
minecraft-scripts/Backups/backup1-1800.sh
Executable file
4
minecraft-scripts/Backups/backup1-1800.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cp -r /usr/minecraft/1 /usr/minecraft/backups/
|
||||||
|
|
||||||
5
minecraft-scripts/FTB-NAME_OF_INSTANCE.sh
Normal file
5
minecraft-scripts/FTB-NAME_OF_INSTANCE.sh
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#/bin/bash
|
||||||
|
cd /opt/minecraft/NAME_OF_INSTANCE
|
||||||
|
java -javaagent:log4jfix/Log4jPatcher-1.0.0.jar -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -Xmx6144M -Xms4096M -jar forge-1.12.2-14.23.5.2846-universal.jar nogui
|
||||||
|
|
||||||
|
|
||||||
2
minecraft-scripts/backup.sh
Executable file
2
minecraft-scripts/backup.sh
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
cp -rv /opt/minecraft/INSTANCE /opt/minecraft-backup/INSTANCE
|
||||||
BIN
minecraft-scripts/logs/2021-03-14-1.log.gz
Normal file
BIN
minecraft-scripts/logs/2021-03-14-1.log.gz
Normal file
Binary file not shown.
1
minecraft-scripts/logs/latest.log
Normal file
1
minecraft-scripts/logs/latest.log
Normal file
@ -0,0 +1 @@
|
|||||||
|
[18:02:40] [main/INFO]: You need to agree to the EULA in order to run the server. Go to eula.txt for more info.
|
||||||
3
minecraft-scripts/spigot-NAME_OF_INSTANCE.sh
Executable file
3
minecraft-scripts/spigot-NAME_OF_INSTANCE.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#/bin/bash
|
||||||
|
cd /usr/minecraft/NewFarm
|
||||||
|
java -Xms2048M -Xmx6144M -jar /usr/minecraft/NewFarm/current.jar
|
||||||
3
minecraft-scripts/start-NAME_OF_INSTANCE.sh
Executable file
3
minecraft-scripts/start-NAME_OF_INSTANCE.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#/bin/bash
|
||||||
|
tmux new-session -d -s MC-Server-NAME_OF_INSTANCE '/opt/minecraft-scripts/NAME_OF_INSTANCE.sh'
|
||||||
|
tmux attach -t MC-Server-NAME_OF_INSTANCE
|
||||||
Loading…
Reference in New Issue
Block a user