[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


    • save.message.noplayers = false; True/false to send console messages on no players
    • backup.message.noplayers = false; True/false to send console messages on no players
  3. Offline


    Yeah, I know... the thing is I want the message, but it should only send ONCE until another player logs on.
    Otherwise when you check the console/logs it's just spam.

    Having it send once would actually be useful though.

    Also, it didn't do this is the previous version... but whenever it saves and backups the console sprays this out:
    13:08:37 [INFO] ConsoleCommandSender: Disabling level saving..
    13:08:38 [INFO] ConsoleCommandSender: Enabling level saving..
    I wouldn't mind if it wasn't in the chat :S
  4. Offline


    Nice job on the backups. It is working great on my server.

    If there was a way to control the naming of the zip files or at least prefix the world name to the zip, this would help with WorldEdit snapshots. For instance, I have WorldEdit configured to look in my "backups" folder. WorldEdit is able to see the backup zip files created by SimpleSave and work with them just fine under the current naming structure to restore areas.

    The hiccup comes from having multiple worlds; I just simply don't know which zip to use sometimes as I have multiple worlds with multiple backups all around the same time. I can find out just by connecting to the server and looking at file sizes (my nether world is smaller), but if the zip also contained the world name it would be perfect.

    Again, awesome plugin and thanks for your time.
  5. Offline


    That should only comeout when it does a backup. I don't know how to get rid of that from coming up though.
    I'll add that in 2.2.1
  6. Offline


    Is it possible to specify the save directory? Currently i put my mc in a ramdrive. I have it limited so i can provide more ram to MC during run time. So space is a luxury on the drive. So i currenlty have an E: = ramdrive and would like to specify it save into the C:\mcbackups\ or something similar.
  7. Offline


    In 2.2.1 you will be able too.
  8. Offline


    @desmin88 Woot, Awesome! Thanks!
  9. I am confused, sorry desmin88, but what does this plugin do? Does it save and backup the world files to an sql database in case someone griefs the server or does it just automatically do saves to the world regions? Sorry for the noob question.
  10. Offline


    @Eccentric Warmonger
    Reread the first post. I've explained so many times, it's getting tiring.
  11. Ok, I understand that it will do server backups, but I still don't understand how. You are not using sql or sqlite. So if I set up a backup interval of 1 a week, how does it store the backup? Does it copy the whole world file?
  12. Offline


    @Eccentric Warmonger
    sql or sqlite would not even apply to saving files. Databases are for things like configuration.
    It zips the world and stores it new folder.
  13. Gotcha, thank you for clarification.
  14. Offline


    In the backups folder, none of the zip files contain the "world" folder. My other worlds, like the nether world, are there, just not "world" which is my main world.
  15. Offline


    Thats odd. Any errors in console?
  16. Offline


    Actually, yes. I did notice some. I really should have copied it. It looked like it tried to do a world save when it was still backing up. That's when the errors came in the console. I'll make sure I stay logged in and watch for it again.
  17. Offline


    Hmm. I think I know what might be causing this. I'll get back to you soon.
  18. Offline


    No errors in the console this time but here it is.
    22:06:12 [INFO] Beginning world backup
    22:06:12 [INFO] Disabling level saving..
    22:06:12 [INFO] ConsoleCommandSender: Disabling level saving..
    22:06:12 [INFO] Disabling level saving..
    22:06:12 [INFO] ConsoleCommandSender: Disabling level saving..
    22:06:12 [INFO] Auto Saving Worlds
    22:06:15 [INFO] Save complete
    22:06:15 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    22:06:45 [INFO] Enabling level saving..
    22:06:45 [INFO] ConsoleCommandSender: Enabling level saving..
    22:06:45 [INFO] Delete old backups
    22:06:45 [INFO] World backup complete
    Still no ZIPs with the "world" folder.

    Looks like it is still saving the world even though it says "Disabling level saving".
    Maybe doesn't backup when it is saving?
  19. Offline


    Post your config file please.
  20. Offline


    #SimpleSave Config File
    #Sun Apr 17 11:34:56 EST 2011
    save.message.ending=Save complete
    backup.message.ending=World backup complete
    backup.message.starting=Beginning world backup
    save.message.starting=Auto Saving Worlds
  21. Offline


    Try changing your save time to something not perfectly divisible into 60. Such as 25, so the world saves wont occur at a backup time as well.
  22. Offline


    I haven't tried that yet, will do it now. In the mean time, I changed "backup.history.length" to 6 and now is saves all 6 worlds including "world". Seemed to work fine though I got these errors in the console when it started autosaving during the backup.

    10:56:08 [INFO] Beginning world backup
    10:56:08 [INFO] Disabling level saving..
    10:56:08 [INFO] ConsoleCommandSender: Disabling level saving..
    10:56:08 [INFO] Disabling level saving..
    10:56:08 [INFO] ConsoleCommandSender: Disabling level saving..
    10:56:08 [INFO] Auto Saving Worlds
    10:56:08 [SEVERE] java.io.IOException: The handle is invalid
    10:56:08 [SEVERE]    at java.io.RandomAccessFile.seek(Native Method)
    10:56:08 [SEVERE]    at net.minecraft.server.RegionFile.a(SourceFile:342)
    10:56:08 [SEVERE]    at net.minecraft.server.RegionFile.a(SourceFile:279)
    10:56:08 [SEVERE]    at net.minecraft.server.ChunkBuffer.close(SourceFile:259)
    10:56:08 [SEVERE]    at java.util.zip.DeflaterOutputStream.close(Unknown Source)
    10:56:08 [SEVERE]    at java.io.FilterOutputStream.close(Unknown Source)
    10:56:08 [SEVERE]    at net.minecraft.server.ChunkRegionLoader.a(SourceFile:64)
    10:56:08 [SEVERE]    at net.minecraft.server.ChunkProviderServer.b(ChunkProviderServer.java:163)
    10:56:08 [SEVERE]    at net.minecraft.server.ChunkProviderServer.a(ChunkProviderServer.java:193)
    10:56:08 [SEVERE]    at org.bukkit.craftbukkit.CraftWorld.save(CraftWorld.java:543)
    10:56:08 [SEVERE]    at org.desmin88.simplesave.Backup.backup(Backup.java:36)
    10:56:08 [SEVERE]    at org.desmin88.simplesave.SimpleSave$BackupMethod.run(SimpleSave.java:120)
    10:56:08 [SEVERE]    at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:33)
    10:56:08 [SEVERE]    at java.lang.Thread.run(Unknown Source)
    10:56:11 [INFO] Save complete
    10:56:11 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    10:56:37 [INFO] Enabling level saving..
    10:56:37 [INFO] ConsoleCommandSender: Enabling level saving..
    10:56:37 [INFO] Delete old backups
    10:56:38 [INFO] World backup complete
  23. Offline


    Alright, i'm going to throw you a loop here.. The thing goes to backup the world data. and it says this:

    2011-04-18 21:55:34 [INFO] [SERVER] Initializing the backup of this wonderful world that you helped create!
    2011-04-18 21:55:34 [INFO] Disabling level saving..
    2011-04-18 21:55:34 [INFO] ConsoleCommandSender: Disabling level saving..
    2011-04-18 21:55:34 [INFO] Disabling level saving..
    2011-04-18 21:55:34 [INFO] ConsoleCommandSender: Disabling level saving..
    2011-04-18 21:55:34 [INFO] [SERVER] Commencing world save!
    2011-04-18 21:55:35 [SEVERE] java.io.IOException: The handle is invalid
    2011-04-18 21:55:35 [SEVERE] at java.io.RandomAccessFile.seek(Native Method)
    2011-04-18 21:55:35 [SEVERE] at net.minecraft.server.RegionFile.a(SourceFile:342)
    2011-04-18 21:55:35 [SEVERE] at net.minecraft.server.RegionFile.a(SourceFile:279)
    2011-04-18 21:55:35 [SEVERE] at net.minecraft.server.ChunkBuffer.close(SourceFile:259)
    2011-04-18 21:55:35 [SEVERE] at java.util.zip.DeflaterOutputStream.close(Unknown Source)
    2011-04-18 21:55:35 [SEVERE] at java.io.FilterOutputStream.close(Unknown Source)
    2011-04-18 21:55:35 [SEVERE] at net.minecraft.server.ChunkRegionLoader.a(SourceFile:64)
    2011-04-18 21:55:35 [SEVERE] at net.minecraft.server.ChunkProviderServer.b(ChunkProviderServer.java:163)
    2011-04-18 21:55:35 [SEVERE] at net.minecraft.server.ChunkProviderServer.a(ChunkProviderServer.java:193)
    2011-04-18 21:55:35 [SEVERE] at org.bukkit.craftbukkit.CraftWorld.save(CraftWorld.java:543)
    2011-04-18 21:55:35 [SEVERE] at org.desmin88.simplesave.Backup.backup(Backup.java:36)
    2011-04-18 21:55:35 [SEVERE] at org.desmin88.simplesave.SimpleSave$BackupMethod.run(SimpleSave.java:120)
    2011-04-18 21:55:35 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:33)
    2011-04-18 21:55:35 [SEVERE] at java.lang.Thread.run(Unknown Source)
    2011-04-18 21:55:35 [INFO] [SERVER] Save complete!

    Mind that... Anyways, that's the error i'm getting, i'm assuming it still archives everything alright... i'll do a bit by bit check of the data to see if it's good... if i can catch it just as it saves.
    [EDIT]: I just noticed the above conversation is about the same error set... yay.
    Ah, and i forgot what i was going to tell you... Oh yes... running cb670. :p
  24. Offline


    Try updating to 677.
  25. Offline


    I am running 677 and still get those errors.

    Ok, I have tried the different save interval so it does not interfere with the backup. I pasted the console below. As you can see, there is no saving occuring during the backup but there are still some errors. Mostly the same as before but slightly different.

    14:24:20 [INFO] Beginning world backup
    14:24:20 [INFO] Disabling level saving..
    14:24:20 [INFO] ConsoleCommandSender: Disabling level saving..
    14:24:20 [INFO] Disabling level saving..
    14:24:20 [INFO] ConsoleCommandSender: Disabling level saving..
    14:24:41 [SEVERE] java.io.IOException: The handle is invalid
    14:24:41 [SEVERE]    at java.io.RandomAccessFile.seek(Native Method)
    14:24:41 [SEVERE]    at net.minecraft.server.RegionFile.a(SourceFile:342)
    14:24:41 [SEVERE]    at net.minecraft.server.RegionFile.a(SourceFile:279)
    14:24:41 [SEVERE]    at net.minecraft.server.ChunkBuffer.close(SourceFile:259)
    14:24:41 [SEVERE]    at java.util.zip.DeflaterOutputStream.close(Unknown Source)
    14:24:41 [SEVERE]    at java.io.FilterOutputStream.close(Unknown Source)
    14:24:41 [SEVERE]    at net.minecraft.server.ChunkRegionLoader.a(SourceFile:64)
    14:24:41 [SEVERE]    at net.minecraft.server.ChunkProviderServer.b(ChunkProviderServer.java:163)
    14:24:41 [SEVERE]    at net.minecraft.server.ChunkProviderServer.a(ChunkProviderServer.java:193)
    14:24:41 [SEVERE]    at net.minecraft.server.World.a(World.java:135)
    14:24:41 [SEVERE]    at net.minecraft.server.World.h(World.java:1401)
    14:24:41 [SEVERE]    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:359)
    14:24:41 [SEVERE]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    14:24:41 [SEVERE]    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    14:24:42 [INFO] Enabling level saving..
    14:24:42 [INFO] ConsoleCommandSender: Enabling level saving..
    14:24:42 [INFO] World backup complete
    EDIT: It still appears to backup the worlds regardless of these errors so it doesn't seem to be broken.

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


    You forgot to add the s from source to be a link :p
  27. Offline


    This is an occasional error, and as far as my testing goes, does not affect saves or server operaton. I can't find the cause of it either.
    How many multiworlds do you have?
    Also, see above.
  28. Offline


    Yeah, it doesn't seem to break the saving or world backups or crash the server or anything. So it all seems good.

    I have 6 worlds all together. It's just me and my friend who play on it. We have the main world, a nether, we imported our single player worlds and there are two worlds that we downloaded and wanted to try out.

    They are all backing up now that I changed the "backup.history.length" to 6. I changed it to 18 so that it keeps 3 backups of each world.
  29. Offline


    On cb 677 I am getting a few of these once in a while:

    2011-04-19 08:43:55 [INFO] Disabling level saving..
    2011-04-19 08:43:55 [INFO] ConsoleCommandSender: Disabling level saving..
    2011-04-19 08:43:55 [INFO] Disabling level saving..
    2011-04-19 08:43:55 [INFO] ConsoleCommandSender: Disabling level saving..
    2011-04-19 08:43:55 [SEVERE] java.io.IOException: Bad file descriptor
    2011-04-19 08:43:55 [SEVERE]    at java.io.RandomAccessFile.seek(Native Method)
    2011-04-19 08:43:55 [SEVERE]    at net.minecraft.server.RegionFile.a(SourceFile:342)
    2011-04-19 08:43:55 [SEVERE]    at net.minecraft.server.RegionFile.a(SourceFile:279)
    2011-04-19 08:43:55 [SEVERE]    at net.minecraft.server.ChunkBuffer.close(SourceFile:259)
    2011-04-19 08:43:55 [SEVERE]    at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:149)
    2011-04-19 08:43:55 [SEVERE]    at java.io.FilterOutputStream.close(FilterOutputStream.java:143)
    2011-04-19 08:43:55 [SEVERE]    at net.minecraft.server.ChunkRegionLoader.a(SourceFile:64)
    2011-04-19 08:43:55 [SEVERE]    at net.minecraft.server.ChunkProviderServer.b(ChunkProviderServer.java:163)
    2011-04-19 08:43:55 [SEVERE]    at net.minecraft.server.ChunkProviderServer.a(ChunkProviderServer.java:193)
    2011-04-19 08:43:55 [SEVERE]    at org.bukkit.craftbukkit.CraftWorld.save(CraftWorld.java:543)
    2011-04-19 08:43:55 [SEVERE]    at org.desmin88.simplesave.Backup.backup(Backup.java:36)
    2011-04-19 08:43:55 [SEVERE]    at org.desmin88.simplesave.SimpleSave$BackupMethod.run(SimpleSave.java:120)
    2011-04-19 08:43:55 [SEVERE]    at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:33)
    2011-04-19 08:43:55 [SEVERE]    at java.lang.Thread.run(Thread.java:662)
    2011-04-19 08:43:56 [INFO] Enabling level saving..
    2011-04-19 08:43:56 [INFO] ConsoleCommandSender: Enabling level saving..
    I have exactly 3 of these in the console. And thus far, have 3 backups. Is it failing to locate/remove 'expected' backups that haven't been created yet? Just a thought.

    I just updated to cb 684 .. I'll let you know if anything changes.

  30. Offline


    I have been looking for something like this, and it would be nice that:
    - could use remote backup (<== this is a great todo) natively
    - create differential backups
    - store backups like :
    • 1 from a month ago
    • 1 from 2 weeks ago
    • 2 from 1 week ago
    • 1 from each past day (6 in total)
    • 12 from the last hours
    • 1 every 10 mins from an hour ago
    - the thing above, but configurable about times 1 from a month ago is just stupid for the map (but not for the plugins)
    - real time sync (rsync btw) so that you can power up a secondary server while you fix something
    - restoring areas from backup (integration with other plugins)

    Hope this gives you ideas
  31. Offline


    Well then the error is that you have more worlds to save than your history. Just up the history.

    Most of these ideas of out of the scope of this plugin.

Share This Page