• Stars
    star
    133
  • Rank 272,600 (Top 6 %)
  • Language
    PowerShell
  • License
    MIT License
  • Created over 6 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

👯 Clone SQL Server databases using PowerShell previously named PSDatabaseClone
Master Branch Development Branch
Build status Build status

dbaclone

dbaclone is a PowerShell module for creating SQL Server database images and clones. It enables administrator to supply environments with database copies that are a fraction of the original size.

Do you have any ideas for new commands? Please propose them as issues and let us know what you'd like to see. Bug reports should also be filed under this repository's issues section.

Take a look at the wiki to get more information on how to install, configure and use dbaclone.

Why use dbaclone

  • Save lots of space provisioning data to other locations
  • Spend less time provisioning databases
  • Create multiple local copies of a database from the same image
  • Make sure there tests are accurate with up-to-date data

Usage scenarios

There are multiple scenarios where you could use the module with

  • Supply developers with a local copy of the database
  • Provision non-production servers with production data
  • Implement a CI/CD pipeline with production like copies

Prerequisites

As with every piece of software we need to set some prerequisites to make this module work.

  • Windows 10 (Professional, Enterprise or Education) or Windows Server 2012 R2 (Standard, Enterprise or Datacenter) and up
  • PowerShell 5 or above
  • SQL Server instance for saving image and clone information (dbaclone database)
  • SQL Server instance to create the images (can be the same as for saving the information)
  • Enough space to save to save one copy of the database (size of the image is the size of the database)

How does it work

The process consists of the following steps:

  1. Setup the module
  2. Create an image of the database
  3. Create a clone based on an image

It's that easy.

Planned for future releases

  • Default directories for the images
  • Creation of multiple disks for a single database to rebuild original file structure

More Repositories

1

dbatools

🚀 SQL Server automation and instance migrations have never been safer, faster or freer
PowerShell
2,441
star
2

dbachecks

✔ SQL Server Environmental Validation
PowerShell
461
star
3

dbops

âš™ dbops - Powershell module that provides continuous database deployments on any scale
PowerShell
155
star
4

DataSaturdays

A repository for open sourcing a solution for Data Saturdays
HTML
142
star
5

dbareports

PowerShell Module to gather, store and report on data about your estate. **This repository has been archived due to no longer being maintained.**
PowerShell
110
star
6

Invoke-SqlCmd2

PowerShell module containing Invoke-SqlCmd2
PowerShell
68
star
7

community-presentations

Presentation Repository for SQL Server / PowerShell Presentations within the Community
Jupyter Notebook
41
star
8

dbatools-templates

Templates for dbatools commands
PowerShell
30
star
9

dbatools-lab

Build a lab environment for testing out dbatools
Jupyter Notebook
22
star
10

mastodon

Where to find Data Platform, PowerShell and Power BI Twitter friends on Mastodon
20
star
11

docker

The code that's used to create the dbatools SQL Server images on Docker Hub.
TSQL
18
star
12

dbadisa

🦅 DISA STIG automation module for SQL Server
PowerShell
16
star
13

docs

The documentation for dbatools module. Issues with command doc and bugs should be reported to dataplat/dbatools.
HTML
15
star
14

ADSNotebook

PowerShell Module for interacting with Azure Data Studio Notebooks
PowerShell
14
star
15

AlwaysEncryptedSample

Sample ASP.NET MVC Application for demonstrating Microsoft SQL Server Always Encrypted Functionality
C#
14
star
16

dbarefresh

🔄 Database refresh module to copy partial data from production to another database
PowerShell
12
star
17

dataplat.github.io

Resources for the SQL Collaborative
HTML
11
star
18

AzureDataPipelineTools

A collection of Azure Function to make building Azure Data Factory pipeline simpler and easier.
C#
10
star
19

dbasecurityscan

Baseline, check and correct your SQL Database Security
PowerShell
10
star
20

dbatools.library

dbatools smo library builder
C#
7
star
21

dbatools-traininglab

a nice lil tutorial to help with useful tutorials
4
star
22

ssis-reporting-pack

3
star
23

dbatools-lab-dotnet-extension

This repo will hold the code to make the Azure Data Studio Extension for the dbatools dotnet interactive Notebooks which enables you to run dbatools against a couple of containers on your machine
Jupyter Notebook
3
star
24

disa-docs

Crowd-sourced Template for SQL Server Documentation as required by DISA
3
star
25

DataSpeakers

A simple repository which can serve as a resource for event owners to find speakers. The data is displayed on https://callfordataspeakers.com/precon and controlled with GitHub Issues and GitHub Actions
Shell
3
star
26

appveyor-lab

repo for full-on appveyor tests
TSQL
2
star
27

AlwaysEncryptedSample.Docs

2
star
28

sqlpsweb

basically a redirector
HTML
2
star
29

dbatools-libary

Source code to the dbatools.dll library utilized by dbatools PowerShell module
C#
2
star
30

dbachecksweb

redirector site for dbachecks.io
HTML
1
star
31

yourrole

Shell
1
star
32

web

dbatools.io website
HTML
1
star