You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add cluster-size to backup restoration commands (#1023)
* Add cluster size to restore commands
* Add cluster size to backup restore command
* Update tests
* Update planetscale-go
* Require restore and cluster-size flags to be present together
* Make PS-20 flag required for backup restoration
* Remove deprecated flag
cmd.Flags().StringVar(&clusterSize, "cluster-size", "PS-10", "Cluster size for restored backup branch. Use `pscale size cluster list` to see the valid sizes.")
cmd.Flags().StringVar(&createReq.ParentBranch, "from", "", "Parent branch to create the new branch from. Cannot be used with --restore")
122
-
cmd.Flags().StringVar(&createReq.Region, "region", "", "Region for the branch. Can not be used with --restore")
123
-
cmd.Flags().StringVar(&createReq.BackupID, "restore", "", "Backup to restore into the branch. Backup can only be restored to its original region")
122
+
cmd.Flags().StringVar(&createReq.Region, "region", "", "Region for the branch to be created in.")
123
+
cmd.Flags().StringVar(&createReq.BackupID, "restore", "", "ID of Backup to restore into branch.")
124
+
cmd.Flags().StringVar(&createReq.ClusterSize, "cluster-size", "PS-10", "Cluster size for branches being created from a backup or seeded with data. Use `pscale size cluster list` to see the valid sizes.")
124
125
cmd.Flags().BoolVar(&flags.dataBranching, "seed-data", false, "Add seed data using the Data Branching™ feature")
125
126
cmd.Flags().BoolVar(&flags.wait, "wait", false, "Wait until the branch is ready")
0 commit comments