[INACTIVE][ADMN] BackupPlugin v0.8.5 (Backups & Maps)

Discussion in 'Inactive/Unsupported Plugins' started by MysticX, Jan 17, 2011.

  1. Offline

    MysticX

    I finally managed to port my BackupPlugin to Bukkit.
    You can find the original thread at Hey0's forum

    There are some changes and issues with porting to Bukkit:
    Console commands won't work at all, also the plugin does not force a world save nor disables saving for the progress of backuping! This will be fixed when it's possible to access console commands with Bukkit.
    Also there are some new config options. As there is currently no user rights management, you need to specify all authorized users in the config. Also you now need to set your world name in there.

    All other parts of the plugin haven't changed (especially automatic backups and ingame commands are working), so expect the same bugs/issues! Feel free to modify my work if you want and can, because I can't actively develop for some weeks, so don't expect big updates from me. But I know there are other talented plugin developers out there :)


    BackupPlugin v0.8.5

    This plugin allows you to create world backups or to generate world maps automatically or via ingame command.

    Commands
    • /backup <force> (optional) - backups your world data
    • /map <force> (optional) - generates map(s) of your world
    • /breload - reloads BackupPlugin configuration file
    • /loglevel <level> - sets log level
    Valid arguments for force are true & false. Using a command with true will result in a forced cache rebuilt, useful if you want to avoid the cache-lifetime for any reason.
    Valid arguments for log level are FINEST, FINE, INFO, WARNING or SEVERE (case sensitive!), default is INFO. FINE & FINEST will generate debug output.
    Valid arguments for time unit are SECONDS, MINUTES, HOURS, DAYS (case sensitive!), default is MINUTES.


    Properties

    This plugin will generate a properties file in your server home (BackupPlugin.properties)
    Here are two examples:

    Standard properties file (for mcmap): here
    My properties file (for c10t): here


    Version History
    • v0.8.5
    • v0.8.4
      • fixed issues with user rights
    • v0.8.3
      • ported to Bukkit
      • added config option for world name
      • added config option authorized-users, separate names with semicolon
      • changed first-run pattern to HHmm (removed the colon!)
      • auto-save while doing backups won't work for now
      • console commands also won't work
    • full version history
    Future Updates
    Known Issues / Bugs
    • spaces in folder structure will lead to fail of mapping!
    • windows paths only work if double backslash is used (for example C:\\temp\\world-maps\\ )
    • 0 byte zips sometimes
    • fail of backup because of tmp_chunk.dat (will be fixed in a future bukkit version)
    If you find something that's not working, please set loglevel to FINEST and paste your server logs along with the BackupPlugin.properties here in this thread, or send it to me via pm. Also it would help to know your OS and java version. I'll probably look into it then!


    License

    [​IMG]
    BackupPlugin by MysticX is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

    Source codes are included in the jar file.


    Download

    As usual: This plugin is still beta and could behave unexpected or corrupt your world backups. So please do a manual backup of your world before using it!

    Plugin
    Recommended mapping tools
     
  2. Offline

    SeeD419

    Anyway to clean this up a bit?

    2011-01-23 03:08:32 [INFO] [BackupPlugin] (com.mysticx.bukkit.backupplugin.BackupPlugin) BackupPlugin version 0.8.5 is enabled!
    2011-01-23 03:08:32 [WARNING] [BackupPlugin] (com.mysticx.bukkit.backupplugin.MapperUnit) Disabled MapperUnit, mapper_path invalid: mcmap\mcmap.exe
    2011-01-23 03:08:32 [INFO] [BackupPlugin] (com.mysticx.bukkit.backupplugin.BackupPlugin) Finished setting up a thread: class com.mysticx.bukkit.backupplugin.BackupUnit Next run in: 53
    1 minutes.

    I mean it seems to function well but that just looks bad...
     
  3. Offline

    MysticX

    Seems like the cache wasn't built properly. Is there any more log information before that?
    Also does the backup folder exist?



    Sure, I'll clean up the outputs with next version. It does look a bit weird this way (new package structure's fault! ;) )
     
  4. Offline

    IncendiaDrakon

    I'm using c10t v1.5 to render maps and it keeps crashing. I'm using the config you posted back on the hMod forums. I'll admit my map is rather large, but cartograph can render it as oblique. Could you explain the parameters for the map function more thoroughly?
     
  5. Offline

    RchGrav

    I think its a great idea that you are going to merge BackupArea into this plugin... (Especially since it has been dormant since its initial Bukkit port.) Sometimes making a backup of only certain parts of the map is critical.

    Honestly all of my FULL backups are handled outside of the minecraft server via scripts... HOWEVER, I found BackupArea very instrumental in fixing my map a number of times back on hMod when some strange corruption was taking place. There were chunks outside of the boundaries of the map, which were causing my mapping scripts to generate a huge image with tons of open area around the map.

    By using BackupArea I was able to tag a large cuboid in the center of my map, and combine that backup with a previous one that didn't have the map corruption. This ultimately saved out map and was invaluable at the time.

    I noticed that Yagoda hasn't done too much on his since it was intially posted, and it won't run on more recent versions of bukkit (as far as I could tell). I already had to roll back to CraftBukkit 33 just to be able to use BackupArea to export the centermost region of my map when I decided to implement borders.

    Can I assume BackupArea is being abandoned in favor of integrating it here, or are both plugins going to co-exist with your version implementing his feature set?

    Rich
     
  6. Offline

    MysticX


    What exactly do you mean with "crashing"? bukkit, minecraft, c10t, stops responding, doesn't generate a file at all? Also I need to see your logs to be able to help (with loglevel = FINEST!).
    The map parameters are all depending on the mapping tool used. So if you use c10t, you can get an excellent explanation of all parameters by typing "c10t -h" or "c10t --help".
    The only important things for the plugin are the wildcards for the paths. Which would be $o for the output path, $m for the mapper path and $w for the world path.

    We did plan to merge our plugins a while ago, but both were really busy. So hopefully I can get it done soon.
    Yes, most likely BackupArea will be abandoned, because it's unnecessary to continue both plugins. I'll completely integrate it into my BackupPlugin,
     
  7. Offline

    IncendiaDrakon

    Gah, I feel like an idiots Sorry, I'll get you the details. Off the top of my head, It said map failed to generate. I'll post my logs.
     
  8. Offline

    Antac55

    I don't know if this sounds like a good idea or not, but it would be nice to be able to control backups from the Remote plugin that does mapsaves and auto-reboots as well.. that way these 2 plugins don't interfere and backups can be done remotely by command. Just an idea.
     
  9. Offline

    Mukrakiish

    Just started getting this error. Its been backing up for 2 days now without issue...but now its kind of kicking out on itself. I had noticed on a previous reply that you wanted some info before the error happened so I copied the entire length of the glob.
     
  10. Offline

    chernobyl360

    Code:
    save-all
    2011-01-24 22:49:28 [INFO] CONSOLE: Forcing save..
    2011-01-24 22:49:28 [INFO] CONSOLE: Save complete.
    2011-01-24 22:50:56 [INFO] [BackupPlugin] (com.mysticx.bukkit.backupplugin.Backu
    pPluginPlayerListener) chernobyl360 triggered world backup. force = false
    2011-01-24 22:50:56 [INFO] [BackupPlugin] (com.mysticx.bukkit.backupplugin.Backu
    pUnit) Starting backup process..
    2011-01-24 22:50:56 [SEVERE] [BackupPlugin] (com.mysticx.bukkit.backupplugin.Cac
    heControl) Error while zipping temp folder!
    java.util.zip.ZipException: ZIP file must have at least one entry
            at java.util.zip.ZipOutputStream.finish(Unknown Source)
            at java.util.zip.DeflaterOutputStream.close(Unknown Source)
            at java.util.zip.ZipOutputStream.close(Unknown Source)
            at com.mysticx.bukkit.backupplugin.IOHelper.zipDirectory(IOHelper.java:6
    1)
            at com.mysticx.bukkit.backupplugin.CacheControl.persistCache(CacheContro
    l.java:297)
            at com.mysticx.bukkit.backupplugin.BackupUnit.run(BackupUnit.java:63)
            at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
            at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
            at java.util.concurrent.FutureTask.run(Unknown Source)
            at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
    access$301(Unknown Source)
            at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
    run(Unknown Source)
            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
    )
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
            at java.lang.Thread.run(Unknown Source)
    2011-01-24 22:50:56 [WARNING] [BackupPlugin] (com.mysticx.bukkit.backupplugin.Ba
    ckupUnit) Backup failed
    
     
  11. Offline

    Zydox

    Would it be possible to just restore a part of the world, or do you have to do a complete restore if you wanna use the backuped worlds?
     
  12. Offline

    IncendiaDrakon

    At this point, you have to unzip the backup, which is the entire map, and use that as a restore.
     
  13. Offline

    Jessy1237

    Hey um MysticX

    I love your work and all i love your plugin it has saved me many times but now all my plugins but yours works in the command side because all my plugins use a plugin called permissions which yer kinda self explanitory. i know you are probably some person trying to get on in their life but please i ask of you to get your plugin to use permissions.

    Thanks in Advance
     
  14. Offline

    Lookatmego

    hey man this works awesome for me just 1 question i didnt get one of the two mapper programs and when i do /backup it says i trigeered and makes a zip file now 2 questions:
    1 if i wanna reload that backup how do i do that?
    2nd: is there a way i can make it so when i bakup they overwrite they old backup save so itdoesnt take so much space?
     
  15. Offline

    Jessy1237

    Yes you can what you need to do is edit your settings file for the backupplugin to say only keep X backups, and to use the backups you just extract the zip and replace it with the original world and you are then using your backup.
     
  16. Offline

    drei941

    even better:
    get the worldedit plugin. change its configuration so its snapshots setting points to your backup folder.
    select a region you want restored with worldedit. enter //restore
    worldedit now restores the selected region from the backup, keeping the rest of the world in it's orignal, probably advanced, state.
    worldedit will always pick the latest backup unless you provide it with a name, like //restore backup_name.zip
     
  17. Offline

    Etsijä

    Plugin works great, thank you!

    * * *

    @MysticX: seems like a lot of plugin devs are taking as a de facto standard that they create a directory for their plugin config files under /plugins/NameOfPlugin directory. Could you move BackupPlugin's config files to comply with that? That would tidy up things for the server owner quite a lot.
     
  18. Offline

    ssechaud

    Anyway to make this do mapping in both mcmap and c10t? Both look cool. This plugin saves my life! Thanks!
     
  19. Offline

    Etsijä

    What format is required for an absolute path for the backup folder. I have it in C:\mc\world_backups, so do I need to specify it in this mode (that some plugins seem to require)

    Code:
    snapshots:
        directory: C\:\\mc\\world_backups
    or what?
    --- merged: Jan 29, 2011 11:14 AM ---
    Nvmnd, I think I got the correct format now - but how do I actually select an area with my wooden axe to restore? I'm trying this:
    - I delete a tree
    - I select a rectangular area from around the tree by clicking on the ground level the area's two opposite corners, one with a left-click, the other with a right-click
    - I type "//restore"

    But BackupPlugin keeps telling me "Restored; 0 missing chunks and 0 other errors". It does point to the correct backup though.

    What am I missing? A command?

    * * *

    Nevermind again, figured out I had to expand the initial flat rectangle up or down. It's amazing how much you learn by talking to yourself.
     
  20. Offline

    Lookatmego

    ok so i have to move my vps since old 1 rank out and i wanna keep my world file..now is it possible for me to take the zip that backup made and make the world file and how?do i just take every file in the zip and put it a folder caled World?or do i ahve to add some files to it and stuff plz lemme knowwith most detail as u can plz ty

    (please do not use caps.. -silentspy)
     
  21. Offline

    xnefoo

    help

    When i do /backup it wont backup
     
  22. Offline

    Puppetx

    Is bukkit now able to access the console? I can in game using /#help. I'd imagine this is being proxied by bukkit.
     
  23. Offline

    Etsijä

    This has to be the most obfuscated post I've seen in this forum.
     
  24. Offline

    capsar

    still works?
     
  25. Offline

    SeeD419

    2011-02-01 11:59:38 [INFO] [BackupPlugin] (com.mysticx.bukkit.backupplugin.BackupUnit) Starting backup process..
    2011-02-01 11:59:38 [INFO] [BackupPlugin] (com.mysticx.bukkit.backupplugin.CacheControl) Rebuilding Cache. This can take several minutes, depending on the world size.
    2011-02-01 11:59:38 [INFO] [BackupPlugin] (com.mysticx.bukkit.backupplugin.CacheControl) Deleting cache, might be obsolete.
    2011-02-01 11:59:46 [INFO] [BackupPlugin] (com.mysticx.bukkit.backupplugin.BackupUnit) Starting backup process..
    2011-02-01 11:59:46 [INFO] [BackupPlugin] (com.mysticx.bukkit.backupplugin.CacheControl) Rebuilding Cache. This can take several minutes, depending on the world size.
    2011-02-01 11:59:46 [INFO] [BackupPlugin] (com.mysticx.bukkit.backupplugin.CacheControl) Deleting cache, might be obsolete.
    2011-02-01 11:59:58 [SEVERE] [BackupPlugin] (com.mysticx.bukkit.backupplugin.BackupUnit) Error during backup:
    java.lang.IllegalMonitorStateException
    at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(Unknown Source)
    at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(Unknown Source)
    at java.util.concurrent.locks.ReentrantLock.unlock(Unknown Source)
    at com.mysticx.bukkit.backupplugin.CacheControl.persistCache(CacheControl.java:308)
    at com.mysticx.bukkit.backupplugin.BackupUnit.run(BackupUnit.java:63)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
    at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
     
  26. Offline

    Etsijä

    Works just great on my system, on top of #186.
     
  27. Offline

    tips48

    i get an error too, so i decided to force it... just checked my backups and they are empty:(
     
  28. Offline

    chernobyl360

    well typing /backup force just basically does nothing. just leaves me a blank console. also /map force does nothing. so im guessing the plugin is shot. anything i can use while this is in the shop?? :D
     
  29. got the same java.lang.IllegalMonitorStateException... requesting immediate help
     
  30. Offline

    Jobsti

  31. Offline

    blueicing

    Hey was thinking if there is a way to create a disable if there hasn't been any changes to the world when no one is online to stop creating redundant backups.
     

Share This Page