2

I am not sure if this questions belongs here or in server fault, apologies if it belongs there. I am using MS SQL 2012 on an azure VM, and am planning on utilizing the SQLbackup2Azure tool to store the backup files directly in blob storage. Does anyone know if deleting the stub files locally on the server will also trigger the azure storage service to delete the storage blobs? My hunch is that it will not and that I should utilize a powershell script (like this one) to remove them after a time.

asked Aug 6, 2015 at 20:45
2
  • If you are on SQL Server 2012 SP1 CU2 or higher you can use Backup to URL instead of an external utility. Commented Sep 8, 2015 at 17:17
  • Hi, you are correct, but there is still no method of automated cleanup from SQL Manager. The maintenance tasks do not support a 'cleanup from URL' type of operation. I am using Ola Hallengren's scripts which also support backing up to a URL. However the script's cleanup parameter is not supported when backing up to a URL either. I am interested specifically in a better cleanup operation. Commented Sep 9, 2015 at 20:48

1 Answer 1

0

I have experimented with the tool and confirmed that deleting the stub files does not delete the Azure blob. I had to set up a PowerShell script to cleanup the file blobs.

answered Sep 8, 2015 at 17:01

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.