# Data Retention, Backup and Recovery

Customer data is encrypted, backed up daily and stored for 30 days in fully-redundant storage.&#x20;

Details about our policy are below:

<table data-header-hidden><thead><tr><th width="250"></th><th></th></tr></thead><tbody><tr><td><strong>Item</strong></td><td><strong>Description</strong></td></tr><tr><td>Database snapshots, encryption and storage</td><td><p>Violet Labs uses Amazon RDS PostgreSQL databases to securely manage and backup customer data. Cross-region database snapshots are automatically taken nightly and encrypted with an Amazon KMS key. Additionally, RDS database snapshots are taken immediately prior to production deploys. </p><p></p><p>Amazon RDS automatically provides daily automated snapshots within the same region as the RDS in addition to capturing transaction logs every 5 minutes. Both automated snapshots and transaction logs are stored for 30 days.</p></td></tr><tr><td>Recovery objectives</td><td>The Violet Labs Recovery Time Objective (RTO) for RDS is 1 hour. The Recovery Point Objective for RDS (RPO) is up to 24 hours if relying solely on daily backups but can be as low as 5 minutes if transaction log backups are utilized for point-in-time recovery.</td></tr><tr><td>Database monitoring</td><td>The RDS instances are monitored using AWS CloudWatch (for real-time performance, database logs, and alarms) and AWS CloudTrail (for historical API Calls made to the RDS instance). All RDS instances used in production are on private subnets and not publicly accessible.</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.violetlabs.com/resources/security-and-compliance/data-retention-backup-and-recovery.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
