Overview

The PlanetScale Data Branching® feature allows you to create isolated copies of your database that include both the schema and data. This differs from our regular branching feature, which only includes the schema.

Enable the Data Branching® feature for your database.

Before you can use the feature, you have to enable it in your database settings page.
1

Navigate to the database that you’d like to enable.
2

Click on the “Settings” link in the header navigation bar.
3

Scroll to the option with the text “Enable Data Branching®
4

Enable this option and click “Save database settings”.

Create a new seeded branch

1

After enabling the Data Branching feature, navigate to the dashboard page of the database.
2

Clicking on “New Branch” should now offer an option to select “Seed Data”.
  • None — Creates a database branch with only the schema copied to the new branch.
  • From most recent backup — Creates a database branch with both the schema and data from the latest backup of the Base branch.
WarningBranching off of a production branch and seeding it with data can incur additional charges, as branches seeded from production are treated as production branches instead of development branches. See question 5 in the FAQ below for more information.
  1. Once you’ve selected an option, click “Create branch” to create a new branch.

FAQ

Need help?

Get help from the PlanetScale Support team, or join our GitHub discussion board to see how others are using PlanetScale.