main/Examples

Main Page | Commands | Examples | Configuration | Todo

Config YAML

The config yaml here, defines two backup jobs to be excuted. Look at the "Configuration" page. Jobs are executed at the same time.

jobs:
    plugins:
        script: plugins\MikesBACKUP\backupPlugins.bat
        runevery: 1440
        requireplayers: false
        messagepre: Initiating backup of Plugins
        messageprecolour: Gold
        messagepost: Done backing up Plugins
        messagepostcolour: Teal
    world:
        world: world
        script: plugins\MikesBACKUP\backupWorld.bat
        arguments: world
        runevery: 60
        requireplayers: true
        messagepre: Initiating backup of World
        messageprecolour: Gold
        messagepost: Done backing up World
        messagepostcolour: Teal
    nether:
        world: world_nether
        script: plugins\MikesBACKUP\backupWorld.bat
        arguments: world_nether
        runevery: 60
        requireplayers: true
        messagepre: Initiating backup of Nether
        messageprecolour: Gold
        messagepost: Done backing up Nether
        messagepostcolour: Teal

Backup Scripts

The backup scripts here will take an argument, and then copy the world given to a seperate directory. This is probably the simplest of backup systems :P

Windows File: backupWorld.bat

robocopy /LOG:plugins/MikesBACKUP/log-%1.txt /MIR "C:\Users\Mike\Desktop\Temp\minecraft server\%1" "C:\Users\Mike\Desktop\Dropbox\%1"

File: backupPlugins.bat

robocopy /LOG:plugins/MikesBACKUP/lastlog-plugins.txt /MIR "C:\Users\Administrator\Desktop\ServerBukkit\plugins" "C:\Users\Mike\Desktop\Dropbox\plugins-Backup"

Note: The /LOG parameter is necessary in robocopy. Else the program will never terminate when done - leaving the backup job hanging forever.

Linux File: linux.sh


Comments

Posts Quoted:
Reply
Clear All Quotes