Hi,
I'm running a small Windows Minecraft server at home and I would like to
take a daily backup automatically at a preset time.
The PC is a Windows7 Pro and runs StartServer.bat that has the following line.
java -Xmx1536M -Xms1536M -jar minecraft_server.jar nogui
This starts a console (command line) box and when I wish to stop it, I type "stop"
Is there a way to submit that command from another batch file??
This is the goal that I wish to reach:
1. When the machine reboots, it autostarts "StartServer.bat" (done)
2. At 03:00 a scheduled daily "Backup.bat" would be submitted that would:
2a. "Stop" the Minecraft Server
2a. Take a backup
2b. Run a mapper program
2c. Restart "StartServer.bat"
Presently, I "stop" the server from the console and run the backup manually as I was not
able to find a way to pass the "stop" command to the running Java process (console). I also assume
that I cannot just "kill" the running process as it would not save properly.
Maybe Notch would care to elaborate if this is doable in a Windows7 system with Java or a batch file.
I've done many searches on this and there does not seem to be an answer available. Being French, I might
be using the wrong keywords for my searches!! I did find some solutions for Linux but none for Windows(7).
Hi,
I'm running a small Windows Minecraft server at home and I would like to
take a daily backup automatically at a preset time.
The PC is a Windows7 Pro and runs StartServer.bat that has the following line.
java -Xmx1536M -Xms1536M -jar minecraft_server.jar nogui
This starts a console (command line) box and when I wish to stop it, I type "stop"
Is there a way to submit that command from another batch file??
This is the goal that I wish to reach:
1. When the machine reboots, it autostarts "StartServer.bat" (done)
2. At 03:00 a scheduled daily "Backup.bat" would be submitted that would:
2a. "Stop" the Minecraft Server
2a. Take a backup
2b. Run a mapper program
2c. Restart "StartServer.bat"
Presently, I "stop" the server from the console and run the backup manually as I was not
able to find a way to pass the "stop" command to the running Java process (console). I also assume
that I cannot just "kill" the running process as it would not save properly.
Maybe Notch would care to elaborate if this is doable in a Windows7 system with Java or a batch file.
I've done many searches on this and there does not seem to be an answer available. Being French, I might
be using the wrong keywords for my searches!! I did find some solutions for Linux but none for Windows(7).
Thanks
Ccadieux
I think you can code a program that can do this with Microsoft Visual Basic Express or something
I'm running a small Windows Minecraft server at home and I would like to
take a daily backup automatically at a preset time.
The PC is a Windows7 Pro and runs StartServer.bat that has the following line.
java -Xmx1536M -Xms1536M -jar minecraft_server.jar nogui
This starts a console (command line) box and when I wish to stop it, I type "stop"
Is there a way to submit that command from another batch file??
This is the goal that I wish to reach:
1. When the machine reboots, it autostarts "StartServer.bat" (done)
2. At 03:00 a scheduled daily "Backup.bat" would be submitted that would:
2a. "Stop" the Minecraft Server
2a. Take a backup
2b. Run a mapper program
2c. Restart "StartServer.bat"
Presently, I "stop" the server from the console and run the backup manually as I was not
able to find a way to pass the "stop" command to the running Java process (console). I also assume
that I cannot just "kill" the running process as it would not save properly.
Maybe Notch would care to elaborate if this is doable in a Windows7 system with Java or a batch file.
I've done many searches on this and there does not seem to be an answer available. Being French, I might
be using the wrong keywords for my searches!! I did find some solutions for Linux but none for Windows(7).
Thanks
Ccadieux
I think you can code a program that can do this with Microsoft Visual Basic Express or something