HiveBrain v1.2.0
Get Started
← Back to all entries
patternsqlMinor

Sql server 2014: backup log to 2 destinations

Submitted by: @import:stackexchange-dba··
0
Viewed 0 times
destinationslogsqlserver2014backup

Problem

We want a single job to back up log to azure and file system every time.

So we can log ship from file system and from azure at the same time.

I seem to recall that the redgate sql backup tool has a "backup and copy to..." feature. In sql natively yet?

Can this be done?

Solution

I've never used SSIS to use the backup task so I'm not sure exactly how great this solution is however it should theoretically work and it took me about 10 minutes instead of 10 days.

First off create a package and make your backup database task. Set it up however you need to set it up like this.

Then make a for each file loop and have it search through the directory you're adding it to.

Map the results to a variable.

Then use file System tasks to move it wherever the hell you want.

Context

StackExchange Database Administrators Q#89987, answer score: 2

Revisions (0)

No revisions yet.