Skip to content

Instantly share code, notes, and snippets.

@lantrix
Created September 4, 2024 02:29
Show Gist options
  • Save lantrix/5a3ae2a97fa383a0a74384be61f84655 to your computer and use it in GitHub Desktop.
Save lantrix/5a3ae2a97fa383a0a74384be61f84655 to your computer and use it in GitHub Desktop.
Sync old app config on moving Mac using rsync
export pref="com.Scooter*"
export app="Beyond\ Compare"
rsync -avu "user@oldmac:~/Library/Application\ Support/${app}" ~/Library/Application\ Support/
rsync -avu user@oldmac:~/Library/Preferences/${pref} ~/Library/Preferences/
export pref="com.sublime*"
export app="Sublime\ Text"
rm -rf ~/Library/Application\ Support/${app}
rm -rf ~/Library/Preferences/${pref}
rm -rf ~/Library/Caches/com.sublimetext.4
rm -rf ~/Library/Caches/Sublime\ Text/
rsync -avu "user@oldmac:~/Library/Application\ Support/${app}" ~/Library/Application\ Support/
rsync -avu user@oldmac:~/Library/Preferences/${pref} ~/Library/Preferences/
rsync -avu "user@oldmac:~/Library/Caches/com.sublimetext.4" ~/Library/Caches/
rsync -avu "user@oldmac:~/Library/Caches/Sublime\ Text/" ~/Library/Caches/
export pref="com.axosoft*"
export app="GitKraken"
rm -rf ~/Library/Application\ Support/${app}
rm -rf ~/Library/Preferences/${pref}
rsync -avu "user@oldmac:~/Library/Application\ Support/${app}" ~/Library/Application\ Support/
rsync -avu user@oldmac:~/Library/Preferences/${pref} ~/Library/Preferences/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment