Git Product home page Git Product logo

mc_pybackup's Introduction

==mc_pybackup==

A simple compression script for backing up Minecraft worlds that should work for backing up any other folder.

Usage:

  • Modify WORLDS array in mcbackup.py to include any folders that you want to back up
  • Set MIN_BACKUP_INTERVAL in mcbackup.py if you want to limit how often backups are created
  • Backups will be created no more often than MIN_BACKUP_INTERVAL, i.e. setting it to 6 * HOURS will limit the script to 4 backups per day
  • MIN_BACKUP_INTERVAL has no effect if it is set shorter than how often the script is run.
  • Run mcbackup.py to create backups
  • Backups are compressed as .zip for portability
  • mcbackup won't make a new backup if the original file hasn't been modified since the last backup. This saves a LOT of space if the folder isn't constantly being modified.
  • Suggested: set up cron or Windows Scheduler to run your script. The included .bat file will work with Windows Scheduler.
  • By default, backups will be stored in a folder named with the two bottom-most folders where your target is
  • In the default setup, this backups for [..]/EthosLPPackserver/world2 will be stored in ./EthosLPPackserver-world2/
  • This can be changed manually by changing the function make_backup_dir

mc_pybackup's People

Watchers

James Cloos avatar Benjamin Shaya avatar

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.