Inactive [ADMN] Backup v2.0 - A full & simple backup plugin [1.2.5-R4.0]

Discussion in 'Inactive/Unsupported Plugins' started by gamerx93, Oct 4, 2011.

     
  1. Offline

    gamerx93

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    [IMG]


    WE NOW HAVE A WEBSITE DEDICATED TO THIS PLUGIN, PLEASE VISIT:


    If you are unable to access the website, you can access the latest stable builds here:


    Backup - A Simple Server Backup Plugin

    This plugin will backup all the worlds and plugins that your server is using, and either ZIP them, or add them to a WorldEdit Compatable folder structure, or any other you want to define.

    It can either run on a schedule, or be run manually in-game, using commands.
    It is developed with simplicity in mind, and it can be a very much a set-and-forget method for server backups.

    Old Thread:

    We have our project hosted over on BukkitDev, but I monitor this thread for bugs/errors, and also GitHub for issue tracking and SCM.

    If you were wondering:
    I have taken over development from Meldanor's plugin, as he lost motivation.
    His thread for the plugin is here: Old Thread

    Features
    • Automatically backups all the worlds, and plugins, and if enabled, ZIP's the folder.
    • WorldEdit-Compatible Backup Structure.
    • Writes worlds, players and plugins from memory to file before backing up.
    • Worlds and plugins can be excluded using the configuration file.
    • Support for the Permissions plugin, and variants of it, has various Permission Nodes.
    • Supports manual backups, from either a player with the correct permissions, or the console.
    • Has the option to delete old backups, after there is a certain amount of backups.
    • Option to only backup when players are active on the server, set in configuration.
    • Date format for back name is customizable in settings.
    • Strings are fully customizable, so localization and small changes are easy!
    • Full support for colours in strings :)
    Downloads



    Dev Build (v1.8.5-dev) [Jenkins]

    Older Versions [Jenkins] (Please use BukkitDev is possible)

    If you find any bugs in a certain build (we like to call them "features"):
    - If you have a GitHub account: Here
    - If you do not: Here

    Changelog

    Version 1.8.4 [gamerx]
    • Updated Last Backup instance.
    • Added bypass node.
    • Last commit for the night.
    • Small Chnage to initiate build testing.
    • - Implemented Issue #36
    • Updated PrepareBackup.
    • Update to BackupTask.
    • Possible fix for Issue #39
    • Updated dependencies to be compatable with 1.0.1-R1.
    • Release 1.8.4.
    Version 1.8.3 [gamerx]
    • Added multiple Exception Handlers.
    • Minor Bugfixes.
    • Possible fix for NPE on every backup.
    • Proposed fix for Issue #28.
    • Small bugfixes.
    Older Changelogs



    Version 1.8.2 [gamerx]

    • Major upgrade of backuptask, and adding of various requested features.
    • Permission nodes for all commands, still in development.
    • Removed "singlebackup".
    • Updated for 1317
    • Minor Code improvements.
    • Command Handler, and new commands.
    • Added full server backup.
    • Added plugin exclusions.
    • Fixed minor code logic.
    • Finished 99% of code documentation.
    Version 1.8.1 [gamerx]

    • Minor fixes.
    • Should be compatible with bukkit 1240.
    Version 1.8 [gamerx & lycano]


    • Changed properties to a "properties.yml" file, and documented.
    • Changed strings to read from a "strings.yml" file.
    • Fixed creating multiple directories, now only created the one specified in settings.
    • Add option to colour strings.
    • Fixed duplicate message issue.
    • Apply backup not deleting fix: http://forums.bukkit.org/threads/inactive-admn-backup-1-6-a-simple-backup-plugin-818.9871/page-11#post-384316
    • Fix spelling fails in code/doco.
    • Optimized Code, Mavenized project.
    • Removed most of command system, will add new handler in next verison.
    • Improved error handling.
    Version 1.7 [gamerx]


    Version 1.6: [Melandor]


    • Added option to control where the backups are getting stored
    • Fixed disabling broadcast messages
    • You can now use also the old save system, which is the same as before 1.5
    • Uses godsny's suggestion for the config file. Thanks !
    • Fixed bug deleting the custom dir when the maximum backup limit is hit!
    • Fixed bug stopping the complete backup if there is one file error!
    • Fixed bug not disabling the automatic backup when you set the BackupIntervall to -1




    Installation
    We have a wiki page documenting how to install the plugin located here.

    Configuration
    If you would like to know more about how to configure the plugin please view the wiki page we have located here.

    Permissions
    The plugin has various permission nodes, that we have documented on our wiki page located here.

    Commands
    The plugin has various commands, so we have put them all on our wiki page located here.

    Want to help with translation?
    I have added all the information to a Wiki page on the subject, so if you want to help out, go here:
    Wiki page on Localization.

    Translations:
    I have added all current translations to the Localization wiki page
    View it here!

    This post has been edited 32 times. It was last edited by gamerx93 Jul 4, 2012.
  2.  
  3. Offline

    gamerx93

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  4. Offline

    Physikbuddha

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I can't start a backup ingame with the command /backup though I have admin-permissions ('*' and permissions are enabled in the config-file) and I'm op.
    I'm using PermissionsEX v.1.15 and Bukkit Build 1317 (but it didn't worked with build 1185 either).
    Calling backup from the console works fine.
    Any recommendations? (Will post permissions-file/backup-config/server-log though no errors on request.)
    EDIT: Not working with build 1240, too.

    This post has been edited 1 time. It was last edited by Physikbuddha Oct 12, 2011.
  5. Offline

    Kevin C.

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    This.

    Neither command-based nor automatic backups are working. build 1240

    EDIT: Automatic work, manual do not.

    This post has been edited 1 time. It was last edited by Kevin C. Oct 12, 2011.
  6. Offline

    gamerx93

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Can you try using this build?
    Download
  7. Offline

    Lathanael

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Would it be possible to include an option to ONLY save the plugins folders without the jars in it (and the worlds ofc)? Those just take unneeded space on my disk!
  8. Offline

    gamerx93

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Added to: https://github.com/gamerx/Backup/issues/4
  9. Offline

    Lathanael

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)

    This post has been edited 1 time. It was last edited by Lathanael Oct 13, 2011.
  10. Offline

    gamerx93

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    This one fits in with this issue, so yeah.

    Next time, open a new one :D

    EDIT:
    And yeah, i just need to push to master, and then update the jar on BukkitDev and everyone will be happy.

    This post has been edited 1 time. It was last edited by gamerx93 Oct 13, 2011.
  11. Offline

    Physikbuddha

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Now I get the error "Unknown command."
    EDIT: Nevermind, I forgot to copy the new version to the plugin folder, I only deleted the old one >.<
    Works flawless now, thanks for your support! [cake]

    This post has been edited 2 times. It was last edited by Physikbuddha Oct 13, 2011.
  12. Offline

    Lathanael

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    As you have released 1.8.2 and closed the issue with the jars. how do i exclude them now? I seem to miss the option :(
  13. Offline

    Kidi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hi, can you help me please? I'm getting this error every backup (manual or automatic):

    Code:
    [WARNING] Task of 'Backup' generated an exception
    java.lang.NoSuchMethodError: org.bukkit.Server.getConsoleSender()Lorg/bukkit/command/ConsoleCommandSender;
            at net.tgxn.bukkit.backup.threading.PrepareBackupTask.prepareBackup(PrepareBackupTask.java:114)
            at net.tgxn.bukkit.backup.threading.PrepareBackupTask.run(PrepareBackupTask.java:75)
            at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:439)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    
    I looked for a place to to post this on github, but I did not find, so I posted it here.

    thank you for your awesome plugin.

    This post has been edited 1 time. It was last edited by Kidi Oct 14, 2011.
  14. Offline

    -_Husky_-

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Can you add configurable places to back it up to?
    eg. Backup to a USB or Drive inserted in computer
    Looks Good though!
  15. Offline

    Eyvind

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I need a backup plugin that is compatible with WorldEdit Snapshots. That is, as far as I understand, the backup directory structure needs to be:

    • backups/
      • worldname1/
        • YYYYMMDD-HHMMSS.zip (or folder)
        • YYYYMMDD-HHMMSS.zip (or folder)
        • YYYYMMDD-HHMMSS.zip (or folder)
      • worldname2/
        • YYYYMMDD-HHMMSS.zip (or folder)
        • YYYYMMDD-HHMMSS.zip (or folder)
        • YYYYMMDD-HHMMSS.zip (or folder)
      • worldname3/
        • YYYYMMDD-HHMMSS.zip (or folder)
        • YYYYMMDD-HHMMSS.zip (or folder)
        • YYYYMMDD-HHMMSS.zip (or folder)

    If the removal of the "singlebackup" config variable means that this structure won't be possible. In addition, I think that keeping backups for separate worls in separate folders makes more sense than keeping them all in the same folder, since that folder can get very messy very quickly on servers with more than a couple worlds.

    Searching for plugins is a pain, and finding plugins that do exactly what I need is even more of a pain, especially with the unfortunate lack of centralization in the community now. One of the biggest boons a plugin can have is interoperability, or at least compatibility, with other plugins. Considering how ubiquitous WorldEdit is and how underused (in my opinion) the Snapshot functionality seems to be, having at least one backup plugin work that way would make mine and probably many other peoples' lives easier.

    I don't have any preferences when it comes to backup plugins. I apologize to other backup plugin authors, this thread just happened to be easiest to find and post in. (The call for feedback certainly made me feel more invited.) I don't really mind which plugin adopts the compatibility, as long as someone does.

    I should also note that I never liked plugins that don't come with solid, working configurations out of the box or fill the config files with useless examples. If there already are backup plugins out there that have this compatibility, I'm sorry I didn't find them. None I saw advertised the compatibility (I think they should) and few made the directory structure apparent without testing or checking the source code, neither of which I am eager to do when hunting for the right plugin.

    Anyhoo, that's my feedback!
  16. Offline

    jonassm

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  17. Offline

    GameFAQsRolo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I updated to 1.8.2 and when I was looking over the new config.yml I realized I overlooked the option:
    onlyops: true

    I went back to 1.8.1 and set it to false and sure enough, the /backup command worked fine from a non-OP on PermissionsBukkit. Sorry for the false report. :oops:
  18. Offline

    Scaenicus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I've noticed that the plugin now puts everything in a single ZIP-file.
    This is very unfortunate because other plugins and skripts of mine are working with the world files.
    (i.e. one script extracts the world-files as snapshots for WorldEdit's /restore // one script builds internet-accessible maps with Overviewer)
    Now I would have to rewrite the scripts to delete the wrong worlds and plugins after extracting.

    Also I regularly delete the plugins and nether-backups from my file store, while keeping older backups from the main world. With a single backup-file I have to manually delete the folders from the archive.
    Am I just to stupid to find the configuration key for getting back the splitted ZIPs?

    This post has been edited 1 time. It was last edited by Scaenicus Oct 16, 2011.
  19. Offline

    Eyvind

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    This is the same issue my post above was addressing. The separated zip feature is gone, probably because no one spoke up before it was removed. Hopefully it will be revisited now.
  20. Offline

    Scaenicus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Oh... gamerx actually asked the people if this feature is needed on github.
    I just have not noticed that
    Well meanwhile I'll return to the old version which worked fine for me. And if it breaks with an update I may just fork Backup, seek a different plugin, or rewrite all of my scripts (whichever seems to be the least work).

    Edit: I just read your post.
    I agree a true compatibility with WorldEdit's snapshots would be a great idea.
    Currently I extract the last backup per script into a snapshot called "current", because extracted snapshots are somewhat quicker with large regions than compressed.
    But a true compatibility, without the need of nightly cron-jobs would we marvelous.

    This post has been edited 2 times. It was last edited by Scaenicus Oct 16, 2011.
  21. Offline

    Dodipower

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hey, I love your plugin and I used it since a long time, but after the 1.8.2 update I get this error in my console.

    Can you help me?
  22. Offline

    gamerx93

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    skipplugins (Default: none)
    Just add the files/folders under the plugins folder to exclude. for axample, to exclude the Backup plugin's jar, put "Backup.jar" or for the folder, "Backup". for both you need "Backup;Backup.jar" etc, etc.

    Read the documentation here:
    https://github.com/gamerx/Backup/wiki/Configuration

    You are probably running an older version of CraftBukkit, make sure you are using the latest RB. (1317)

    And: https://github.com/gamerx/Backup/issues

    Messaged you on your profile.

    Everyone else:
    https://github.com/gamerx/Backup/issues/26
  23. Offline

    gamerx93

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Make sure in your config file:


    backupeverything should be set to false.
  24. Offline

    Lathanael

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    *cough* That example is NOT in the Docu :p

    Other thing... URGS that will be a HUGE line, 40 plugins to skip -.-
  25. Offline

    gamerx93

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  26. Offline

    Justin The Cynical

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Have a separate config line that lists the plugins not to ignore?

    Or, have skipplugins be dual purpose. If false, have the next line, say 'pluginlist', list the plugins to ignore.
    If true, have 'pluginlist' list plugings to archive.

    Or have them be separate entities with one overriding the other. That approach may cause some misconfiguration (I didn't see that you can't have both!), but it might be the easier way from a programming perspective.

  27. Offline

    gamerx93

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Very cool idea: https://github.com/gamerx/Backup/issues/27
  28. Offline

    Lathanael

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    You could apply a FilenameFilter to the plugins folder, if any extension is specified in the config (new option: FilesToSkip: <list in yml format of ext here>, e.g. FilesToSkip: [jar, exe] <- Now all files ending with jar or exe are excluded) you could run the filter and only get a list of Files and folders which do not match the extension. I haven't look at your code very close but i guess this should be very possible.

    This post has been edited 1 time. It was last edited by Lathanael Oct 23, 2011.
  29. Offline

    gamerx93

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hey guys, can i get some volunteers to do testing on 1.8.3-dev?
    Download it here!

    All functionality needs testing.
    If you find any bugs:
    - If you have a GitHub account: Here
    - If not: Here

    Thanks heaps!
  30. Offline

    MonsieurApple

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  31. Offline

    Milkywayz BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Thanks so much for this plugin. Even though i dont need backups, its always great to have just in case
  32. Offline

    gulliboy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Thanks! i registered to the forum/bukkit... just to say thanks to you :D i really needed this plugin.

Share This Page