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)
    It's actually very effective.
    Say you have inteval set to 10 Minutes.
    Main task will attempt to run every ten minutes, if no players are online it will fail.
    When the last player leaves, a one-time task is sceeduled for ten minutes (or whatever the interval is).
    If a player joins before the last backup runs, it will cancel it and the normal backup will run and not fail since a player is now online.

    It is minutes as PinguinAman said, but I am working to make it easier to define in 1.8.5
  4. Offline

    Dargan

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    cant you just have a setting that backs up no matter whos online?
  5. Offline

    OkinKun

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Sooo have the bugs with 1.8.4 been fixed yet? Does the latest dev version work?
  6. Offline

    gamerx93

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yes, set "backupemptyserver" to true.

    Yes, Dev Build #13 should have fixed all the issues :( http://ci.tgxn.net/job/dev-Backup/13/
  7. Offline

    OkinKun

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    ^_^; Thanks for the response.. I've been using 1.8.3 till now. So maybe I'll give #13 or #14 a try, until you can release a "stable" version.
    I hope you're not stressed out by my asking.. I really appreciate you're plugin, it's helped me on more than one occasion. So thanks for it, and no rush.

    This post has been edited 2 times. It was last edited by OkinKun Jan 6, 2012.
  8. Offline

    gamerx93

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yeah, they are practically stable, there's not much difference between dev builds and stable releases other than the branch :p I'm just busy with work and stuff, so I'm sorry development is a bit on-and-off at the moment. :)
  9. Offline

    Finch??

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I have the problem that Worldedit does not find my backups when I type e.g. "/snap list". The path is right in Worldedit, I tried everything, it does not find them. (I let backup zip my backups)
    Is the problem the way it saves my backups?

    Example: 20120103-095609.zip


    This post has been edited 2 times. It was last edited by Finch?? Jan 7, 2012.
  10. Offline

    SilencShadoW

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hey Guy, i would realy realy realy love u if u implement a "World Save" config. So after a x time the world get saved with a configurable message "World gets saved." "World save done." ...!! Plz guy, this would make this awsme and no other world save is up2date ... right now :( ill take hope on u :)
    regards.
  11. Offline

    gamerx93

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    splitbackup: false needs to be true for the plugin to be compatible with worldedit. :p Theres your problem.

    I don't quite understand your suggestion. It already backs up worlds?
    Finch?? likes this.
  12. Offline

    SilencShadoW

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    :D
    I want that the server execute a /save-all after given time with given phrases, without backup all worlds ... just a save-all ... bc my maps are 1,2 gb ... a backup 2 times daily is ok, but i need a save-all every 5 minutes to prevent rollbacks due to crash :S
  13. Offline

    Finch??

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Thanks! You saved the houses from our griefers :)
  14. Offline

    SilencShadoW

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hey guy,
    what do i wrong? i want to save the Maps ever half day (12h) with this config, but i not get any backups ... :(

    Code:
    ## How often show the backup run? (Default: 15)
    # (Note: -1 Will disable automatic backups.)
    backupinterval: 720
    
    ## How many backups are retained? (Default: 25)
    # If this limit is hit, the oldest backup(s) will be removed.
    maxbackups: 20
    
    ## If permissions system is not available, should everyone be able to access all commands, or just ops? (Default: true)
    # If set to false, all players will be able to perform all commands, unless you use a permissions system.
    onlyops: true
    
    ## Should backups be performed on an empty server? (Default: false)
    # When the last player leaves the server, a final backup will be made. The automatic backup cycle will resume when a player re-joins.
    backupemptyserver: true
    
    ## Should we backup the entire folder? (Default: false)
    # Use with caution, as this will be a long, large backup, it automatically ignores the backup folder, so it can still be in the server folder.
    # Using this will ignore "backupworlds", "backupplugins", "skipworlds", "skipplugins", and "splitbackup"
    backupeverything: false
    
    ## Should all the worlds be split into their own files? (Default: false)
    # Compatible with WorldEdit.
    splitbackup: true
    
    ## What to backup. (Default: true, true)
    # Will give warning if either is disabled.
    backupworlds: true
    backupplugins: true
    
    ## Worlds for the backup to skip. (Default: none)
    # Seperate by a semicolon. eg. World1;World2;Nether
    skipworlds:
    
    ## List of files to exclude from the plugin backup. (Default: none)
    # Seperate by a semicolon. eg. Plugin1;Plugin2;Plugin3. This takes effect at all directory levels.
    skipplugins:
    
    ## Whether to ZIP Backups or not. (Default: true)
    # If enabled, backups will be compressed and stored in a ZIP archive named with the current timestamp.
    # If disabled, the backup will stored in a folder with the timestamp.
    zipbackup: false
    
    ## Custom date format string that is appended to every backup.
    ## If left empty, the default date format is used.
    ## This has to be a Java String.format string, see
    ## http://download.oracle.com/javase/1.5.0/docs/api/java/util/Formatter.html#syntax
    ##for reference.
    ## Example: -%1$tY%1$tm%1$td-%1$tH%1$tM%1$tS (YYYYMMDD-HHMMSS: 20101201-011323) (conforms to ISO 8601)
    dateformat: '%1$td.%1$tm.%1$tY-%1$tH:%1$tM:%1$tS'
    
    ## Enables the auto-save function after the backup. (Defualt: true)
    # Note: If you set this to false, this plugin will backup your worlds but not save the data from the memory to your hard disc. If the server crashes between
    # backups, all work is lost. Disable if you use another plugin to save the world to disk (EG: autosave).
    enableautosave: true
    
    ## Directory to store backup in. (Default: backups)
    # Note: Path can be relative, or absolute.
    backuppath: backups
    
    ## Should we send messages on backup complete. (Default: true)
    # They will still get put in the server log.
    broardcastmessages: true
    
    ## Backup log file name. (Default: backup.log)
    # Filename for log file, it is stored under the plugins data folder.
    backuplogname: backup.log
    
    ## Should we display error/log messages in server log (Default: true)
    # If true messages will only be logged to file.
    displaylog: true
    
    ## True to enable debug mode
    # @[URL='http://forums.bukkit.org/members/todo.33487/']todo[/URL] Implement this.
    debugmode: true
    
    ###############################################
    ##   Internal Settings (Read: DO NOT EDIT)   ##
    ###############################################
    
    version: 1.8.4
    
    The 12 Hours are counted after a restart? or??? Maybe u build in that it logs date XY and time XY and from there all x minutes??? so a restart dont interrupt the intervall .... :S

    This post has been edited 1 time. It was last edited by SilencShadoW Jan 9, 2012.
  15. Offline

    gamerx93

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    hmm
    Ill see if i can make it so if you turn off backupworlds andbackupplugins
    it still does the save-all.
    Release 1.8.6 probably.

    Time is definately NOT counted after restart, it would be too hard to program the scheduler to handle this.
    There shouldnt be any reason to have to restart the server, but i would just do a manual /backup before you do would be the best bet.
  16. Offline

    SilencShadoW

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

    Hey Guy,
    i mean if i restart my server, actually the 720 mins are counted from the start. ... can u log the time REMAINING until backup before restart, so it count after restart with the rest time? :S .. i need to restart sometimes ... and to get 12 hours without a restart is hard .. :S so it would be nice if the counter is backuped in a file ... so you can restart all the time and the counter go on like it never restarted.
  17. Offline

    gamerx93

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    https://github.com/gamerx/Backup/issues/55

    Happy now? =D
  18. Offline

    SilencShadoW

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

    gamerx93

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

    SilencShadoW

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

    This post has been edited 1 time. It was last edited by SilencShadoW Jan 12, 2012.
  21. Offline

    Sayshal

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

    Weird.. My config has backups set to every 30 minutes.... Your plugin is doing it every 10.
  22. Offline

    gamerx93

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

    monotonehell

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Trying to run your last dev build #14 (also occurs with #13. But #12 works okay.)

    Code:
    2012-01-16 03:58:19 {SEVERE} Could not load 'plugins/Backup.jar' in folder 'plugins':
    java.lang.UnsupportedClassVersionError: net/tgxn/bukkit/backup/BackupMain : Unsupported major.minor version 51.0
    	at java.lang.ClassLoader.defineClass1(Native Method)
    	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
    	at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
    	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    	at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    	at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    	at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
    	at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    	at java.lang.Class.forName0(Native Method)
    	at java.lang.Class.forName(Class.java:247)
    	at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:171)
    	at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:215)
    	at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136)
    	at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:155)
    	at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:438)
    	at org.bukkit.Bukkit.reload(Bukkit.java:188)
    	at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22)
    	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168)
    	at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:382)
    	at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:378)
    	at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:572)
    	at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:549)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:433)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
  24. Offline

    gamerx93

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

    I dont know what's going on there, never seen an error like that in my life.

    What bukkit build are you using, and what OS are you running on?

    Also, A copy of your configuration might help shed some light on it.
  25. Offline

    Spiritwind

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Is your website down?
  26. Offline

    gamerx93

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

    Spiritwind

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Strange, its still not working (Using Firefox). Even when I try to ping it through Windows it says that it could not contact the host.
  28. Offline

    troed

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

    Afotai

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    How does this "backup" time interval work? based on time when bukkit server was started? (so i could like define backups being taken each 2h when my server stays on for 6h, then restarts) or is it based on the last time it took a backup?
  30. Offline

    gamerx93

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    It starts the interval when the server starts, and then does each backup the interval of time from there.
    It does not persist over restarts.
    (There is a issue bug registered to get this changed in 1.8.6)
    https://github.com/gamerx/Backup/issues/55

    This post has been edited 1 time. It was last edited by gamerx93 Jan 16, 2012.
  31. Offline

    dragonhib

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Build #14 on Jenkins said "Updated to java 1.7" .Does it mean that is incompatible with java 1.6 ?

    This post has been edited 1 time. It was last edited by dragonhib Jan 17, 2012.
  32. Offline

    Justin The Cynical

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I hope not, it would mean than I can't use this plugin any more.

Share This Page