backups
Creates, updates, deletes, gets or lists a backups
resource.
Overview
Name | backups |
Type | Resource |
Id | google.firestore.backups |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output only. The unique resource name of the Backup. Format is projects/{project}/locations/{location}/backups/{backup} . |
database | string | Output only. Name of the Firestore database that the backup is from. Format is projects/{project}/databases/{database} . |
databaseUid | string | Output only. The system-generated UUID4 for the Firestore database that the backup is from. |
expireTime | string | Output only. The timestamp at which this backup expires. |
snapshotTime | string | Output only. The backup contains an externally consistent copy of the database at this time. |
state | string | Output only. The current state of the backup. |
stats | object | Backup specific statistics. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | backupsId, locationsId, projectsId | Gets information about a backup. |
list | SELECT | locationsId, projectsId | Lists all the backups. |
delete | DELETE | backupsId, locationsId, projectsId | Deletes a backup. |
SELECT
examples
Lists all the backups.
SELECT
name,
database,
databaseUid,
expireTime,
snapshotTime,
state,
stats
FROM google.firestore.backups
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
DELETE
example
Deletes the specified backups
resource.
/*+ delete */
DELETE FROM google.firestore.backups
WHERE backupsId = '{{ backupsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';