[INACTIVE][ADMN] SimpleSave v3.25 Simple automatic saving! [000] - Backups!

Discussion in 'Inactive/Unsupported Plugins' started by desmin88, Mar 11, 2011.

  1. Offline


  2. Offline


    I set SimpleSave to back up every 6 hours (360 minutes). However, it appears to be backing up every time a user logs out instead. I'm guessing this could be a bug involving the schedulers?
  3. Yeah, now I'm having the same thing, it keeps saving like mad. How do I fix this?
  4. Offline


    It's not too bad for me cause there's relatively few people on my server currently while the word spreads that it's back up, so people don't log out often.
    But once it starts getting more users, it will start to become an issue.

    By the way ImmortalOverlord, you got post number 399999.
  5. Offline


    I'm having the same issue on my server, I've got it set to 15-minute saves and 60-minute backups and I sat here and watched it over the course of an hour and it saved 8 times and backed up twice.

    I did notice on both @d3rtus and my server log, the server backs up at [x] time, then exactly 1 minute later.
    back,save    time    : note            (counter[s])
     (0b,0s)     1:56:03 : Player login.   (time = 0 mins)
     (0b,1s)     2:10:04 : World saved.    (time = 14 mins)
     (0b,2s)     2:11:06 : World saved.    (time = 15 mins; 1 min since last save)
     (0b,3s)     2:25:06 : World saved.    (time = 29 mins; 14 mins since last save)
     (0b,4s)     2:26:06 : World saved.    (time = 30 mins; 1 min since last save)
     (0b,5s)     2:40:07 : World saved.    (time = 44 mins; 14 mins since last save)
     (0b,6s)     2:41:07 : World saved.    (time = 45 mins; 1 min since last save)
     (1b,6s)     2:55:07 : World backup.   (time = 59 mins)
     (1b,7s)     2:55:08 : World saved.    (time = 59 mins, 14 mins since last save)
     (2b,8s)     2:56:08 : World backup.   (time = 60 mins; 1 min since last backup)
     (2b,8s)     2:56:09 : World saved.    (time = 60 mins, 1 min since last save)
    Here is my config file:
    Show Config
    #SimpleSave Config File 
    #Tue Jun 21 00:18:11 EDT 2011
    save.message.starting=§7[§fServer§7]§f: §6Beginning world save.
    save.message.ending=§7[§fServer§7]§f: §2World save complete.
    backup.message.starting=§7[§fServer§7]§f: §6Beginning hourly backup.
    backup.message.ending=§7[§fServer§7]§f: §6Hourly backup complete.
    backup.date.format=yyyy-MM-dd hh-mm-ss

    As people have said, this is a very useful plugin but it just needs this one detail hammered out. Since I have 'backup.history.length=24', this also limits me to effectively 12 hours since it is doing 2 backups every hour. If I wanted to do 24 backups (so that I have one for each hour of the past day), I would be forced to double this, which is very bad when you have 3 maps totaling nearly 150MB (48*150MB is 7.2GB that's constantly being used as backups).

    Good eye. I noticed that as well. I'm not really sure if this has anything to do with why it's still backing up more frequently that configured, but nonetheless a minor bug. :)

    Thanks for a great plugin otherwise. If you do fix this, your plugin will be golden.
  6. Offline


    I'm only using simplesave for backups and it isn't working for that.

    this is my config;
    #SimpleSave Config File 
    #Sun Jun 19 04:07:32 BST 2011
    backup.message.ending=[SimpleSave] Ending world backup
    backup.message.starting=[SimpleSave] Beginning world backup
    save.message.starting=[SimpleSave] Beginning world save
    save.message.ending=[SimpleSave] Ending world save
    backup.date.format=dd-MM-yy hh-mm-ss
    server has been running 2 days now and no backups have been made
  7. Offline


    On your side, my backups are perfectly fine. Try setting backups to 30 minutes, I think it's innacurate due to bukkit schedulers.
    Very detailed report. I think it has to due with the inaccuracies of bukkit's schedulers.

    I'm going to work on a rewrite that will use threads and not bukkits inaccurate scheduler for a more robust hardy saving system.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 11, 2016
  8. Offline


    cheers. This mod is very helpful and glad you are keeping at it.
  9. Offline


    Github says error :(

    Whatever it works now.
  10. Offline


    Your very undescriptive. How can I fix this 'problem' your having if you don't tell me any information about it.
  11. Offline

    Jake Radcliff

    When it is time for the plugin to do /save-all (the equivalent) it generates the error code below. Also, it doesn't back up the server. At all. No backup folder in the server root folder.
    2011-06-22 22:02:12 [INFO] Saving World. . .
    2011-06-22 22:02:12 [WARNING] Task of 'SimpleSave' generated an exception
    java.lang.IllegalArgumentException: No enum const class org.bukkit.ChatColor.PURPLE
        at java.lang.Enum.valueOf(Enum.java:196)
        at org.bukkit.ChatColor.valueOf(ChatColor.java:9)
        at org.desmin88.simplesave.SimpleSave$SaveMethod.run(SimpleSave.java:125)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:138)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:386)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
  12. Offline


    @Jake Radcliff
    There is no color purple for message colors.
    Check color values in the OP configuration spoiler
  13. Offline

    Jake Radcliff

    *Facepalm* Thank you... I should have read over the error message before just posting it... You are awesome.
  14. Offline


    Would like a manual save command with permissions if possible. Been having issues with towny and would like to save prior to restarting the server.
  15. Offline


    Just started using this and I'm a bit confused. I have it set to backup every 30 minutes and save history is 20. When I check my backup folder (after running it all night) I have 10 backups and they range from every 10 minutes to 20 minutes. Is this because of the inaccurate Bukkit scheduler problem? Why do I only see 10 backups?

    Thanks! Love the plugin other than these confusing issues.

    Edit: Just noticed this too: the size of the nether zip files varies greatly over time. Started at 1.5MB (unused) and went down to around 300k before gradually getting to 1.5MB again.
  16. Offline


    08:39:13 [INFO] [SimpleSave] Beginning world backup
    08:39:13 [INFO] [SimpleSave] Beginning world save
    08:39:14 [SEVERE] SimpleSave: Error when copying files!
    08:39:14 [SEVERE] SimpleSave: This means a plugin you have is not acting nice, o
    r isn't threadsafe
    08:39:14 [SEVERE] SimpleSave: Go to my thread and post the following information

    08:39:14 [INFO] Failed to copy full contents from 'world\region\r.-1.-1.mcr' to
    08:39:14 [SEVERE] java.io.IOException: Failed to copy full contents from 'world\
    region\r.-1.-1.mcr' to 'backup\world\region\r.-1.-1.mcr'
    08:39:14 [SEVERE] at org.desmin88.simplesave.FileUtils.doCopyFile(FileUtil
    08:39:14 [SEVERE] at org.desmin88.simplesave.FileUtils.doCopyDirectory(Fil
    08:39:14 [SEVERE] at org.desmin88.simplesave.FileUtils.doCopyDirectory(Fil
    08:39:14 [SEVERE] at org.desmin88.simplesave.FileUtils.copyDirectory(FileU
    08:39:14 [SEVERE] at org.desmin88.simplesave.FileUtils.copyDirectory(FileU
    08:39:14 [SEVERE] at org.desmin88.simplesave.FileUtils.copyDirectory(FileU
    08:39:14 [SEVERE] at org.desmin88.simplesave.Backup.backup(Backup.java:42)

    08:39:14 [SEVERE] at org.desmin88.simplesave.SimpleSave$BackupMethod.run(S
    08:39:14 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    08:39:14 [SEVERE] at java.lang.Thread.run(Unknown Source)
    08:39:17 [INFO] [SimpleSave] Ending world backup
    08:39:19 [INFO] [SimpleSave] Ending world save
    08:39:19 [WARNING] Can't keep up! Did the system time change, or is the server o

    I DONT KNOW WATS WRONG!!!?!?!?!?!?!?! ;/
  17. Offline


    I would wonder if you have 2 worlds... the save history is a total between all worlds so if you have 2 worlds you will get 10 from each world saved... the timing part is likely to do with the scheduler issue.
  18. Offline



    To users of SimpleSave, expect a new version out tomorrow or sunday that fixes the issues of wrong saving/backup times.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 11, 2016
  19. Offline


    Can we get a command to force backup? That's pretty much all I feel this plugin is missing. (BTW I still love it even if you don't add that. I'll just love it more if you do.)
  20. Offline


    /ssbackup works I think. Not from the console though. Only in game.
  21. Offline


    Good to hear. I'll just keep it in then I guess. I just noticed when I fell to another world (with the Inception plugin) that the backup fired. I'm not sure if that was it thinking I "left" or if your issues involves multiworld stuff but maybe that will help.

    I guess my only other requests would be an option to backup the plugins folder and the mysql database (it's not like I can leave them out of a comprehensive backup plan), though I know not everyone uses mysql :D
  22. Thank you for updating to 928 so quickly :)
  23. Offline


    SS updated to 3.2:
    Ultra robust scheduling system...no lag or delays on saves/backups happens to the second.
  24. Offline


    CB860, got this when I logged in after just starting the server:

    20:58:26 [SEVERE] Could not pass event PLAYER_JOIN to SimpleSave
    java.lang.IllegalStateException: Timer already cancelled.
    at java.util.Timer.sched(Unknown Source)
    at java.util.Timer.schedule(Unknown Source)
    at org.desmin88.simplesave.SSplayerListener.Scheduling(SSplayerListener.java:65)
    at org.desmin88.simplesave.SSplayerListener.onPlayerJoin(SSplayerListener.java:25)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:243)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
    at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:126)
    at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:96)
    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:33)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:399)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
  25. Offline


    Fill out an error reporting form from the OP. Then I can help you.

    Woops, my big error there. Update soon.
    Updated to 3.21, fixes exception

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 11, 2016
  26. Offline


    is the link to 3.21? I tried updating and it still says 3.13

    edit: launching the server says 3.13 initialized. Also, not sure if it was fixed in 3.2(1) or not, but it's currently saving the server when no one is logged in, and plugin.ignore.noplayers=false in the config.
  27. Offline


    Woops, forget to set that. But yes, its 3.21
    I'm looking into that error.
  28. Offline


    is there a command to do a manual backup?
  29. Offline



    When shutting down my server i get the following error....
  30. Offline


    I think it's /ssBackup although I'm not 100% sure.

    Also, @desmin88 I can't seem to download the right version, every time I click the link it gives me 3.13 :(
    I've cleared the config and jar from my computer before downloading and it's still not right.
  31. Offline


    Your using an outdated version.
    I've told you already I forgot to change it to 3.21.
    Anyways update to 3.22

Share This Page