---
title: isExcludedFromBackup
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/urlresourcevalues/isexcludedfrombackup
---

# isExcludedFromBackup

True if resource should be excluded from backups, false otherwise.

## Declaration

```swift
var isExcludedFromBackup: Bool? { get set }
```

## Mentioned in

Optimizing Your App’s Data for iCloud Backup Using the file system effectively

## Discussion

Discussion This property is only useful for excluding cache and other application support files which are not needed in a backup. Some operations commonly made to user documents will cause this property to be reset to false and so this property should not be used on user documents.

## See Also

### Universal resource values

- [addedToDirectoryDate](foundation/urlresourcevalues/addedtodirectorydate.md)
- [allValues](foundation/urlresourcevalues/allvalues.md)
- [attributeModificationDate](foundation/urlresourcevalues/attributemodificationdate.md)
- [canonicalPath](foundation/urlresourcevalues/canonicalpath.md)
- [contentAccessDate](foundation/urlresourcevalues/contentaccessdate.md)
- [contentModificationDate](foundation/urlresourcevalues/contentmodificationdate.md)
- [creationDate](foundation/urlresourcevalues/creationdate.md)
- [customIcon](foundation/urlresourcevalues/customicon.md)
- [effectiveIcon](foundation/urlresourcevalues/effectiveicon.md)
- [generationIdentifier](foundation/urlresourcevalues/generationidentifier.md)
- [hasHiddenExtension](foundation/urlresourcevalues/hashiddenextension.md)
- [isAliasFile](foundation/urlresourcevalues/isaliasfile.md)
- [isHidden](foundation/urlresourcevalues/ishidden.md)
- [isPackage](foundation/urlresourcevalues/ispackage.md)
- [isReadable](foundation/urlresourcevalues/isreadable.md)
