Managed Service for YDB API, gRPC: BackupService.Get
Returns the specified backup.
gRPC request
rpc Get (GetBackupRequest) returns (Backup)
GetBackupRequest
{
"backup_id": "string"
}
Field |
Description |
backup_id |
string Required field. Required. ID of the YDB backup. |
Backup
{
"id": "string",
"name": "string",
"folder_id": "string",
"database_id": "string",
"description": "string",
"created_at": "google.protobuf.Timestamp",
"started_at": "google.protobuf.Timestamp",
"completed_at": "google.protobuf.Timestamp",
"status": "Status",
"backup_settings": {
"name": "string",
"description": "string",
"backup_schedule": {
// Includes only one of the fields `daily_backup_schedule`, `weekly_backup_schedule`, `recurring_backup_schedule`
"daily_backup_schedule": {
"execute_time": "google.type.TimeOfDay"
},
"weekly_backup_schedule": {
"days_of_week": [
{
"days": [
"DayOfWeek"
],
"execute_time": "google.type.TimeOfDay"
}
]
},
"recurring_backup_schedule": {
"start_time": "google.protobuf.Timestamp",
"recurrence": "string"
},
// end of the list of possible fields
"next_execute_time": "google.protobuf.Timestamp"
},
"backup_time_to_live": "google.protobuf.Duration",
"source_paths": [
"string"
],
"source_paths_to_exclude": [
"string"
],
"type": "Type",
"storage_class": "StorageClass"
},
"type": "Type",
"size": "int64"
}
Field |
Description |
id |
string |
name |
string human readable backup name. |
folder_id |
string |
database_id |
string |
description |
string description of backup. |
created_at |
|
started_at |
indicates when backup started. |
completed_at |
indicates when backup completed. |
status |
enum Status
|
backup_settings |
settings used to make backup. |
type |
enum Type
|
size |
int64 size of backup in bytes. |
BackupSettings
Field |
Description |
name |
string name of backup settings |
description |
string human readable description. |
backup_schedule |
provide schedule. if empty, backup will be disabled. |
backup_time_to_live |
provide time to live of backup. |
source_paths[] |
string provide a list of source paths. Each path can be directory, table or even database itself. |
source_paths_to_exclude[] |
string provide a list of paths to exclude from backup. |
type |
enum Type
|
storage_class |
enum StorageClass
|
BackupSchedule
Field |
Description |
daily_backup_schedule |
Includes only one of the fields |
weekly_backup_schedule |
Includes only one of the fields |
recurring_backup_schedule |
Includes only one of the fields |
next_execute_time |
output only field: when next backup will be executed |
DailyBackupSchedule
Field |
Description |
execute_time |
Required field. |
WeeklyBackupSchedule
Field |
Description |
days_of_week[] |
DaysOfWeekBackupSchedule
Field |
Description |
days[] |
enum DayOfWeek
|
execute_time |
Required field. |
RecurringBackupSchedule
Field |
Description |
start_time |
Required field. Timestamp of the first recurrence. |
recurrence |
string Required field. An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how |