GithubHelp home page GithubHelp logo

milesteg1 / backup-and-restore-macos-homebrew-and-app Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 65 KB

Backup and Restore script for all apps installed with HomeBrew and MacAppStore & more.

License: GNU Affero General Public License v3.0

Shell 96.63% Ruby 3.37%

backup-and-restore-macos-homebrew-and-app's Introduction

HomeBrew-Backup-and-Restore-Setup

To backup or restore HomeBrew setup on macOS

I use this website to do my scripts : https://tomlankhorst.nl/brew-bundle-restore-backup/

You need a working setup of HomeBrew. Check this : https://brew.sh/

# Backup & Restore script

Script to backup or restore this :

  • Everything installed with HomeBrew (with brew install, soit avec brew cask install et aussi les brew tap)
  • Some defaults preferences setup with this commande : defaults write ...
  • Some configuration files/folders : Oh My Zsh, files/folders in ~/library/...

You should read carefully all the script to check if everything is good for what you want to do. During the backup process, the script will check the existence of destination folder ./Fichiers : If this one exist, it will ask to delete or rename it. (The script must start with a fresh 'Fichiers' folder without anything inside it. Everything the script will backup will be inside this folder. Please, don't touch this folder while the script is running.

For now, only the Backup process is working. I don't have yet coded the restore process...


# Backup

If youn want to backup the HomeBrew-Setup, execute : HomeBrew-Backup-Installation.sh it will at first launch this command to be sure https://github.com/Homebrew/homebrew-bundle is installed.

It will create a Brewfile at the end of process. If the Brewfile file already exists, it will rename it like Brewfile--2020-05-09--15h17

# Restore

If youn want to restore the HomeBrew-Setup you backed up with the previous command, then execute : HomeBrew-Restore-Installation.sh If the Brewfile file doesn't exists, the script will quit without doing anything. After restoring, (you may have to type your admin passowrd in the process), you should see : Homebrew Bundle complete! xx Brewfile dependencies now installed. where xx is the number of entries in the Brewfile file.

# To check if there anything to install

If you want to check if there anything to install with the Brewfile you backed up, then execute : HomeBrew-Check-Backup-Installation.sh If the Brewfile doesn't exists, the script will quit without doing anything.

If you have this message The Brewfile's dependencies are satisfied., then you're done, nothing new to install.

But if you have this message :

brew bundle can't satisfy your Brewfile's dependencies.
Satisfy missing dependencies with `brew bundle install`.

then, launch the supplied command, or launch my script : HomeBrew-Restore-Installation.sh

backup-and-restore-macos-homebrew-and-app's People

Contributors

milesteg1 avatar

Stargazers

 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.