---
title: isExcludedFromBackupKey
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/urlresourcekey/isexcludedfrombackupkey
---

# isExcludedFromBackupKey

A key for indicating whether the system excludes the resource from all backups of app data.

## Declaration

```swift
static let isExcludedFromBackupKey: URLResourceKey
```

## Mentioned in

Using the file system effectively

## Discussion

Discussion The value of this key is a read-write Boolean NSNumber object. Use this property to exclude cache and other app support files that aren’t necessary in a backup. Set this property each time you save a file because some common file operations cause this property to reset to false.

## See Also

### Other resource keys

- [keysOfUnsetValuesKey](foundation/urlresourcekey/keysofunsetvalueskey.md)
- [quarantinePropertiesKey](foundation/urlresourcekey/quarantinepropertieskey.md)
- [addedToDirectoryDateKey](foundation/urlresourcekey/addedtodirectorydatekey.md)
- [attributeModificationDateKey](foundation/urlresourcekey/attributemodificationdatekey.md)
- [contentAccessDateKey](foundation/urlresourcekey/contentaccessdatekey.md)
- [contentModificationDateKey](foundation/urlresourcekey/contentmodificationdatekey.md)
- [creationDateKey](foundation/urlresourcekey/creationdatekey.md)
- [customIconKey](foundation/urlresourcekey/customiconkey.md)
- [documentIdentifierKey](foundation/urlresourcekey/documentidentifierkey.md)
- [effectiveIconKey](foundation/urlresourcekey/effectiveiconkey.md)
- [generationIdentifierKey](foundation/urlresourcekey/generationidentifierkey.md)
- [hasHiddenExtensionKey](foundation/urlresourcekey/hashiddenextensionkey.md)
- [isExecutableKey](foundation/urlresourcekey/isexecutablekey.md)
- [isHiddenKey](foundation/urlresourcekey/ishiddenkey.md)
- [isReadableKey](foundation/urlresourcekey/isreadablekey.md)
