-
I want to create a new branch with backup of specified branch. However,
Why parent of |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think this is the correct behavior. In your example I see why it's confusing though. Perhaps pscale should throw an error when An alternative might be to use the pscale branch create mydb mybranch-2 --from stage --seed-data |
Beta Was this translation helpful? Give feedback.
I think this is the correct behavior. In your example
mybranch-1
is a restored backup ofstage
, which is a child branch ofmain
, somybranch-1
is also a child of main.I see why it's confusing though. Perhaps pscale should throw an error when
--from
and--restore
are used together.An alternative might be to use the
--seed-data
flag to create a child ofstage
that contains the data from stage's most recent backup:See https://planetscale.com/docs/concepts/data-branching