You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.11 10:17:03