[Linux] A small backup & update script written in bash

Discussion in 'Bukkit Help' started by wonderbread, Feb 13, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    wonderbread

    Quite simply it will backup your servers .jar and replace it with the one you've supplied VIA the URL

    https://gist.github.com/839571

    Edit the following to reflect your information
    Code:
    SERVER_DIR="/minecraft/minecraft"
    TMP_DIR="/minecraft/tmp"
    BACKUP_DIR="/minecraft/backup"
    FILE_NAME="craftbukkit.jar"
    
    And then run the script by executing...
    Code:
    ./get-latest [OPTIONAL URL TO THE CRAFT BUKKIT .JAR]
    
    Feedback is always appreciated.
    Feel free to fork it

    EDIT: Changing to Jenkins has given a sweet new URL for the latest successful build so just running the script with no args will grab the latest :)
     
  2. Offline

    Plague

    Automatic craftbukkit update? You sir are very very brave!
     
  3. Offline

    wonderbread

    What can I say, I'm a sucker for the bleeding edge :)
     
Thread Status:
Not open for further replies.

Share This Page