Sql-server – migrate db’s – best way to mirror or replicate a full database

mirroringreplicationsql serversql server 2014sql-server-2012

I would like to mirror/replicate my databases to the cloud. The cloud is setup using VPN to my actual machine.
I am a bit confused by the options I have and would like to get some light into it.
My setup is a SQL Server 2012 (standard edition) Instance which should be mirrored/replicated to a SQL server 2014 instance. The instance contains 30 databases which are in full recovery mode.

One other option would be to take a full backup, restore in cloud and later restore a differential one. But this might take some time. I would love the minimize the downtime that's why I thought about the replica/mirror way.

What are my options and riks at this point?

Best Answer

The data should be "the same" as on my machine, that I can dismiss my server and point to new machine in the end.

Based on your comments, your best option would be Database Mirroring or Log shipping.

You have to evaluate your RPO and RTO. Since you are using VPN to your actual machine - meaning it is point-to-point connection :

  • If you go with Database Mirroring :

    • You have to use Asynchronous mode. Also, if you are not running in the same Active Directory, you’ll also need to factor in the time to re-create and tie out the accounts when calculating the RTO value.

    • RPO: As of last good synchronization

    • RTO: (Time of failure + Time of client redirect to New System ) - Time of last good synchronization

  • If you go with Log Shipping (min will be 1 min) :

    • Because the log file is copied to a Windows share, this solution requires both networking access and an Active Directory integration.

    • RPO: As of last good log backup application to the secondary system.

    • RTO: (Time of failure + Time of client redirect to New System ) - Time of last good synchronization

Refer to this excellent article by Buck Woody : Microsoft Windows Azure Disaster Recovery Options for On-Premises SQL Server