Giter Club home page Giter Club logo

agdatabasemove's Introduction

AgDatabaseMove

AgDatabaseMove is a library that we use at FactSet to support moving a database from one availability group to another. We hope that the native handling of availability groups will be helpful to other developers or the CLI built on top of it will be useful to DBA.

Getting started

Prerequisites

  • SQL Server Availability Group
  • Availability database
  • A backup location accessible by each SQL Server instance
  • dotnet core 2.0

Installing

The intention is to make this available via NuGet so it can be installed to your solution as a library or PowerShell as the CLI. For now, you'll need to download and build the project yourself. See contributing.md details on compiling.

Library

We intend to use this as a library to support a move with limited client access downtime. An example of how this will be accomplished is in the integration test method ProgressiveRestore

CLI

You can currently use the CLI to create a copy of a database from one AG to another. It will take a log backup, then restore from the existing backup chain to the new database. If a database exists in the destination AG it will delete it and proceed with the copy.

AgDatabaseMove.Cli --From:ConnectionString="Server=SourceDatabaseListener.domain.com; Integrated Security=true; MultiSubnetFailover=true;" 
    --From:DatabaseName=sourceDbName 
    --From:BackupPathTemplate="\\NetworkShare\{0}_backup_{1}.trn" 
    --To:ConnectionString="Server=DestinationDatabaseListener.domain.com; Integrated Security=true; MultiSubnetFailover=true;" 
    --To:DatabaseName=DestinationDbName 
    --Overwrite=true

Contributing

If you would like to contribute see contributing.md for details.

Authors

License

This project is licensed under the Apache 2.0 License - see license.md for details.

agdatabasemove's People

Contributors

kaneraz avatar kevelairn avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.