install.fairie/home/dot_local/bin/executable_backup
Brian Zalewski 68e8e69420 Latest
2023-12-09 05:55:54 +00:00

12 lines
366 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