Minecraft Server Auto Startup and Backup Scripts
5 posters
Stay Informed :: Gaming :: PC :: Minecraft
Page 1 of 1
Minecraft Server Auto Startup and Backup Scripts
Update:
Here is the video tutorial with the newest updates:
https://youtu.be/WL2RE4s2O6s
Hey whats up everyone,
I created a brand new (Public) Minecraft Bukkit server 1.7.9 and was wondering if you could check out. See my youtube video here:
https://youtu.be/kmM3UTOC41w
Description:
Please join my server: voiplanparty.com:777
Dynmap www.voiplanparty.com:333
[iframe]http://voiplanparty.com:333[/iframe]
Current Pluggins:
AutoCraft.jar - (PVP) Airships, Ships, and Submarines!
BloodMoon.jar - %5 chance everynight!
chestshop-towny.jar
ChestShop.jar - Awsome Admin Shop at spawn!
dynmap-1.9.3.jar - http://voiplanparty.com:333
Dynmap-Towny-0.60.jar
Essentials.jar
EssentialsAntiBuild.jar
EssentialsChat.jar
EssentialsGroupManager.jar
EssentialsProtect.jar
EssentialsSpawn.jar
Jobs.jar
JSONAPI.jar
LWC.jar
mcMMO.jar
MobArena.jar
NoSwearing.jar - just kicks. No bans. Kids might play on the server!
ProtocolLib-3.2.0.jar
Questioner.jar
ShowCaseStandalone.jar - Make town shops look awesome!
Towny.jar - Don't forget to pay your upkeep or your town gets distroyed!
TownyChat.jar
Vault.jar
WildcardCommands.jar
WorldEdit.jar
WorldGuard.jar
WorldBorder.jar
ZombieApocalypse.jar - 20% chance every night
Ok, I know there is a lot of people out there that want to or already run a Minecraft server. I don't know about you, but my server would constantly die almost everyday and would not start again because it was not gracefully shutdown. I had to manually delete certin files just to be able to make it function again. Very painful and frustraiting for my friends that would constantly get booted all the time. It actually became very discuraging for some of them and they ended up quiting overall.
Because of all this drama I finally wrote a few scripts in batch on my windows server to prevent these types of crashes overall and even improved RAM utilization for no lag gaming.
By the way here is some cool tips that i found will make this game very enjoyable before i show you my scripts and how to utilize them.
Press and hold TAB to see who is on your server
Press F1 to toggle your HUD display in Press
Press F2 to take a screenshot
Press F3 to display FPS, ping, lag, memory utilization and current coordinates of your location.
Press F5 change to third person view
Press F8 create movement lag of your mouse (useless)
Press F10 releases your mouse from within game but limited to your window
Press F11 FULL SCREEN MODE (Just found this out today) Awsome!!!
Ignition batch script - This script is used to to start the actual Startup/crash recovery script.
startserver.bat - name of batch file
:: This opens the minecraft.bat script as a new prompt minimized and exits out of itself.
start /MIN d:\users\roman\minecraft\minecraft.bat
exit
:: END OF BATCH
Minecraft Startup/crash recovery script - This script will start the server and will startup the server in 10 seconds if server crashes. If your computer gets shutdown by your kids or power outage, this script will also remove carupt files and properly startup your server as well. I will show you how to configure your computer to startup this script in the background everytime your computer starts without the need of logging on later on. Also, this script starts your server utilizing 2gigs of RAM instead of the default 130meg and sets CPU priority to realtime. This makes things very fast on your server and gives minecraft priority over anything else running on the computer.
minecraft.bat - name of batch file
@echo off
cd ..
cd ..
cd ..
cd D:\Users\Roman\MINECRAFT\
del server.log*
cd world
rmdir /S /Q dim1
cd D:\Users\Roman\MINECRAFT\
cls
echo Protecting Minecraft Server from crashes...
title Server Watchdog
:mine
echo (%time%) Minecraft Server started.
java /B /WAIT /REALTIME -Xmx2064M -jar minecraft_server.jar nogui
echo (%time%) WARNING: Minecraft_Server closed or crashed, restarting.
ping 127.0.0.1 -n 10
goto mine
::END OF SCRIPT
Server backup script - a basic batch script to backup your server every night. you will need to copy the robocopy.exe that you can get by installing Windows Resource Kit from http://www.microsoft.com/download/en/details.aspx?id=17657 to the same directory this batch script is located. Robocopy will let your copy only the differences made to the directory, so backing up takes very little time by utilizing the /MIR option shown below.
mybackup.bat - name of batch script
robocopy "D:\Users\Roman\Minecraft" "K:\Users\Roman\Minecraft Backup" /MIR /COPY:D /Z /R:10 /W:30 /TEE
::END OF SCRIPT
I will post the screenshots of how to configure these scripts to run on a scheduled event later on since i need to go to sleep.
TO BE CONTINIUED
Here is the video tutorial with the newest updates:
https://youtu.be/WL2RE4s2O6s
Hey whats up everyone,
I created a brand new (Public) Minecraft Bukkit server 1.7.9 and was wondering if you could check out. See my youtube video here:
https://youtu.be/kmM3UTOC41w
Description:
Please join my server: voiplanparty.com:777
Dynmap www.voiplanparty.com:333
[iframe]http://voiplanparty.com:333[/iframe]
Current Pluggins:
AutoCraft.jar - (PVP) Airships, Ships, and Submarines!
BloodMoon.jar - %5 chance everynight!
chestshop-towny.jar
ChestShop.jar - Awsome Admin Shop at spawn!
dynmap-1.9.3.jar - http://voiplanparty.com:333
Dynmap-Towny-0.60.jar
Essentials.jar
EssentialsAntiBuild.jar
EssentialsChat.jar
EssentialsGroupManager.jar
EssentialsProtect.jar
EssentialsSpawn.jar
Jobs.jar
JSONAPI.jar
LWC.jar
mcMMO.jar
MobArena.jar
NoSwearing.jar - just kicks. No bans. Kids might play on the server!
ProtocolLib-3.2.0.jar
Questioner.jar
ShowCaseStandalone.jar - Make town shops look awesome!
Towny.jar - Don't forget to pay your upkeep or your town gets distroyed!
TownyChat.jar
Vault.jar
WildcardCommands.jar
WorldEdit.jar
WorldGuard.jar
WorldBorder.jar
ZombieApocalypse.jar - 20% chance every night
Ok, I know there is a lot of people out there that want to or already run a Minecraft server. I don't know about you, but my server would constantly die almost everyday and would not start again because it was not gracefully shutdown. I had to manually delete certin files just to be able to make it function again. Very painful and frustraiting for my friends that would constantly get booted all the time. It actually became very discuraging for some of them and they ended up quiting overall.
Because of all this drama I finally wrote a few scripts in batch on my windows server to prevent these types of crashes overall and even improved RAM utilization for no lag gaming.
By the way here is some cool tips that i found will make this game very enjoyable before i show you my scripts and how to utilize them.
Press and hold TAB to see who is on your server
Press F1 to toggle your HUD display in Press
Press F2 to take a screenshot
Press F3 to display FPS, ping, lag, memory utilization and current coordinates of your location.
Press F5 change to third person view
Press F8 create movement lag of your mouse (useless)
Press F10 releases your mouse from within game but limited to your window
Press F11 FULL SCREEN MODE (Just found this out today) Awsome!!!
Ignition batch script - This script is used to to start the actual Startup/crash recovery script.
startserver.bat - name of batch file
:: This opens the minecraft.bat script as a new prompt minimized and exits out of itself.
start /MIN d:\users\roman\minecraft\minecraft.bat
exit
:: END OF BATCH
Minecraft Startup/crash recovery script - This script will start the server and will startup the server in 10 seconds if server crashes. If your computer gets shutdown by your kids or power outage, this script will also remove carupt files and properly startup your server as well. I will show you how to configure your computer to startup this script in the background everytime your computer starts without the need of logging on later on. Also, this script starts your server utilizing 2gigs of RAM instead of the default 130meg and sets CPU priority to realtime. This makes things very fast on your server and gives minecraft priority over anything else running on the computer.
minecraft.bat - name of batch file
@echo off
cd ..
cd ..
cd ..
cd D:\Users\Roman\MINECRAFT\
del server.log*
cd world
rmdir /S /Q dim1
cd D:\Users\Roman\MINECRAFT\
cls
echo Protecting Minecraft Server from crashes...
title Server Watchdog
:mine
echo (%time%) Minecraft Server started.
java /B /WAIT /REALTIME -Xmx2064M -jar minecraft_server.jar nogui
echo (%time%) WARNING: Minecraft_Server closed or crashed, restarting.
ping 127.0.0.1 -n 10
goto mine
::END OF SCRIPT
Server backup script - a basic batch script to backup your server every night. you will need to copy the robocopy.exe that you can get by installing Windows Resource Kit from http://www.microsoft.com/download/en/details.aspx?id=17657 to the same directory this batch script is located. Robocopy will let your copy only the differences made to the directory, so backing up takes very little time by utilizing the /MIR option shown below.
mybackup.bat - name of batch script
robocopy "D:\Users\Roman\Minecraft" "K:\Users\Roman\Minecraft Backup" /MIR /COPY:D /Z /R:10 /W:30 /TEE
::END OF SCRIPT
I will post the screenshots of how to configure these scripts to run on a scheduled event later on since i need to go to sleep.
TO BE CONTINIUED
Last edited by Romanovski on Thu May 08, 2014 1:44 am; edited 6 times in total
Re: Minecraft Server Auto Startup and Backup Scripts
Updated the script to give Minecraft CPU priority over all other applications running on the server. Let me know if you have any problems. By the way I tested the new script on my computer and currently using it with my server. Works flawlessly.
Re: Minecraft Server Auto Startup and Backup Scripts
I know im not the only one that runs these servers, so if anyone can provide feedback on how my script works out in the wild? I would appretiate it. I see 980 view on my post and no feedback from visitors.
Thanks,
Romanovski
Thanks,
Romanovski
Re: Minecraft Server Auto Startup and Backup Scripts
Hi!
The script looks great, but with the java commands it doesn't work. Have you installed something more and not only the java rt?
Redist
The script looks great, but with the java commands it doesn't work. Have you installed something more and not only the java rt?
Redist
redist- Noob
- Join date : 2012-06-15
Posts : 1
Reputation : 0
Re: Minecraft Server Auto Startup and Backup Scripts
Welcome to the forums Redist!
Last edited by Ambush on Fri Jun 15, 2012 6:54 pm; edited 2 times in total
Ambush- {VoIP} Administrator
- Join date : 2009-12-09
Location : In a galaxy far far away
Posts : 587
Reputation : 7
Re: Minecraft Server Auto Startup and Backup Scripts
I have the custom startup script only, but I have it so it allocates more RAM to the program.
But my server will be going down for awhile. No autorecovery script yet, and I backup manually.
Protip: make sure to STOP the server to avoid corrupting region files.
But my server will be going down for awhile. No autorecovery script yet, and I backup manually.
Protip: make sure to STOP the server to avoid corrupting region files.
pvtnum11- {VoIP} Moderator
- Join date : 2009-12-10
Location : in ur office drinkin ur coffee
Posts : 518
Reputation : 3
Re: Minecraft Server Auto Startup and Backup Scripts
What error do you get when you run the java command? you might have to add java directory to your system path in computer properties. By the way im running 64bit java install and path directory. 32 bit is not that stable for minecraft.
did you put minecraft_server.jar into your main server folder from minecraft.net. (note: it might download as minecraft_server.zip which you just rename to .jar)
By the way all I did was go to java website and clicked download on both 32bit browser and 64bit browser. I did not use the distributed one. Let me know if you need more info on how to get java setup.
did you put minecraft_server.jar into your main server folder from minecraft.net. (note: it might download as minecraft_server.zip which you just rename to .jar)
By the way all I did was go to java website and clicked download on both 32bit browser and 64bit browser. I did not use the distributed one. Let me know if you need more info on how to get java setup.
Hope this post is still open...HELP!
Error: Could not find or load main class .B
(13:08:10.64) WARNING: Minecraft_Server closed or crashed, restarting.
please assist
Thnx in advance...
(13:08:10.64) WARNING: Minecraft_Server closed or crashed, restarting.
please assist
Thnx in advance...
MineCraftHub_US- Noob
- Join date : 2012-07-08
Posts : 1
Reputation : 0
Re: Minecraft Server Auto Startup and Backup Scripts
Do you get any errors when double clicking Minecraft_Server.jar? What OS are you running mincraft on?
Try uninstalling all versions of Java, reboot your computer and go to java.com and install the newest version of java. Then download a fresh compy of Minecraft_Server.jar from http://www.minecraft.net/download and put it in its own folder someware on your computer.
Then put both startserver.bat and minecraft.bat in that folder as well and run execute startserver.bat
From the error you posted it seems like your minecraft_server.jar file is corupt.
Let me know what happens.
Try uninstalling all versions of Java, reboot your computer and go to java.com and install the newest version of java. Then download a fresh compy of Minecraft_Server.jar from http://www.minecraft.net/download and put it in its own folder someware on your computer.
Then put both startserver.bat and minecraft.bat in that folder as well and run execute startserver.bat
From the error you posted it seems like your minecraft_server.jar file is corupt.
Let me know what happens.
Re: Minecraft Server Auto Startup and Backup Scripts
Hey whats up everyone,
I created a brand new (Public) Minecraft Bukkit server 1.7.9 and was wondering if you could check out. See my youtube video here:
https://youtu.be/kmM3UTOC41w
Description:
Please join my server: voiplanparty.com:777
Dynmap www.voiplanparty.com:333
Current Pluggins:
AutoCraft.jar - (PVP) Airships, Ships, and Submarines!
BloodMoon.jar - %5 chance everynight!
chestshop-towny.jar
ChestShop.jar - Awsome Admin Shop at spawn!
dynmap-1.9.3.jar - http://voiplanparty.com:333
Dynmap-Towny-0.60.jar
Essentials.jar
EssentialsAntiBuild.jar
EssentialsChat.jar
EssentialsGroupManager.jar
EssentialsProtect.jar
EssentialsSpawn.jar
Jobs.jar
JSONAPI.jar
LWC.jar
mcMMO.jar
MobArena.jar
NoSwearing.jar - just kicks. No bans. Kids might play on the server!
ProtocolLib-3.2.0.jar
Questioner.jar
ShowCaseStandalone.jar - Make town shops look awesome!
Towny.jar - Don't forget to pay your upkeep or your town gets distroyed!
TownyChat.jar
Vault.jar
WildcardCommands.jar
WorldEdit.jar
WorldGuard.jar
WorldBorder.jar
ZombieApocalypse.jar - 20% chance every night Smile
I created a brand new (Public) Minecraft Bukkit server 1.7.9 and was wondering if you could check out. See my youtube video here:
https://youtu.be/kmM3UTOC41w
Description:
Please join my server: voiplanparty.com:777
Dynmap www.voiplanparty.com:333
Current Pluggins:
AutoCraft.jar - (PVP) Airships, Ships, and Submarines!
BloodMoon.jar - %5 chance everynight!
chestshop-towny.jar
ChestShop.jar - Awsome Admin Shop at spawn!
dynmap-1.9.3.jar - http://voiplanparty.com:333
Dynmap-Towny-0.60.jar
Essentials.jar
EssentialsAntiBuild.jar
EssentialsChat.jar
EssentialsGroupManager.jar
EssentialsProtect.jar
EssentialsSpawn.jar
Jobs.jar
JSONAPI.jar
LWC.jar
mcMMO.jar
MobArena.jar
NoSwearing.jar - just kicks. No bans. Kids might play on the server!
ProtocolLib-3.2.0.jar
Questioner.jar
ShowCaseStandalone.jar - Make town shops look awesome!
Towny.jar - Don't forget to pay your upkeep or your town gets distroyed!
TownyChat.jar
Vault.jar
WildcardCommands.jar
WorldEdit.jar
WorldGuard.jar
WorldBorder.jar
ZombieApocalypse.jar - 20% chance every night Smile
Similar topics
» Minecraft Server Upgraded
» Minecraft 1.11.2 Server Factions/McMMO/Jobs/Slimefun 24/7 Awesomenessssssssssssss
» New Server
» Server set to 30 players.
» Server 2003
» Minecraft 1.11.2 Server Factions/McMMO/Jobs/Slimefun 24/7 Awesomenessssssssssssss
» New Server
» Server set to 30 players.
» Server 2003
Stay Informed :: Gaming :: PC :: Minecraft
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|