GCloud Firestore备份--retention参数格式错误求助
Firestore自动备份命令错误解决方法
你的命令中--retention=7d的参数格式不符合要求。错误信息明确说明,retention字段需要遵循Google Protobuf Duration格式,必须以's'(秒)作为单位后缀,不支持'd'(天)这类简写单位。
要解决这个问题,需要将7天转换为秒数:7天 = 7 × 24 × 3600 = 604800秒。
替换参数后的正确命令如下:
gcloud alpha firestore backups schedules create --database='(default)' --recurrence=daily --retention=604800s
内容的提问来源于stack exchange,提问作者simonmarien
相关产品推荐
相关产品推荐

