

# LocalBackupConfiguration

Specifies how AWS Backup handles backups of resources that you register with a backup appliance. Backups of these resources are stored in the local backup vault of the appliance. By default, AWS Backup then copies each backup to the target backup vault of the backup rule.

Retention that you set here applies only to the backup in the local backup vault. It doesn't apply to copies in other vaults. Local backup vaults don't support cold storage.

## Contents
<a name="API_LocalBackupConfiguration_Contents"></a>

 ** DeleteAfterDays **   <a name="Backup-Type-LocalBackupConfiguration-DeleteAfterDays"></a>
The number of days after creation that a backup in the local backup vault is deleted. This retention period applies only to the local backup, not to its copies in other backup vaults.  
Type: Long  
Required: Yes

 ** BackupToLocalVaultOnly **   <a name="Backup-Type-LocalBackupConfiguration-BackupToLocalVaultOnly"></a>
If the value is true, AWS Backup stores backups only in the local backup vault of the appliance and doesn't copy them to the target backup vault of the backup rule. The default is false.  
Type: Boolean  
Required: No

 ** DeleteAfterNextBackup **   <a name="Backup-Type-LocalBackupConfiguration-DeleteAfterNextBackup"></a>
If the value is true, AWS Backup deletes a backup in the local backup vault only when both of the following are true: a newer backup of the same resource exists in the same local backup vault, and the scheduled copy of the backup to the target backup vault has completed successfully. If `BackupToLocalVaultOnly` is true, there is no copy, so only the first condition applies. The backup is also deleted when the `DeleteAfterDays` retention period ends, whichever happens first.  
This setting applies only to snapshot backups. Log backups follow the `DeleteAfterDays` retention period.  
Type: Boolean  
Required: No

## See Also
<a name="API_LocalBackupConfiguration_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/backup-2018-11-15/LocalBackupConfiguration) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/backup-2018-11-15/LocalBackupConfiguration) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/backup-2018-11-15/LocalBackupConfiguration) 