# dataplat/dbatools

🚀 SQL Server automation and instance migrations have never been safer, faster or freer

Repository: https://github.com/dataplat/dbatools
Canonical: https://ross.abutalabs.com/products/dbatools
Homepage: https://dbatools.io
Language: PowerShell
License: MIT
License Family: permissive
Topics: powershell, sql-server, database-administration, best-practices, migrations, sql-server-migration, mssql, database, backup
Last push: 2026-08-26T19:13:38+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 95, longevity 100
- inputs: {"age_days": 4230, "days_push": 7, "days_rel": 33, "gap_med": 8.0, "n_releases_24m": 39}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2827, forks 867 (observed 2026-08-28T04:07:24.224014+00:00)

## What it is
dbatools is a free, open-source PowerShell module with nearly 700 commands for automating SQL Server administration, including instance migrations, backup testing, and disaster recovery. It manages SQL Server instances remotely from a workstation, supporting SQL Server 2000 through 2022 plus Azure SQL variants on Windows, Linux, and macOS.

## Use cases
- migrate a sql server instance to a new server
- test that my database backups actually restore
- run t-sql queries against 50 servers at once
- automate sql server patching across an estate
- set up tde encryption without manual certificate work
- export instance configuration for disaster recovery
- generate html or excel reports of my sql servers

## When to choose
- you administer one or many SQL Server instances and want scriptable, repeatable operations
- you need to migrate instances, test backups, or manage configurations faster than manual SSMS work
- you want a free, community-proven alternative to paid SQL Server management tooling

## When to avoid
- you primarily use other database engines like PostgreSQL, MySQL, or Oracle
- you need a GUI-driven administration experience rather than a command-line module
- you rely heavily on Azure SQL Database, where only ~40% of commands are supported

## Facets
- artifact type: library
- maturity: active
- function: database, backup, developer-tools, cli, workflow-automation
- domain: databases, developer-tools
- platform: windows, cli, cross-platform
- tags: powershell-module, sql-server, dba, instance-migration, backup-verification, mssql, command-line, automation, linux, macos

## Member repositories
- dataplat/dbatools (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:24.224014+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:38:12.775902+00:00, confidence not recorded.
  - readme: https://github.com/dataplat/dbatools (fetched 2026-08-28T04:07:24.224014+00:00, sha 176342bb869c)
  - homepage: https://dbatools.io (fetched 2026-08-29T09:53:31.536272+00:00, sha 6d1b1842c971)
  - site_page: https://dbatools.io/getting-started (fetched 2026-08-29T09:53:31.545645+00:00, sha c52b9b105300)
  - site_page: https://dbatools.io/install (fetched 2026-08-29T09:53:31.550531+00:00, sha 0a330ccbcbd1)
  - site_page: https://dbatools.io/offline-install (fetched 2026-08-29T09:53:31.552612+00:00, sha ccf4e1cce988)
  - site_page: https://dbatools.io/troubleshooting (fetched 2026-08-29T09:53:31.548060+00:00, sha c7b074b7f489)
  - site_page: https://dbatools.io/offline (fetched 2026-08-29T09:53:31.554727+00:00, sha 23db2e1c4526)
- Data as of 2026-08-30T08:39:29.467469+00:00.
