With the SMP servers starting up, I find I'm missing my auto backup feature for my server. Lots of TNT and water grief was getting a little annoying. So i wrote up a quick utility that waits a certain amount of time before copying the world folder to a backup folder.
There are four user variables you should change inside the batch file (right-click and select "Edit"):
• The directory path where you keep your "world" folder (the same as your server.jar/exe)
--Set to: C:\Minecraft\Server
• The name of your world folder (Because I'm too lazy to pull it from the server.properties file)
--Set to: MonkeyMines
• The directory path you want to save your backups in
--Set to: C:\Minecraft\Server\Backup
• The time between saves
--Set to: 10 minutes
After that, just run it and watch it go. It will run a simple batch minute by minute countdown and continue until you close it.
I make no guarantees on reliability, or computer speeds or anything like that. It's just something while we wait for server scripts that have it built in (without restarting servers and making everyone connected lose all their stuff).
This does not clean up old backups (delete after x days or anything like that) or check how much hard disk space is left, so keep an eye on that yourself. Also it is only Windows compatible (Sorry Mac folks, I just wrote something quickly for myself and decided to share it in case it's useful to anyone else, but I didn't get into anything fancy).
Edit - Fixed colon typo
Rollback Post to RevisionRollBack
Monkey Mines is a small 18+ Whitelisted Realms server that also allows families. We're currently looking for new players if they're not jerks.
From what I understand, save-off. But I have been running mine with save-on since before I knew the difference and restored it a few times with no trouble yet.
Rollback Post to RevisionRollBack
Monkey Mines is a small 18+ Whitelisted Realms server that also allows families. We're currently looking for new players if they're not jerks.
Should include some line about zip/rar/7zip compression. It may sound useless, but hell as it is, deleting old backup takes forever : 35 min to delete from trash 738 876 files (1.38Gb) with a QuadCore 2.30Ghz [300 files deleted/seconds] is exagerated. I guess compression and immediate folder deletion could save some time. I used to save every 10 min, but I'll have to change it to 30 min.
Very bad idea to turn off MC auto save. This backup utility copies the 'World' folder, but such folder get updated only when MC saves. I had turned auto save off and restoring last backup did absolutely nothing.
MC AutoBackup:
Forces server auto-save, incremental backup options,Cartograph, and Overviewer options with ftp upload of Overviewer for your Minecraft Server.
Sorry Created my own thread. Didn't mean to hijack.
Rollback Post to RevisionRollBack
MC AutoBackup:
Forces server auto-save, incremental backup options,Cartograph, and Overviewer options with ftp upload of Overviewer for your Minecraft Server.
Sorry. Created my own thread. Didn't mean to hijack.
Rollback Post to RevisionRollBack
MC AutoBackup:
Forces server auto-save, incremental backup options,Cartograph, and Overviewer options with ftp upload of Overviewer for your Minecraft Server.
Nice changes! I like where you're going with it. I'm going to add a .config file later to get the variables out of the batch file itself.
And i have been thinking about making a delete after x hours, but I didn't want to because I don't get to check my server as often as I'd like and I have a 4tb drive on it anyway, so i just didn't care lol.
Next time I get around to an update I might back-steal some of your zip code!
Rollback Post to RevisionRollBack
Monkey Mines is a small 18+ Whitelisted Realms server that also allows families. We're currently looking for new players if they're not jerks.
Sounds good, the more we trade off the better it will be! However, I think I've taken it as far as I want for my needs. Separating the variables out to a config would be nice, but not necessary for me. Editing a batch file is incredibly easy.
I thought about the auto delete, but I backup to a 1tb drive, and I really don't like the idea of the batch deleting files without me looking at it first. My server is still relatively small compressed, but maybe it does pose a problem for larger servers. 300mb+ backups could eat up space quickly. I'll cross that bridge when I get there.
Rollback Post to RevisionRollBack
MC AutoBackup:
Forces server auto-save, incremental backup options,Cartograph, and Overviewer options with ftp upload of Overviewer for your Minecraft Server.
I'm not sure if you were talking about the one he's working on or the one I made with modifications. If you're talking about my modified one you can find it here: viewtopic.php?f=10&t=29377
Links to the necessary tools and instructions on use.
Rollback Post to RevisionRollBack
MC AutoBackup:
Forces server auto-save, incremental backup options,Cartograph, and Overviewer options with ftp upload of Overviewer for your Minecraft Server.
There are four user variables you should change inside the batch file (right-click and select "Edit"):
• The directory path where you keep your "world" folder (the same as your server.jar/exe)
--Set to: C:\Minecraft\Server
• The name of your world folder (Because I'm too lazy to pull it from the server.properties file)
--Set to: MonkeyMines
• The directory path you want to save your backups in
--Set to: C:\Minecraft\Server\Backup
• The time between saves
--Set to: 10 minutes
After that, just run it and watch it go. It will run a simple batch minute by minute countdown and continue until you close it.
I make no guarantees on reliability, or computer speeds or anything like that. It's just something while we wait for server scripts that have it built in (without restarting servers and making everyone connected lose all their stuff).
This does not clean up old backups (delete after x days or anything like that) or check how much hard disk space is left, so keep an eye on that yourself. Also it is only Windows compatible (Sorry Mac folks, I just wrote something quickly for myself and decided to share it in case it's useful to anyone else, but I didn't get into anything fancy).
Edit - Fixed colon typo
I re-uploaded it as a single file .zip that seems to download correctly, let me know if that works for you! (Same link in top)
Would have suggested to have some preset line for 7-zip, WinRAR or WinZIP compression, but meh sounds cheap to compress 1-2 Mb.
EDIT: I tried to make it myself, but damn commands doesn't want to work. Online isn't helpful.
For peoples who have some long and complicated name location for their server. Have AutoBackup in the server folder and change those lines.
This will backup in Backup folder of your server folder. You won't have to worry if you move your server folder elsewhere.
viewtopic.php?f=10&t=29377
Forces server auto-save, incremental backup options,Cartograph, and Overviewer options with ftp upload of Overviewer for your Minecraft Server.
Visit Gamercide.org
Forces server auto-save, incremental backup options,Cartograph, and Overviewer options with ftp upload of Overviewer for your Minecraft Server.
Visit Gamercide.org
Forces server auto-save, incremental backup options,Cartograph, and Overviewer options with ftp upload of Overviewer for your Minecraft Server.
Visit Gamercide.org
And i have been thinking about making a delete after x hours, but I didn't want to because I don't get to check my server as often as I'd like and I have a 4tb drive on it anyway, so i just didn't care lol.
Next time I get around to an update I might back-steal some of your zip code!
I thought about the auto delete, but I backup to a 1tb drive, and I really don't like the idea of the batch deleting files without me looking at it first. My server is still relatively small compressed, but maybe it does pose a problem for larger servers. 300mb+ backups could eat up space quickly. I'll cross that bridge when I get there.
Forces server auto-save, incremental backup options,Cartograph, and Overviewer options with ftp upload of Overviewer for your Minecraft Server.
Visit Gamercide.org
I'm not sure if you were talking about the one he's working on or the one I made with modifications. If you're talking about my modified one you can find it here:
viewtopic.php?f=10&t=29377
Links to the necessary tools and instructions on use.
Forces server auto-save, incremental backup options,Cartograph, and Overviewer options with ftp upload of Overviewer for your Minecraft Server.
Visit Gamercide.org