Giter Site home page Giter Site logo

eznv's Introduction

EZNV

EZ backup and restore of your computing NVironment

Purpose

Backup important config files and program-installed dependency lists to a private gist automatically, and restore installation easily as well.

Requirements

  • MacOS 10 (only tested on 10.13.4)
  • Python 3.6
  • gist command line gister
  • binaries listed in GENERATE INSTALL LIST FILES section of eznv_backup.sh
  • config files listed in CONFIG FILES TO SAVE section of eznv_backup.sh

Setup

  1. Download or Fork and Clone the contents of this repo
  2. Edit the following in eznv_backup.sh to suit your needs:
    • CONFIG FILES TO SAVE section: include configuration files you want backed up

      these will not be re-installed on restore, just backed up

    • GENERATE INSTALL LIST FILES section: edit expressions to generate install lists for programs you want backed up
      • expressions must output a file with a [program_name].install formatted name
      • items in [program_name].install must be on their own line
  3. Edit restore_installers.json to suit your needs:
    • You can add installer configurations for restoring from *.install files saved by eznv_backup.sh. The restore_installers.json file in root dir is set up in the following format:
    {
        "[program_name]": {
            "sh_item_command": "[shell_command]"
        }
    }
    • program_name = * in *.install
    • shell_command = shell comand that would be run on each item in *.install list with {item} added to command where item from list would normally appear within command
    • EXAMPLE:
    {
        "brew": {
            "sh_item_command": "brew install {item}"
        }
    }

Usage

Backup

  • run sh eznv_backup.sh
  • once backup is complete, your backup gist will be opened in a new browser window

Restore

  • run python3 eznv_restore.sh [gist_id]

License

GNU GPLv3

eznv's People

Contributors

deconstructionalism avatar

Watchers

James Cloos avatar cymbiotica 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.