install.fairie/home/dot_local/bin/executable_backup

13 lines
366 B
Text
Raw Normal View History

2023-11-29 23:39:08 -08:00
#!/usr/bin/env bash
backupMacPrefs() {
if [ -d /Applications ] && [ -d /System ]; then
if command -v macprefs > /dev/null; then
2023-12-08 21:55:54 -08:00
logg info 'Backing up macOS preferences with macprefs'
macprefs backup -t system_preferences startup_items shared_file_lists app_store_preferences internet_accounts
2023-11-29 23:39:08 -08:00
fi
fi
}
backupMacPrefs