Essentials Backup Issues

Discussion in 'Bukkit Help' started by xMachoMancha, Nov 17, 2013.

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

    xMachoMancha

    I am currently running my Tekkit server with Linux and CentOS and I am having the following error appear in my console:

    Code:
    05:10:44 [SEVERE] null
    java.io.IOException: Cannot run program "/home/minecraft/backup.sh": error=2, No such file or directory
            at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041)
            at com.earth2me.essentials.Backup$2.run(Backup.java:104)
            at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftTask.run(CraftTask.java:58)
            at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
            at java.lang.Thread.run(Thread.java:744)
    Caused by: java.io.IOException: error=2, No such file or directory
            at java.lang.UNIXProcess.forkAndExec(Native Method)
            at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
            at java.lang.ProcessImpl.start(ProcessImpl.java:130)
            at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)
            ... 6 more
    The "backup" section of my config looks like this:

    Code:
    # Backup runs a batch/bash command while saving is disabled.
    backup:
      # Interval in minutes.
      interval: 5
      # Unless you add a valid backup command or script here, this feature will be useless.
      # Use 'save-all' to simply force regular world saving without backup.
      command: '/home/minecraft/backup.sh'
    I have the following code within "backup.sh" located in my "/home/minecraft":

    Code:
    #!/bin/bash
    # Set these values to match your server's settings.
     
    # This script should be located in the craftbukkit folder
     
    # Make sure you change this to the name of your world folder!
    # Add additional worlds by separating them with a space.
     
    declare -a worlds=(world world_nether)
    backupdir=backups/
    ext=.zip
     
    hdateformat=$(date '+%Y-%m-%d-%H-%M-%S')H$ext
    ddateformat=$(date '+%Y-%m-%d')D$ext
    numworlds=${#worlds[@]}
     
        echo "Starting multiworld backup..."
     
        if [ -d $backupdir ] ; then
            sleep 0
        else
            mkdir -p $backupdir
        fi
        zip $backupdir$hdateformat -r plugins
        for ((i=0;i<$numworlds;i++)); do
            zip -q $backupdir$hdateformat -r ${worlds[$i]}
            echo "Saving '${worlds[$i]}' to '$backupdir$hdateformat'."
        done
        cp $backupdir$hdateformat $backupdir$ddateformat
        echo "Updated daily backup."
        find $backupdir/ -name *H$ext -mmin +1440 -exec rm {} \;
        find $backupdir/ -name *D$ext -mtime +14 -exec rm {} \;
        echo "Removed old backups."
     
        echo "Backup complete."
     
    exit 0
    And I have tried using "chmod +x backup.sh" in my VPS but I still get the same error when it tries backing up.
     
  2. Offline

    rguz10

    It's not there...
     
  3. Offline

    Necrodoom

    Locked. Forge is not supported here.
     
Thread Status:
Not open for further replies.

Share This Page