Giter Site home page Giter Site logo

backupper's Introduction

Backupper

Demo

Backupper

Logfile

Logfile

Backupper is a easy to use and modular compression tool to save your folders, files and your databases to a zip files. To Download the current Release check out the Release Page

What is the boilerplate of this

  • Adding folders to your backup action
  • Adding files to your backup action
  • Adding MySQL tables to your backup action
  • Logging errors to your matching log file

Any action (.json file in actions/) are loaded and can be executed within the programm and export a .log and a .zip file``

Setup

Clone the project

  git clone https://github.com/marcandreher/Backupper

Go to the project directory

  cd Backupper

Run it to generate the config

  java -jar Backupper.jar

Edit the config in config.json

{
  "mySQLEnabled" : false,
  "mySQLUserName" : "",
  "mySQLPassword" : "",
  "mySQLAdress" : "",
  "mySQLDumpLoc" : "mysqldump",
  "mySQLPort" : 3306,
  "cronEnabled" : true,
  "actionFolder" : "actions/",
  "outputFolder" : "output/"
}

Generate a test action to edit it

java -jar Backupper.jar -gen

Edit the test action saved in actions/gen.json

{
  "name" : "Example Name",
  "filepaths" : [ ],
  "toexportdb" : [ ],
  "database" : "mysql",
  "interval" : "1d",
  "exportname" : "%date%-%name%",
  "compressing" : "zip",
  "decaying" : "4w"
}

name - Name of action (Make sure to use valid filenames if you use it as exportname)

filepaths - Files and folders that should be saved (optional)

  "filepaths" : [ 
      "/home/test.txt",
      "/home/myDocs"
   ],

toexportdb - Any SQL Dump Files or MySQL whole database/table, * means whole database (optional)

database - Which database is used (optional)

  "toexportdb" : [ 
      "/home/db.sql",
      "phpmyadmin",
      "mytable"
   ],

exportname - Name used in logs, as exportname and in folders

compressing - Output compression currently only zip

interval - Comming soon (optional)

decaying - Comming soon (optional)

Run Arguments

java -jar Backupper.jar -a <name> - Start a action

java -jar Backupper.jar -all - Start all actions

java -jar Backupper.jar -gen - Generate a test action

java -jar Backupper.jar - Setup config & firstrun

Contributing

Contributions are always welcome!

backupper's People

Contributors

marcandreher avatar

Watchers

 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.