Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: add a flag for backup data prior to data update (#9859)

Danny Xu51349e38f0ae
diff --git a/backend/api/v1/actuator_service.go b/backend/api/v1/actuator_service.go
index 50235b7747..268afb0506 100644
--- a/backend/api/v1/actuator_service.go
+++ b/backend/api/v1/actuator_service.go
@@ -112,6 +112,7 @@ func (s *ActuatorService) getServerInfo(ctx context.Context) (*v1pb.ActuatorInfo
GitopsWebhookUrl: setting.GitopsWebhookUrl,
Debug: slog.Default().Enabled(ctx, slog.LevelDebug),
Lsp: s.profile.Lsp,
+ PreUpdateBackup: s.profile.PreUpdateBackup,
}
return &serverInfo, nil
diff --git a/backend/api/v1/rollout_service_task.go b/backend/api/v1/rollout_service_task.go
index 74d5bacc1f..3ec2915be1 100644
--- a/backend/api/v1/rollout_service_task.go
+++ b/backend/api/v1/rollout_service_task.go
@@ -444,12 +444,17 @@ func getTaskCreatesFromChangeDatabaseConfigDatabaseTarget(ctx context.Context, s
if err != nil {
return nil, nil, errors.Wrapf(err, "failed to get sheet id from sheet %q", c.Sheet)
}
+ preUpdateBackupDetail := api.PreUpdateBackupDetail{}
+ if c.GetPreUpdateBackupDetail().GetDatabase() != "" {
+ preUpdateBackupDetail.Database = c.GetPreUpdateBackupDetail().GetDatabase()
+ }
payload := api.TaskDatabaseDataUpdatePayload{
- SpecID: spec.Id,
- SheetID: sheetUID,
- SchemaVersion: getOrDefaultSchemaVersion(c.SchemaVersion),
- RollbackEnabled: c.RollbackEnabled,
- RollbackSQLStatus: api.RollbackSQLStatusPending,
+ SpecID: spec.Id,
+ SheetID: sheetUID,
+ SchemaVersion: getOrDefaultSchemaVersion(c.SchemaVersion),
+ RollbackEnabled: c.RollbackEnabled,
+ RollbackSQLStatus: api.RollbackSQLStatusPending,
+ PreUpdateBackupDetail: preUpdateBackupDetail,
}
if c.RollbackDetail != nil {
issueID, err := common.GetIssueID(c.RollbackDetail.RollbackFromIssue)
diff --git a/backend/bin/server/cmd/profile.go b/backend/bin/server/cmd/profile.go
index f7599466d8..4d801a929a 100644
--- a/backend/bin/server/cmd/profile.go
+++ b/backend/bin/server/cmd/profile.go
@@ -39,6 +39,7 @@ func getBaseProfile(dataDir string) config.Profile {
BackupCredentialFile: flags.backupCredential,
LastActiveTs: time.Now().Unix(),
Lsp: flags.lsp,
+ PreUpdateBackup: flags.preUpdateBackup,
DevelopmentIAM: flags.developmentIAM,
}
}
diff --git a/backend/bin/server/cmd/root.go b/backend/bin/server/cmd/root.go
index 4db11c6fa5..77a29086fc 100644
--- a/backend/bin/server/cmd/root.go
+++ b/backend/bin/server/cmd/root.go
@@ -79,8 +79,9 @@ var (
// disableMetric is the flag to disable the metric collector.
disableMetric bool
// disableSample is the flag to disable the sample instance.
- disableSample bool
- lsp bool
+ disableSample bool
+ lsp bool
+ preUpdateBackup bool
// Cloud backup configs.
backupRegion string
@@ -126,6 +127,7 @@ func init() {
rootCmd.PersistentFlags().StringVar(&flags.demoName, "demo", "", "name of the demo to use. Empty means not running in demo mode.")
rootCmd.PersistentFlags().BoolVar(&flags.debug, "debug", false, "whether to enable debug level logging")
rootCmd.PersistentFlags().BoolVar(&flags.lsp, "lsp", false, "whether to enable lsp in SQL Editor")
+ rootCmd.PersistentFlags().BoolVar(&flags.preUpdateBackup, "pre-update-backup", false, "whether to enable feature of data backup prior to data update")
// Support environment variable for deploying to render.com using its blueprint file.
// Render blueprint allows to specify a postgres database along with a service.
// It allows to pass the postgres connection string as an ENV to the service.
diff --git a/backend/component/config/profile.go b/backend/component/config/profile.go
index 46808165bf..3bae70906d 100644
--- a/backend/component/config/profile.go
+++ b/backend/component/config/profile.go
@@ -32,7 +32,6 @@ type Profile struct {
Readonly bool
// When we are running in SaaS mode, some features are not allowed to edit by users.
SaaS bool
- Lsp bool
// DataDir is the directory stores the data including Bytebase's own database, backups, etc.
DataDir string
// ResourceDir is the directory stores the resources including embedded postgres, mysqlutil, mongoutil and etc.
@@ -68,7 +67,9 @@ type Profile struct {
// LastActiveTs is the service last active timestamp, any API calls will refresh this value.
LastActiveTs int64
- DevelopmentIAM bool
+ Lsp bool
+ PreUpdateBackup bool
+ DevelopmentIAM bool
}
// UseEmbedDB returns whether to use embedDB.
diff --git a/backend/legacyapi/task.go b/backend/legacyapi/task.go
index 232f088a6a..a45e048c9a 100644
--- a/backend/legacyapi/task.go
+++ b/backend/legacyapi/task.go
@@ -218,11 +218,18 @@ type TaskDatabaseDataUpdatePayload struct {
// RollbackFromIssueID is the issue ID containing the original task from which the rollback SQL statement is generated for this task.
RollbackFromIssueID int `json:"rollbackFromIssueId,omitempty"`
// RollbackFromTaskID is the task ID from which the rollback SQL statement is generated for this task.
- RollbackFromTaskID int `json:"rollbackFromTaskId,omitempty"`
+ RollbackFromTaskID int `json:"rollbackFromTaskId,omitempty"`
+ PreUpdateBackupDetail PreUpdateBackupDetail `json:"preUpdateBackupDetail,omitempty"`
SchemaGroupName string `json:"schemaGroupName,omitempty"`
}
+type PreUpdateBackupDetail struct {
+ // The database for keeping the backup data.
+ // Format: instances/{instance}/databases/{database}
+ Database string `json:"database,omitempty"`
+}
+
// TaskDatabaseBackupPayload is the task payload for database backup.
type TaskDatabaseBackupPayload struct {
// Common fields
diff --git a/frontend/src/types/proto/v1/actuator_service.ts b/frontend/src/types/proto/v1/actuator_service.ts
index 996c865921..3742231ba1 100644
--- a/frontend/src/types/proto/v1/actuator_service.ts
+++ b/frontend/src/types/proto/v1/actuator_service.ts
@@ -97,6 +97,8 @@ export interface ActuatorInfo {
debug: boolean;
/** lsp is the enablement of lsp in SQL Editor. */
lsp: boolean;
+ /** lsp is the enablement of data backup prior to data update. */
+ preUpdateBackup: boolean;
}
function createBaseGetActuatorInfoRequest(): GetActuatorInfoRequest {
@@ -546,6 +548,7 @@ function createBaseActuatorInfo(): ActuatorInfo {
gitopsWebhookUrl: "",
debug: false,
lsp: false,
+ preUpdateBackup: false,
};
}
@@ -599,6 +602,9 @@ export const ActuatorInfo = {
if (message.lsp === true) {
writer.uint32(128).bool(message.lsp);
}
+ if (message.preUpdateBackup === true) {
+ writer.uint32(136).bool(message.preUpdateBackup);
+ }
return writer;
},
@@ -721,6 +727,13 @@ export const ActuatorInfo = {
message.lsp = reader.bool();
continue;
+ case 17:
+ if (tag !== 136) {
+ break;
+ }
+
+ message.preUpdateBackup = reader.bool();
+ continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
@@ -748,6 +761,7 @@ export const ActuatorInfo = {
gitopsWebhookUrl: isSet(object.gitopsWebhookUrl) ? globalThis.String(object.gitopsWebhookUrl) : "",
debug: isSet(object.debug) ? globalThis.Boolean(object.debug) : false,
lsp: isSet(object.lsp) ? globalThis.Boolean(object.lsp) : false,
+ preUpdateBackup: isSet(object.preUpdateBackup) ? globalThis.Boolean(object.preUpdateBackup) : false,
};
},
@@ -801,6 +815,9 @@ export const ActuatorInfo = {
if (message.lsp === true) {
obj.lsp = message.lsp;
}
+ if (message.preUpdateBackup === true) {
+ obj.preUpdateBackup = message.preUpdateBackup;
+ }
return obj;
},
@@ -825,6 +842,7 @@ export const ActuatorInfo = {
message.gitopsWebhookUrl = object.gitopsWebhookUrl ?? "";
message.debug = object.debug ?? false;
message.lsp = object.lsp ?? false;
+ message.preUpdateBackup = object.preUpdateBackup ?? false;
return message;
},
};
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index 7e82463578..a0fa49545b 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -666,6 +666,7 @@ Actuator concept is similar to the Spring Boot Actuator.
| gitops_webhook_url | [string](#string) | | gitops_webhook_url is the webhook URL for GitOps. |
| debug | [bool](#bool) | | debug flag means if the debug mode is enabled. |
| lsp | [bool](#bool) | | lsp is the enablement of lsp in SQL Editor. |
+| pre_update_backup | [bool](#bool) | | lsp is the enablement of data backup prior to data update. |
diff --git a/proto/generated-go/v1/actuator_service.pb.go b/proto/generated-go/v1/actuator_service.pb.go
index 34af38e52a..e3eac9f3fa 100644
--- a/proto/generated-go/v1/actuator_service.pb.go
+++ b/proto/generated-go/v1/actuator_service.pb.go
@@ -397,6 +397,8 @@ type ActuatorInfo struct {
Debug bool `protobuf:"varint,15,opt,name=debug,proto3" json:"debug,omitempty"`
// lsp is the enablement of lsp in SQL Editor.
Lsp bool `protobuf:"varint,16,opt,name=lsp,proto3" json:"lsp,omitempty"`
+ // lsp is the enablement of data backup prior to data update.
+ PreUpdateBackup bool `protobuf:"varint,17,opt,name=pre_update_backup,json=preUpdateBackup,proto3" json:"pre_update_backup,omitempty"`
}
func (x *ActuatorInfo) Reset() {
@@ -543,6 +545,13 @@ func (x *ActuatorInfo) GetLsp() bool {
return false
}
+func (x *ActuatorInfo) GetPreUpdateBackup() bool {
+ if x != nil {
+ return x.PreUpdateBackup
+ }
+ return false
+}
+
var File_v1_actuator_service_proto protoreflect.FileDescriptor
var file_v1_actuator_service_proto_rawDesc = []byte{
@@ -596,7 +605,7 @@ var file_v1_actuator_service_proto_rawDesc = []byte{
0x74, 0x61, 0x63, 0x6b, 0x5f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
0x52, 0x0a, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x54, 0x72, 0x61, 0x63, 0x65, 0x22, 0x14, 0x0a, 0x12,
0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
- 0x73, 0x74, 0x22, 0xd8, 0x04, 0x0a, 0x0c, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x49,
+ 0x73, 0x74, 0x22, 0x84, 0x05, 0x0a, 0x0c, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x49,
0x6e, 0x66, 0x6f, 0x12, 0x1d, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69,
0x6f, 0x6e, 0x12, 0x22, 0x0a, 0x0a, 0x67, 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74,
@@ -633,40 +642,43 @@ var file_v1_actuator_service_proto_rawDesc = []byte{
0xe0, 0x41, 0x03, 0x52, 0x10, 0x67, 0x69, 0x74, 0x6f, 0x70, 0x73, 0x57, 0x65, 0x62, 0x68, 0x6f,
0x6f, 0x6b, 0x55, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x62, 0x75, 0x67, 0x18, 0x0f,
0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x64, 0x65, 0x62, 0x75, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x6c,
- 0x73, 0x70, 0x18, 0x10, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x6c, 0x73, 0x70, 0x32, 0xf0, 0x03,
- 0x0a, 0x0f, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
- 0x65, 0x12, 0x6f, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72,
- 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
- 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e,
- 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72,
- 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x1c, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x12,
- 0x11, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x2f, 0x69, 0x6e,
- 0x66, 0x6f, 0x12, 0x93, 0x01, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x63, 0x74,
- 0x75, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x63,
- 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
- 0x74, 0x1a, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
- 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x3a, 0xda, 0x41,
- 0x14, 0x61, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
- 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x3a, 0x08, 0x61, 0x63, 0x74,
- 0x75, 0x61, 0x74, 0x6f, 0x72, 0x32, 0x11, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x75, 0x61,
- 0x74, 0x6f, 0x72, 0x2f, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x62, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65,
- 0x74, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x61, 0x63, 0x68,
- 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
- 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79,
- 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x2a, 0x12, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63,
- 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x2f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x12, 0x72, 0x0a, 0x0c,
- 0x4c, 0x69, 0x73, 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, 0x4c, 0x6f, 0x67, 0x12, 0x20, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44,
- 0x65, 0x62, 0x75, 0x67, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21,
- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73,
- 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
- 0x65, 0x22, 0x1d, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x12, 0x12, 0x2f, 0x76,
- 0x31, 0x2f, 0x61, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x2f, 0x64, 0x65, 0x62, 0x75, 0x67,
- 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f,
- 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x73, 0x70, 0x18, 0x10, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x6c, 0x73, 0x70, 0x12, 0x2a, 0x0a,
+ 0x11, 0x70, 0x72, 0x65, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b,
+ 0x75, 0x70, 0x18, 0x11, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x70, 0x72, 0x65, 0x55, 0x70, 0x64,
+ 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x32, 0xf0, 0x03, 0x0a, 0x0f, 0x41, 0x63,
+ 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6f, 0x0a,
+ 0x0f, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f,
+ 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47,
+ 0x65, 0x74, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65,
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f,
+ 0x22, 0x1c, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x12, 0x11, 0x2f, 0x76, 0x31,
+ 0x2f, 0x61, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x2f, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x93,
+ 0x01, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f,
+ 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74,
+ 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e,
+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x75,
+ 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x3a, 0xda, 0x41, 0x14, 0x61, 0x63, 0x74,
+ 0x75, 0x61, 0x74, 0x6f, 0x72, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73,
+ 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x3a, 0x08, 0x61, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f,
+ 0x72, 0x32, 0x11, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x2f,
+ 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x62, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x61,
+ 0x63, 0x68, 0x65, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
+ 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65, 0x71,
+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1a, 0x82, 0xd3,
+ 0xe4, 0x93, 0x02, 0x14, 0x2a, 0x12, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x75, 0x61, 0x74,
+ 0x6f, 0x72, 0x2f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x12, 0x72, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74,
+ 0x44, 0x65, 0x62, 0x75, 0x67, 0x4c, 0x6f, 0x67, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x65, 0x62, 0x75, 0x67,
+ 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74,
+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x65, 0x62,
+ 0x75, 0x67, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, 0xda,
+ 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x12, 0x12, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63,
+ 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x2f, 0x64, 0x65, 0x62, 0x75, 0x67, 0x42, 0x11, 0x5a, 0x0f,
+ 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62,
+ 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
diff --git a/proto/v1/actuator_service.proto b/proto/v1/actuator_service.proto
index 430b25e41e..bd37fd079c 100644
--- a/proto/v1/actuator_service.proto
+++ b/proto/v1/actuator_service.proto
@@ -133,4 +133,7 @@ message ActuatorInfo {
// lsp is the enablement of lsp in SQL Editor.
bool lsp = 16;
+
+ // lsp is the enablement of data backup prior to data update.
+ bool pre_update_backup = 17;
}