From bf4505a12f000dc1ba781406e004c93964db53c8 Mon Sep 17 00:00:00 2001 From: Andre Savioli Date: Mon, 17 Feb 2025 11:11:24 +0000 Subject: [PATCH 1/2] adding compression to the backups --- MS_DistributorMetadata.sql | 2 +- MS_PublisherMetadata.sql | 2 +- MS_SubscriberMetadata.sql | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MS_DistributorMetadata.sql b/MS_DistributorMetadata.sql index 3cffa15..2c42161 100644 --- a/MS_DistributorMetadata.sql +++ b/MS_DistributorMetadata.sql @@ -70,6 +70,6 @@ SELECT * INTO MSdistpublishers FROM msdb..MSdistpublishers WITH(NOLOCK) Go --Change backup location if needed. -BACKUP DATABASE MS_DistBackup to disk='c:\MS_DistBackup.bak' +BACKUP DATABASE MS_DistBackup to disk='c:\MS_DistBackup.bak' WITH COMPRESSION Go diff --git a/MS_PublisherMetadata.sql b/MS_PublisherMetadata.sql index aa78e2b..b76ca52 100644 --- a/MS_PublisherMetadata.sql +++ b/MS_PublisherMetadata.sql @@ -107,7 +107,7 @@ SELECT * INTO MS_PublisherMetadata.dbo.MSpeer_conflictdetectionconfigrequest FRO Go --Change backup location if needed. -BACKUP DATABASE MS_PublisherMetadata TO DISK='c:\MS_PublisherMetadata.bak' +BACKUP DATABASE MS_PublisherMetadata TO DISK='c:\MS_PublisherMetadata.bak' WITH COMPRESSION GO diff --git a/MS_SubscriberMetadata.sql b/MS_SubscriberMetadata.sql index 08bb085..8ffe4e5 100644 --- a/MS_SubscriberMetadata.sql +++ b/MS_SubscriberMetadata.sql @@ -95,6 +95,6 @@ SELECT * INTO MS_SubscriberMetadata.dbo.MSsnapshotdeliveryprogress FROM dbo.MSsn Go --Change backup location if needed. -Backup database MS_SubscriberMetadata to disk='c:\MS_SubscriberMetadata.bak' +Backup database MS_SubscriberMetadata to disk='c:\MS_SubscriberMetadata.bak' WITH COMPRESSION Go From 142b0d0ac883113061332e0ffa6a4ed73a790dc0 Mon Sep 17 00:00:00 2001 From: Andre Savioli Date: Tue, 28 Jul 2026 11:48:46 +0100 Subject: [PATCH 2/2] updating the comments --- MS_PublisherMetadata.sql | 3 ++- MS_SubscriberMetadata.sql | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/MS_PublisherMetadata.sql b/MS_PublisherMetadata.sql index b76ca52..6601775 100644 --- a/MS_PublisherMetadata.sql +++ b/MS_PublisherMetadata.sql @@ -2,7 +2,8 @@ --Execute on the Publisher: modify backup location below as needed -- --Note: Some errors may appear as not all tables --- may exists on all subscribers +-- may exists on all publishers (different types of replication). +-- This is expected and can be ignored. -- CREATE DATABASE MS_PublisherMetadata diff --git a/MS_SubscriberMetadata.sql b/MS_SubscriberMetadata.sql index 8ffe4e5..6dfaf3c 100644 --- a/MS_SubscriberMetadata.sql +++ b/MS_SubscriberMetadata.sql @@ -1,7 +1,8 @@ +--Subscriber Replication Metadata Collection Script --Execute on the Subscriber database --Note: Some errors may appear as not all tables --- may exists on all subscribers --- +-- may exists on all subscribers (different types of replication). +-- This is expected and can be ignored. create database MS_SubscriberMetadata go