Git Product home page Git Product logo

mc-worlds-backup's Introduction

minecraft-server-worlds-backup

Shell script to back up worlds from a minecraft server into zip file. Optionally upload the backup zip archive to a webDAV server.

Dependencies

  • zip
  • curl (only if using WebDAV to upload zip archive)

Basic Usage

./backup.sh -s <Server Root> -o <Output location>

-s (server)

Locate minecraft server root, if not given, the script defaults to search current directory for world, world_nether, world_the_end.

-o (output)

Specify the output directory of the zip archive, if not given, the script will create world_backup directory and put the zip file there.

WebDav Upload

To use to WebDAV upload feature, set following environment variables:

MC_BACKUP_WEBDAV_ADRESS

The Adress where zip file will be uploaded to. The script will start the uploading process if this variable is set.

export MC_BACKUP_WEBDAV_ADRESS="<Adrress>"

Example

export MC_BACKUP_WEBDAV_USER="https://my-webdav-server.com/backup"

MC_BACKUP_WEBDAV_USER

The username of WebDAV server user.

export MC_BACKUP_WEBDAV_USER="<username>"

Example

export MC_BACKUP_WEBDAV_USER="user1"

MC_BACKUP_WEBDAV_PASSWORD

The password for the given WebDAV server user.

export MC_BACKUP_WEBDAV_PASSWORD="<password>"

Example

export MC_BACKUP_WEBDAV_PASSWORD="password"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.