SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Deleting SQL Server backup files from Azure Blob Storage Container


Deleting SQL Server backup files from Azure Blob Storage Container

Author
Message
quackhandle1975
quackhandle1975
SSCrazy Eights
SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)

Group: General Forum Members
Points: 9479 Visits: 1416
Hi,
Have setup a number of Azure Blob Storage containers where client wants all User db full back ups to be stored however only keeping seven days worth.

I can use Ola Hallengren's excellent scripts to remove all backup files older than a week when stored on-prem (@CleanUpTime) however I don't see this working for anything in Azure.

I have had a snoop around and found this:
https://docs.microsoft.com/en-gb/azure/cdn/cdn-manage-expiration-of-blob-content

which I am looking at now however was wondering it there is another way (usually is with SQL Server! Smile

Thanks

qh


Who looks outside, dreams; who looks inside, awakes. – Carl Jung.
quackhandle1975
quackhandle1975
SSCrazy Eights
SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)

Group: General Forum Members
Points: 9479 Visits: 1416
Anywho, I asked the people at MS and this was their reply (when asked the question about deleting Azure Blob files based on age, etc):
-------------------------------------------------------------------------------------------------------------------
Hi qh,

Thanks for the feedback. Yes, I can confirm this is something we are working on for an upcoming release later this year.

-JV

Jason Vallery
Principal Program Manager | Azure Storage | +1.720.352.8822

----------------------------------------------------------------------------------------------------------------------

qh

Who looks outside, dreams; who looks inside, awakes. – Carl Jung.
Sreekanth B
Sreekanth B
SSCarpal Tunnel
SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)

Group: General Forum Members
Points: 4234 Visits: 2879
I haven't implemented this personally, but found this github repository when I Binged for your question. Hope this helps you or at least directs you in the correct direction.
https://github.com/philskents/pjspowershell/blob/master/azure/Remove-OldAzureStorageBlob.ps1
https://strangeadventures.in/deletingoldfilesfromazureblobstorage/
quackhandle1975
quackhandle1975
SSCrazy Eights
SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)

Group: General Forum Members
Points: 9479 Visits: 1416
Thank you Sreekanth, that is a great link.

qh

Who looks outside, dreams; who looks inside, awakes. – Carl Jung.
quackhandle1975
quackhandle1975
SSCrazy Eights
SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)

Group: General Forum Members
Points: 9479 Visits: 1416
Also found this one:

http://pietervanhove.azurewebsites.net/?p=3648

I should really search better before posting! Doze

qh

Who looks outside, dreams; who looks inside, awakes. – Carl Jung.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search