Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup is not supported on Azure Blob Storage #820

Open
mbento62 opened this issue Sep 13, 2024 · 1 comment
Open

Cleanup is not supported on Azure Blob Storage #820

mbento62 opened this issue Sep 13, 2024 · 1 comment

Comments

@mbento62
Copy link

Hi. I use the backup ola.hallegren process to execute backup process (work fine), but when I configured to delete files, I receive this message: (I'm working with Azure storage account as backup files repository): The value for the parameter https://github.com/Cleanuptime is not supported. Cleanup is not supported on Azure Blob Storage. [SQLSTATE 42000] (Error 50000) [SQLSTATE 01000] (Message 50000) The documentation is available at https://ola.hallengren.com/sql-server-backup.html. [SQLSTATE 42000] (Error 50000) [SQLSTATE 01000] (Message 50000) Date and time: 2024-09-10 09:00:00 [SQLSTATE 01000] (Message 50000) [SQLSTATE 01000] (Message 50000). The step failed. But, I don't found explanation how I can delete files with [dbo].[DatabaseBackup] Thanks !!!

@griffitmatt
Copy link

The link below has the answer to your question

https://ola.hallengren.com/frequently-asked-questions.html

"How can I delete old backup files from Azure Blob Storage?

I have not been able to find a way to delete backup files in Azure Blob Storage from a T-SQL stored procedure. Because of that you cannot use the @Cleanuptime parameter when you do backup to URL.

You will have to use a PowerShell script to delete old backup files in Azure Blob Storage. Here is one that you can use."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants