Snowflake's data recovery and versioning features, including Time Travel, Clone, UNDROP, and Fail-safe, are essential for maintaining data integrity and enabling point-in-time analysis. This article breaks down how these tools work together to protect against accidental data loss and support auditing.
Time Travel allows users to access and query historical data within a defined retention period (1 to 90 days, depending on the Snowflake edition). This feature is crucial for recovering from unintended changes, such as mistaken updates or deletions, without needing to restore from backups.
Clone creates a copy of a database, schema, or table at a specific point in time, using Snowflake's zero-copy cloning to avoid storing duplicate data until modifications are made. This is ideal for creating development environments, performing what-if analyses, or preserving a snapshot before a major update.
UNDROP reverses a DROP command for tables, schemas, or databases, restoring them along with their associated Time Travel data. This command provides a safety net for accidental drops, allowing quick recovery within the Time Travel retention window.
Fail-safe is Snowflake's additional recovery service that kicks in after the Time Travel window expires, providing a 7-day period where Snowflake may restore data in the event of a catastrophic failure. Note that Fail-safe is not user-accessible; it is an internal data protection mechanism.
Understanding and configuring these features correctly is vital for Snowflake administrators. The appropriate retention period depends on business requirements for data recovery and compliance. This video tutorial offers a hands-on walkthrough of these capabilities, providing practical guidance for certification exams like Snowflake's COF-C03.