My personal Mac backup/installation/restore/update process for a clean Mac installation.
# configure google drive as backup directory
echo export BACKUP=~/Google\ Drive/Privat/Software/Backup >> ~/.bash_profile
# configure path to bash stuff
echo export BASH_STUFF=~/.bash_stuff >> ~/.bash_profile
# read .bash_profile changes
source ~/.bash_profile
# create the bash stuff folder
mkdir "$BASH_STUFF" && cd "$BASH_STUFF"
# clone this repo into bash stuff folder
git clone https://github.com/oncode/mac-setup.git
Run following script to create backup.zip
inside the backup folder:
source "$BASH_STUFF/mac-setup/backup/create.sh"
- SQL dump
- SSH keys
- config data from important apps
- list with installed apps
- list with installed vs code exensions
# run os configuration (requires sudo)
source "$BASH_STUFF/mac-setup/install/config.sh"
# install dev tools
source "$BASH_STUFF/mac-setup/install/dev.sh"
# install bash tools
source "$BASH_STUFF/mac-setup/install/bash.sh"
# install apps
source "$BASH_STUFF/mac-setup/install/apps.sh"
# restore backup
source "$BASH_STUFF/mac-setup/backup/restore.sh"
-
Install following Apps:
- Airmail
- Photoshop / Illustrator / InDesign
- Microsoft Office
- Open Office (cask seems to be broken)
- Fenêtre
- uTorrent
-
Install Terminal profile
open $BASH_STUFF/mac-setup/install/Pro.terminal
- Choose as default: "Shell" -> "Als Standard verwenden"
-
Open programms, add licences and change configuration where needed (see also
tweakings
folder) -
Change wallpaper to wallpaper.jpg
-
Install MacOS updates (if any available)
-
Restart Mac
sudo shutdown -r now "Let the work begin..."
-
Start first Time Machine Backup
tmutil startbackup
There is an update script to keep the Mac fresh. Just run:
source "$BASH_STUFF/mac-setup/update.sh"