Quick reference for backing up and restoring your Mac setup.
brewfile_backup.sh- Simple script to generate Brewfile (RECOMMENDED)mac_inventory.sh- Detailed inventory of all applicationsMAC_SETUP_GUIDE.md- Complete documentation and best practices
./brewfile_backup.shThis creates:
~/Documents/Mac_Backups/Brewfile- Your package list~/Documents/Mac_Backups/Brewfile_TIMESTAMP- Timestamped backup
# 1. Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# 2. Copy your Brewfile to the new Mac, then:
cd ~/Documents/Mac_Backups
brew bundle install✅ Homebrew formulae (CLI tools like git, node, python)
✅ Homebrew casks (GUI apps like Chrome, VS Code, Slack)
✅ Homebrew taps (third-party repositories)
✅ Mac App Store apps (if you have mas installed)
❌ Apps installed outside Homebrew ❌ System preferences and configurations ❌ User data and documents
- Run
./brewfile_backup.shto create your backup - Store the Brewfile in a safe place (cloud storage, Git repo)
- Read
MAC_SETUP_GUIDE.mdfor advanced tips
See MAC_SETUP_GUIDE.md for:
- Detailed instructions
- Best practices
- Troubleshooting
- Advanced automation
- Git integration