I’ve been running a small Minecraft server for a while now, and some time ago I wrote a little program to keep backups of the currently running world. It looks at the server’s config file to determine the currently running world, and then copies that world to a date/time-stamped folder within a folder with the world name. That way, I can easily keep backups for several worlds at once.
You can specify how many backups to keep per world (the default is 7), and each time the program is run, it backs up the world and then deletes the oldest backup if there are more backups than the set limit.
I setup a Windows task thing to run the program once a night, and so I have nightly backups for the past week for the server. It is pretty handy!
I’ve been using it for a while now, and so far it hasn’t blown up my computer or killed my server/worlds dead, so I think it is now safe to share it with the world.