install.fairie/home/dot_local/bin/executable_backup
Brian Zalewski 37f9beeff8 Latest
2023-12-25 06:50:02 +00:00

12 lines
342 B
Bash

#!/usr/bin/env bash
backupMacPrefs() {
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
fi
fi
}
backupMacPrefs