Stay Informed
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Minecraft Server Auto Startup and Backup Scripts

5 posters

Go down

Minecraft Server Auto Startup and Backup Scripts Empty Minecraft Server Auto Startup and Backup Scripts

Post by Romanovski Thu Dec 08, 2011 9:42 am

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 Smile

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
Romanovski
Romanovski
{VoIP} Moderator
{VoIP} Moderator

Join date : 2009-12-10
Location : NONE of YOUR BLA BLA
Posts : 275
Reputation : 8

http://www.whitecrowsecurity.com

Back to top Go down

Minecraft Server Auto Startup and Backup Scripts Empty Re: Minecraft Server Auto Startup and Backup Scripts

Post by Romanovski Tue May 08, 2012 10:42 pm

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.
Romanovski
Romanovski
{VoIP} Moderator
{VoIP} Moderator

Join date : 2009-12-10
Location : NONE of YOUR BLA BLA
Posts : 275
Reputation : 8

http://www.whitecrowsecurity.com

Back to top Go down

Minecraft Server Auto Startup and Backup Scripts Empty Re: Minecraft Server Auto Startup and Backup Scripts

Post by Romanovski Fri May 11, 2012 8:47 pm

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
Romanovski
Romanovski
{VoIP} Moderator
{VoIP} Moderator

Join date : 2009-12-10
Location : NONE of YOUR BLA BLA
Posts : 275
Reputation : 8

http://www.whitecrowsecurity.com

Back to top Go down

Minecraft Server Auto Startup and Backup Scripts Empty Re: Minecraft Server Auto Startup and Backup Scripts

Post by redist Fri Jun 15, 2012 12:08 pm

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

redist
Noob
Noob

Join date : 2012-06-15
Posts : 1
Reputation : 0

Back to top Go down

Minecraft Server Auto Startup and Backup Scripts Empty Re: Minecraft Server Auto Startup and Backup Scripts

Post by Ambush Fri Jun 15, 2012 4:36 pm

Welcome to the forums Redist!


Last edited by Ambush on Fri Jun 15, 2012 6:54 pm; edited 2 times in total
Ambush
Ambush
{VoIP} Administrator
{VoIP} Administrator

Join date : 2009-12-09
Location : In a galaxy far far away
Posts : 587
Reputation : 7

Back to top Go down

Minecraft Server Auto Startup and Backup Scripts Empty Re: Minecraft Server Auto Startup and Backup Scripts

Post by pvtnum11 Fri Jun 15, 2012 5:39 pm

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.
pvtnum11
pvtnum11
{VoIP} Moderator
{VoIP} Moderator

Join date : 2009-12-10
Location : in ur office drinkin ur coffee
Posts : 518
Reputation : 3

Back to top Go down

Minecraft Server Auto Startup and Backup Scripts Empty Re: Minecraft Server Auto Startup and Backup Scripts

Post by Romanovski Thu Jun 21, 2012 11:51 pm

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.
Romanovski
Romanovski
{VoIP} Moderator
{VoIP} Moderator

Join date : 2009-12-10
Location : NONE of YOUR BLA BLA
Posts : 275
Reputation : 8

http://www.whitecrowsecurity.com

Back to top Go down

Minecraft Server Auto Startup and Backup Scripts Empty Hope this post is still open...HELP!

Post by MineCraftHub_US Sun Jul 08, 2012 5:10 pm

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...

MineCraftHub_US
Noob
Noob

Join date : 2012-07-08
Posts : 1
Reputation : 0

Back to top Go down

Minecraft Server Auto Startup and Backup Scripts Empty Re: Minecraft Server Auto Startup and Backup Scripts

Post by Romanovski Mon Jul 09, 2012 12:35 am

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.
Romanovski
Romanovski
{VoIP} Moderator
{VoIP} Moderator

Join date : 2009-12-10
Location : NONE of YOUR BLA BLA
Posts : 275
Reputation : 8

http://www.whitecrowsecurity.com

Back to top Go down

Minecraft Server Auto Startup and Backup Scripts Empty Re: Minecraft Server Auto Startup and Backup Scripts

Post by Romanovski Fri Apr 04, 2014 11:25 pm

Here is my full video tutorial:

https://youtu.be/WL2RE4s2O6s
Romanovski
Romanovski
{VoIP} Moderator
{VoIP} Moderator

Join date : 2009-12-10
Location : NONE of YOUR BLA BLA
Posts : 275
Reputation : 8

http://www.whitecrowsecurity.com

Back to top Go down

Minecraft Server Auto Startup and Backup Scripts Empty Re: Minecraft Server Auto Startup and Backup Scripts

Post by Romanovski Thu Apr 24, 2014 9:57 pm

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
Romanovski
Romanovski
{VoIP} Moderator
{VoIP} Moderator

Join date : 2009-12-10
Location : NONE of YOUR BLA BLA
Posts : 275
Reputation : 8

http://www.whitecrowsecurity.com

Back to top Go down

Minecraft Server Auto Startup and Backup Scripts Empty Re: Minecraft Server Auto Startup and Backup Scripts

Post by Romanovski Fri Feb 17, 2017 10:25 am

Romanovski
Romanovski
{VoIP} Moderator
{VoIP} Moderator

Join date : 2009-12-10
Location : NONE of YOUR BLA BLA
Posts : 275
Reputation : 8

http://www.whitecrowsecurity.com

Back to top Go down

Minecraft Server Auto Startup and Backup Scripts Empty Re: Minecraft Server Auto Startup and Backup Scripts

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum