< Back

Get-GcSqlBackupRun

Mon Jan 13, 2020 11:21 pm

NAME Get-GcSqlBackupRun



SYNOPSIS

Retrieves a resource containing information about a backup run, or lists all backup runs for an instance.





SYNTAX

Get-GcSqlBackupRun [-Project <string>] [-Instance] <string> [-Id] <long> [<CommonParameters>]





DESCRIPTION

Retrieves a resource containing information about a backup run, or lists all backup runs for an instance. This is

decided by if the "Id" parameter is filled or not.





PARAMETERS

-Project <string>

Name of the project. Defaults to the Cloud SDK configuration for properties if not specified.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Instance <string>

Cloud SQL instance name.



Required? true

Position? 0

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Id <long>

The ID of the Backup Run we want to get



Required? true

Position? 1

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

Google.Apis.SQLAdmin.v1beta4.Data.BackupRun





---------- EXAMPLE 1 ----------



PS C:\\> Get-GcSqlBackupRun "myInstance"



Gets a list of backup runs for the instance "myInstance".



If successful, the command returns a list of backupruns the instance has.

---------- EXAMPLE 2 ----------



PS C:\\> Get-GcSqlBackupRun "myInstance" "1234"



Gets the resource for the backup run with ID "1234" from instance "myInstance".



If successful, the command returns the relevant backup run.



RELATED LINKS

[Overview of Backups] (https://cloud.google.com/sql/docs/backu ... ry/backups)