Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Generate-SQLServerRestoreFiles.ps1
README.md

README.md

DBA-CYA

As a DBA you are responsible for much more than simply backup and recovery of databases. This script will backup some SQL Server objects. This function exports the files for a SQL Server restore including Databases, Backup Devices, Triggers, SQL Agent, Jobs, Linked Servers, Logins, Roles, Alerts, Operators, and DB Mail settings. with PowerShell to a chosen directory. Will overwrite the previous files.

Getting Started

Clone or download the repo

Prerequisites

Examples

Export-SqlRestoreFile -Server Server1\Inst1 -OutputDirectory "D:\DbBackups"

Export-SqlRestoreFile -Server Server1\Inst1,Server2/Inst1 -OutputDirectory "D:\DbBackups"

You can’t perform that action at this time.