1. Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here

Automate Backups for a single player world?

Discussion in 'General FTB chat' started by Silas, Nov 18, 2013.

  1. Silas

    Silas New Member

    What would be the best way to back up a single player world while playing? I have had a few minor chunk resets and would like a backup that would allow me to rollback my world 10-30minutes.

    It would need to have little to no interaction by me after the initial setup. Set it and forget it so to speak.

    Is there a way to do this?

    1.6.4 custom world and just on local computer.
  2. Sphinx2k

    Sphinx2k New Member

    The Problem with a backup while playing is if the game writes in a file the moment you back that file up you get chunk resets.
    So i tested if this commands work on ssp and they don't work.
    save-all Forces the server to write all pending changes to the world to disk.
    save-off Disables the server writing to the world files. All changes will temporarily be queued.
    save-on Enables the server writing to the world files. This is the default behavior.

    So why not running a local server (external für SMP, SSP is also local server but that is not what i mean :) ) and connecting to that one? I did this some times while testing and got better performance on that slow PC. Maybe because 2 really different threads?
    So you can script it like:
    <Backup like a simple file copy>

    Setting a Timer for every 30min.
    Escape->"Save and quit to titel"
    double click a batch file like:
    robocopy c:\minecraft c:\backup\minecraft /mir
    and then reopen the map.
    It should only take some seconds to do it and switching to main menü and back on the map is fast. No need to end the whole game.

    Maybe with special backup software capable of saving open files or volume shadow copy features could help too.
  3. Yusunoha

    Yusunoha New Member

    I used to use an awesome mod called Forge Backup, but it never got updated past 1.5 sadly :(
    MigukNamja and Flipz like this.
  4. Tyrindor

    Tyrindor New Member

    Correct me but i'm wrong but this would only make the backup have a chunk reset. Your main world/main save would still be fine to my knowledge. You just need to keep multiple backups, so in the rare case it backs up the same time the world is saving, the next backup in ~15 minutes would be fine, as well as the previous backup. Which still beats losing an entire world due to not having a backup of any kind.
  5. Sphinx2k

    Sphinx2k New Member

    I can only write to me knowledge. One time i made a backup of our Server while it was running (and not in save-off mode) that caused some chunk resets.
    So if minecraft opens a file to write chunk data the backup process cannot copy this file. -> Missing chunk in Backup.
    If you Backup and minecraft opens a file for write it cannot do this -> Possible Chunk reset in minecraft (i don't know if the write is then just delayed or completely abandoned).

    The better way is to generate a clean backup directly.
  6. PhilHibbs

    PhilHibbs Forum Addict Trusted User

    I have a simple batch script that I run before launching MineCraft. I can post it if you like. I find that dropping out of MC and reloading every so often is a good idea anyway.
  7. Merendel

    Merendel New Member

    You might want to consider checking out this mod WorldStateCheckpoints. It gives several options for saveing/loading your world including seting it up to auto save every so many minutes
    Molten and neofrost01 like this.

Share This Page