Snowflake Zero-Copy Cloning Guide

Snowflake Zero-Copy Cloning: How It Works and Why Your Dev Team Needs It

Celestinfo Software Solutions Pvt. Ltd. • Feb 20, 2025

Last updated: October 2026

Quick answer: Zero-copy cloning creates a metadata-only snapshot of a Snowflake table, schema, or database. The clone shares the original's underlying micro-partitions until you write to it. That gives you a full copy of production data quickly and with no additional storage at creation. Storage grows as either copy changes.

What Zero-Copy Cloning Actually Does


Snowflake stores table data in immutable micro-partitions, each holding 50 MB to 500 MB of uncompressed data, and less on disk because the data is always compressed. When you clone a table, Snowflake doesn't duplicate those files. It creates a new metadata entry that points to the same set of micro-partitions. The original and the clone share storage until one of them changes.


Think of it like a hard link in a filesystem, but at the partition level. The moment you INSERT, UPDATE, or DELETE rows in the clone, Snowflake writes new micro-partitions for the affected data. The unchanged partitions? Still shared. You only pay for what diverges.


This is fundamentally different from a CREATE TABLE AS SELECT (CTAS), which scans every row and writes entirely new micro-partitions. A CTAS on a 2 TB table takes minutes to hours and immediately doubles your storage. A clone of the same table copies only metadata, so it is far faster and adds no storage until data changes. Snowflake's documentation describes cloning as fast but not instantaneous, particularly for large objects.


How to Clone: Tables, Schemas, and Databases


The syntax is straightforward. You can clone at three levels:


Cloning a Table

SQL
CREATE TABLE analytics.orders_dev CLONE production.orders;

This creates analytics.orders_dev as a metadata pointer to the same micro-partitions as production.orders. Columns, constraints, clustering keys, and comments all come along.


Cloning a Schema

SQL
CREATE SCHEMA dev_db.sales_dev CLONE prod_db.sales;

Every table, view, sequence, file format, and stored procedure inside prod_db.sales gets cloned into dev_db.sales_dev. Views need care: a clone keeps the references in the source object's definition, so a view written with fully qualified names, such as prod_db.sales.orders, still reads the production tables after the clone. Snowflake recommends creating new views when the clone should use its own tables.


Cloning a Database

SQL
CREATE DATABASE staging_clone CLONE production_db;

This recursively clones every schema and every object inside them. Only metadata is copied, so even a large database clones far sooner than copying its data would.


Use Cases That Actually Matter


Dev/Test Environments from Production Data

The most common use case. Instead of maintaining a separate ETL pipeline to populate dev databases with sample data, clone production every morning. Developers get realistic data volumes, distributions and edge cases without touching production or paying for doubled storage.

A cloned environment does not start running pipelines by itself. Tasks in a cloned database or schema are suspended by default, and records that a stream had not yet consumed cannot be read through the cloned stream.


Safe Experimentation Before Migrations

Planning a schema migration? Clone the target tables first. Run your ALTER TABLE statements, test your downstream queries, and verify everything works. If something breaks, drop the clone and start over. Zero risk to production.


Point-in-Time Snapshots for Auditing

Compliance requirements often demand that you preserve data as it existed at a specific point. Teams often clone the relevant tables at the end of each quarter and leave them untouched. That snapshot does not stay free. When the original table changes, the micro-partitions the snapshot still references are kept and billed to the original as RETAINED_FOR_CLONE_BYTES, so the cost grows with churn on the source, and a clone can still be modified or dropped. For compliance snapshots, Snowflake backups are now the purpose-built option. They are immutable, and with a retention lock, available on Business Critical Edition or higher, no role can delete them before they expire.


CI/CD Integration Testing

This is where cloning really shines for engineering teams. You can build a pipeline that clones your production schema before every test run, executes integration tests against real data, and drops the clone when tests finish. Here's a practical example:


SQL - CI/CD Clone Setup
-- Step 1: Create a fresh clone for this test run
CREATE OR REPLACE DATABASE ci_test_db CLONE production_db;

-- Step 2: Run your dbt models or stored procedures against the clone
USE DATABASE ci_test_db;
CALL run_etl_pipeline();

-- Step 3: Validate results
SELECT COUNT(*) FROM ci_test_db.analytics.daily_revenue
WHERE report_date = CURRENT_DATE();

-- Step 4: Tear down after tests pass
DROP DATABASE ci_test_db;

Because the clone copies only metadata, the clone and drop steps add little to a test run compared with restoring a backup or running a full CTAS refresh, which makes the pattern practical for every pull request. Remember that tasks in the clone start suspended, so the test must call the pipeline itself, as the example does.


Want this running in your own account? We build Snowflake platforms end to end: ingestion, modelling, access control, and the monitoring that tells you when a load drifts. Not slide decks. Not roadmaps. Real working systems you can point at.

Book a Snowflake call Snowflake consulting

Storage Implications: When Does It Stop Being Free?


The clone costs zero additional storage at creation time. But the moment you modify data in either the original or the clone, the shared micro-partitions start diverging. Here's how it works:



Updates rewrite whole micro-partitions, so updating 5% of the rows in a cloned 1 TB table costs about 50 GB of new storage only in the best case, where the changed rows sit in a small number of partitions. If the changes are spread across most partitions, much more of the table is rewritten. A clone adds nothing to storage only while neither side changes.


Use TABLE_STORAGE_METRICS to track how much storage each clone actually consumes:

SQL
SELECT table_name,
       active_bytes / (1024*1024*1024) AS active_gb,
       retained_for_clone_bytes / (1024*1024*1024) AS clone_retained_gb
FROM snowflake.account_usage.table_storage_metrics
WHERE table_catalog = 'PRODUCTION_DB'
ORDER BY active_bytes DESC;

Cloning with Time Travel


You can combine cloning with Snowflake Time Travel to clone a table as it existed at a past point. This is incredibly useful for recovering from accidental changes.


SQL - Clone from a Timestamp
-- Clone the table as it was 2 hours ago
CREATE TABLE orders_recovered CLONE production.orders
  AT(OFFSET => -7200);

-- Clone from a specific timestamp
CREATE TABLE orders_snapshot CLONE production.orders
  AT(TIMESTAMP => '2026-02-26 14:00:00'::TIMESTAMP_LTZ);

-- Clone from just before a specific query executed
CREATE TABLE orders_pre_update CLONE production.orders
  BEFORE(STATEMENT => '01b2c3d4-0000-0000-0000-000000000000');

The Time Travel clone window depends on your table's DATA_RETENTION_TIME_IN_DAYS setting. Standard Edition supports up to 1 day; Enterprise Edition supports up to 90 days.


Limitations You Should Know About


Cloning isn't a universal copy mechanism, and the rules differ by object type:



When a database or schema clone leaves an object out, it does so without an error, so check that the stages and pipes your pipeline depends on exist in the cloned environment.


Security: How Grants Work After Cloning


A cloned table does not inherit the explicit grants on the original table. It receives only the future grants defined for tables in its schema, unless you add COPY GRANTS, which copies all privileges except OWNERSHIP. Cloning a database or schema works differently: the objects inside the clone do inherit the grants on the corresponding source objects, while the cloned database or schema itself does not inherit the grants on the source container.


After the clone exists, grants on the original and the clone are independent, so granting or revoking on one does not affect the other. This matters for role-based access control planning. When you clone a production database into a dev environment, the tables in it carry production's table-level grants, so review them before giving developers access.


For tighter control, consider using managed access schemas. In a managed access schema, only the schema owner or a role with the MANAGE GRANTS privilege can grant privileges on its objects, not the individual object owners. This gives you a single point of control after cloning.


Key Takeaways



Frequently Asked Questions

Q: Does a Snowflake zero-copy clone use additional storage?

Not initially. The clone shares the original table's micro-partitions through metadata pointers. Storage grows when data in the clone changes, and also when the original changes while the clone still references the old micro-partitions.

Q: Can you clone an entire Snowflake database?

Yes. CREATE DATABASE ... CLONE clones the database, all its schemas, and all tables within them. Each cloned object shares the original's micro-partitions until modified.

Q: Can you clone a Snowflake table from a past point in time?

Yes. You can combine cloning with Time Travel by using CREATE TABLE ... CLONE ... AT(TIMESTAMP => ...) to clone a table as it existed at a specific timestamp, within your Time Travel retention window.

Q: What can't you clone in Snowflake?

External tables cannot be cloned. Internal named stages are cloned with a database or schema only when INCLUDE INTERNAL STAGES is used, and pipes are cloned only when they reference an external stage. Most other objects, including tables, dynamic tables, streams, sequences, file formats, tasks and external stages, can be cloned.

Share this article:
Pranay Vatsal, Founder & CEO

Pranay Vatsal is the Founder & CEO of CelestInfo with deep expertise in Snowflake, data architecture, and building production-grade data systems for global enterprises.

Related Articles

Burning Questions
About CelestInfo

Simple answers to make things clear.

Our AI insights are continuously trained on large datasets and validated by experts to ensure high accuracy.

Absolutely. CelestInfo supports integration with a wide range of industry-standard software and tools.

We implement enterprise-grade encryption, access controls, and regular audits to ensure your data is safe.

Insights are updated in real-time as new data becomes available.

We offer 24/7 support via chat, email, and dedicated account managers.

Still have questions?

Get Assistance

Ready? Let's Talk!

Get expert insights and answers tailored to your business requirements and transformation.

Get Assistance