GithubHelp home page GithubHelp logo

bb-lock's Introduction

A bash utility for Backup of WSL Linux Setup

bb-lock is a bad pun on both 'beta blocker' anxiety meds, and BB for @BiomeB where I work.

Previously in my Research / Bioinformatic career I had always worked on MacOS or Linux machines. At @BiomeB they use Windows machines, and so I have had to become familiar with the Windows Subsystem for Linux (WSL), which rather neatly allows the integration of a virtual machine (Ubuntu in my case) with Windows apps etc.

However, after a blue-screen crash struck my work laptop during a Windows update, I discovered that the built-in 'restore' tools of the Windows OS failed to save any files or settings from the WSL VM.

To guard against having to re-install my unix tools/python packages/conda environments again from scratch should this happen again (and soothe my anxiety about the possibility: hence the 'beta-blocker' wordplay), I wrote a script to zip up my ~/.xxx files, and .txt of my unix path, and .yaml config files for my conda environments to an archive stored on my C:\ drive outside the WSL. If I lose my WSL VM completely again, I ought to be able to reconstitute it much more easily!

  • I've also added the option to include an arbitrary directory in the zip archive...
  • I've also, also added an option for the script to remind my of the Windows Powershell command needed to make a .tar archive of the entire WSL VM, as an extra redundant backup.

bb-lock's People

Contributors

willpitchers avatar

Watchers

 avatar  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.