install.fairie/home/dot_local/bin/executable_backup

13 lines
342 B
Text
Raw Normal View History

2023-11-29 23:39:08 -08:00
#!/usr/bin/env bash
backupMacPrefs() {
2023-12-24 22:50:02 -08:00
if [ -d /Applications ] && [ -d /System ]; then
if command -v macprefs > /dev/null; then
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
2023-12-24 22:50:02 -08:00
fi
2023-11-29 23:39:08 -08:00
}
backupMacPrefs