Backup Core

Access low-level details about file and folder settings used by the macOS Backup utility.


Backup is a built-in, user-configurable backup solution that protects user data from accidental loss. You can use the Backup Core API functionality to, for example, exclude temporary or otherwise unimportant folders and files created by your app from Backup, and to allow users to make backup decisions from within the context of your app.


Managing an Item’s Backup Exclusion Status

func CSBackupSetItemExcluded(CFURL!, Bool, Bool) -> OSStatus

Includes or excludes an item from the backup.

func CSBackupIsItemExcluded(CFURL!, UnsafeMutablePointer<DarwinBoolean>!) -> Bool

Returns a Boolean value indicating whether an item is currently excluded from the backup.