On-demand backups retention

90 views
Skip to first unread message

Eugene Z

unread,
Mar 28, 2018, 9:13:15 PM3/28/18
to Google Cloud SQL discuss
I was trying to find in the documents any mention of retention policies for on-demand backups for SQL Cloud instance; finding none assumed that the on-demand backups are retained unless removed.

But in our account all on-demand backups older than month were removed. This is completely unforeseen and we would like to
a) If possible to retrieve the older backups
b) Get to the bottom of it and understand/define retention policy for on-demand backups

Thanks much in advance!
Eugene 

Fady (Google Cloud Platform)

unread,
Mar 29, 2018, 12:12:34 PM3/29/18
to Google Cloud SQL discuss

Hello Eugene,


According to this document, on-demand backups should persist until either you delete them, or until their instance is deleted. As you mentioned, it seems that not all on-demand backups show in the developers Console, but they can all be listed, described, and used to restore the instance by using these gcloud commands [1] [2] [3] in cloudshell or an authenticated SDK instance.


Example commands to list all backups and then use the ID listed to get a description of the backup:


$gcloud sql backups list --instance [INSTANCE]

$gcloud sql backups describe [ID] --instance=[INSTANCE]


There is already a feature request to improve the console’s list page at this link, but we can not provide an ETA or guarantee its implementation at the moment. Furthermore, if the first gcloud command above did not list the backups from more than a month ago, please open an issue tracker report for further investigation, and we will be happy to assist.  


Reply all
Reply to author
Forward
0 new messages