Search code examples
sql-serverazurebackupdatabase-backups

Sql backup to url - azure blob differential


I have a v large dB 250 gb and I have backed up to azure blob using the below...

BACKUP DATABASE [TestDB] TO URL = 'https://cloudspacestorage.blob.core.windows.net/backups/Testdb.bak'
WITH CREDENTIAL = 'Backupcredential', STATS = 10 GO

I now need to do it again is there a way I can do an differential backup e.g. only the changes since last backup

Thanks


Solution

  • As Larnu said, you can Call the Differential Backups (SQL Server).

    Since you have full backup the database to you Azure Blob Storage with the satatements:

    BACKUP DATABASE [TestDB] 
    TO URL = 'https://cloudspacestorage.blob.core.windows.net/backups/Testdb.bak'
    WITH CREDENTIAL = 'Backupcredential', STATS = 10 GO
    

    And from the SQL Server Backup to URL, the Bcakup to URL support you create the Differential Backups . enter image description here

    So you can do an differential backup to Azure Blob like this:

    BACKUP DATABASE [TestDB] 
    TO URL = 'https://cloudspacestorage.blob.core.windows.net/backups/Testdb.bak'
    WITH DIFFERENAL 
    

    Hope this helps.