Created
September 4, 2024 02:29
-
-
Save lantrix/5a3ae2a97fa383a0a74384be61f84655 to your computer and use it in GitHub Desktop.
Sync old app config on moving Mac using rsync
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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