Automated macOS setup with Homebrew and automatic backup.
# Clone this repo
git clone <your-repo-url> ~/setup
# Run install
cd ~/setup
./install.shThis installs Homebrew and all packages from Brewfile.
Run once to enable daily automatic backups:
cd ~/setup
./setup-autobackup.shThis will backup your Brewfile and commit changes every day at 8 PM.
Want to backup now? Just run:
cd ~/setup
./backup.sh# Run backup now (don't wait for 8 PM)
launchctl start com.user.brewfile-backup
# View logs
tail -f /tmp/brewfile-backup.log
# Disable auto-backup
launchctl unload ~/Library/LaunchAgents/com.user.brewfile-backup.plist
# Re-enable auto-backup
launchctl load ~/Library/LaunchAgents/com.user.brewfile-backup.plist
# Check if running
launchctl list | grep brewfile-backup- Brew packages - CLI tools (git, node, etc.)
- Casks - GUI apps (Chrome, VS Code, etc.)
- App Store apps - via
mas(Slack, Telegram, etc.)
- Login to App Store before running
install.shfor mas apps to work - Configure git after setup:
git config --global user.name "Your Name" git config --global user.email "your@email.com"
- To change backup time, edit the
Hourin~/Library/LaunchAgents/com.user.brewfile-backup.plist
Brewfile- Your packages list (auto-updated by backup script)install.sh- Fresh Mac setupbackup.sh- Manual backupsetup-autobackup.sh- Enable daily auto-backup