我想为我的 Firestore 数据库实施备份。然而,当我遵循文档时,我遇到了一个恼人的错误,我似乎无法修复该错误。
我使用以下命令:
gcloud alpha firestore backups schedules create --database='(default)' --recurrence=daily --retention=7d
我遇到以下错误:
ERROR: (gcloud.alpha.firestore.backups.schedules.create) INVALID_ARGUMENT: Invalid value at 'backup_schedule.retention' (type.googleapis.com/google.protobuf.Duration), Field 'retention', Illegal duration format; duration must end with 's'
- '@type': type.googleapis.com/google.rpc.BadRequest
fieldViolations:
- description: Invalid value at 'backup_schedule.retention' (type.googleapis.com/google.protobuf.Duration),
Field 'retention', Illegal duration format; duration must end with 's'
field: backup_schedule.retention
有人知道我做错了什么吗?
将您的 gcloud cli 升级到最新版本。升级到后它对我有用 谷歌云 SDK 450.0.0 阿尔法 2023.10.06