# Back up and restore tables

There are two methods available for backing up and restoring data: time travel restore, available for the Snowflake and BigQuery backends, and snapshots, available for all backends. This page shows both. Each starts from the table detail of the table you want to restore or copy.

![Screenshot - Storage Backups](https://help.keboola.com/storage/tables/snap-restore.png)

## Restore a table with time travel

**Goal:** a new table that is an exact replica of an existing table as it was at a point in time you choose.

Projects with a Snowflake or BigQuery backend can create an exact replica of a table at any point in time up to the [limit set](https://help.keboola.com/management/project/) for the project.

Time travel restore is not available on [Pay As You Go](https://help.keboola.com/management/payg-project/) projects.

1. Open the table detail, click **⋮** (**More actions**, top right) and select **Restore**. The dialog
   **Restore Table Using Time Travel** opens.
2. In **Replication Date**, pick the time point (format `YYYY-MM-DDTHH:mm`). The table will be replicated as it was at that time point.
3. Check the **Table Name** (prefilled as `<table>_<YYYYMMDDHHMMSS>`) and select the **Destination Bucket** for the new table.
4. Click **Create table**.

![Screenshot - Time Travel Restore](https://help.keboola.com/storage/tables/time-travel-restore.png)

**Result:** a new table in the bucket you selected, with the data as it was at the selected time point. Data types are
not carried over: re-create them on the new table.

> **Caution: The restore time uses your current time zone**
>
> The time input is interpreted as the wall clock in your current local timezone.
>
> There are some edge cases. When daylight saving time (DST) starts or finishes between the restore time and the current time, then the restore time is based on the current time for your timezone.
>
> **Example:**
>
> You live in Prague (timezone Europe/Prague). You want to restore a table from `midnight of 2023-03-23` (that is `2023-03-23 00:00 +0100` because you were not using DST on that date), and 
> the current local time is `2023-03-27 00:00 +0200` (because you are now using DST). If you input the restore time as `03/23/2023 00:00`, that will be interpreted in the current timezone 
> as `2023-03-23 00:00 +0200`, which is an hour earlier than you intended. To fix this, you need to take account of the change to DST and add an hour to the restore time to give `03/23/2023 01:00`. 
> That will be correctly interpreted as `2023-03-23 01:00 +0200`, which is equivalent to `2023-03-23 00:00 +0100`, the time you want to restore from.

## Copy a table with a snapshot

**Goal:** a copy of a table's contents, taken now, that you can turn into a new table right away or later.

To physically copy a table, utilize the **Create Snapshot** feature. This feature creates a copy of the table contents at the time the snapshot is created.
From it you can create a new table, right away or later; a snapshot does not restore the original table in place.

Table snapshots are useful when **experimenting** with data source connectors and transformations, or when **refactoring** your project. You can create a copy of your output table, conduct experiments, 
and then compare the new output table with the original to ensure your output remains consistent.
To rename a table, change its display name ([Update a table](https://api.keboola.com/?service=storage#put-/v2/storage/branch/-branchId-/tables/-tableId-)); its table ID stays the same.

1. Open the table detail, click **⋮** (**More actions**, top right) and select **Create snapshot**.
2. In the **Create Snapshot** dialog, optionally enter a **Description**, and click **Create snapshot**.

   ![Screenshot - Create Snapshot](https://help.keboola.com/storage/tables/snapshot-create.png)

3. To create a table from a snapshot, open the **Snapshots** tab of the table detail and, in the snapshot's row, click **Restore** (the curved-arrow icon). In the **Create Table from Snapshot** dialog, select the **Destination Bucket**, check the **Table Name** (prefilled as `<table>_<snapshot ID>`) and click **Create table**. New tables can be created from any snapshot.

   ![Screenshot - Storage Snapshots List](https://help.keboola.com/storage/tables/snapshot-restore.png)

**Result:** the snapshot is in the list on the **Snapshots** tab, and a table created from it holds the contents the table had when the snapshot was taken.

**Next:** [Buckets →](https://help.keboola.com/storage/buckets/)
