I want to create a daily schedule for a firestore database, daily.
I've already updated the CLI and started the project I'm going to use. And yes, it has an active firestore database, in use and with data. But I receive the following error message:
ERROR: (gcloud.alpha.firestore.backups.schedules.create) NOT_FOUND: Project 'central1' or database 'default' does not exist.
Has anyone been through this and could help me?
Solved! Go to Solution.
The error message suggests that either the Firestore project central1
or its default
database doesn't exist when you're trying to create a backup schedule.
Troubleshooting tips:
roles/datastore.importExportAdmin
.Backup schedule command:
To create a daily backup schedule for the default database in the central1 project, you can use the following command:
gcloud alpha firestore backups schedules create --project=central1 --database='(default)' --recurrence=daily
The alpha
in gcloud alpha firestore
indicates that this is an experimental feature and might not be stable. Be cautious when using alpha commands in production environments.
If you are still having trouble, please provide more information about your environment and the steps that you have taken so far.
The error message suggests that either the Firestore project central1
or its default
database doesn't exist when you're trying to create a backup schedule.
Troubleshooting tips:
roles/datastore.importExportAdmin
.Backup schedule command:
To create a daily backup schedule for the default database in the central1 project, you can use the following command:
gcloud alpha firestore backups schedules create --project=central1 --database='(default)' --recurrence=daily
The alpha
in gcloud alpha firestore
indicates that this is an experimental feature and might not be stable. Be cautious when using alpha commands in production environments.
If you are still having trouble, please provide more information about your environment and the steps that you have taken so far.