Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

Purging Transaction Replication Snapshot Folder Contents

$
0
0

Hello,

SQL2k16 Ent ed. Articles from 4 different user databases are set for transitional replication from ServerA to ServerB. ServerB has both Distributor and Subscriber and ServerA has Publication. The snapshot is written to a network share of ServerB. There are 4 different parent folders for each of the said user databases.

Currently, the replication happens twice a day and each time it runs, it creates a folder with the date/time stamp on it. An example is given below:

20190703000008

Within each of the above date/time stamp folder, there are bunch of .bcp files, .idx files etc.

Is there a replication server related process that can be used to keep only one copy of the said folder instead of keeping multiple copies since some of the replicated database size has over 100 GBs which eventually will result in running out of disk space if multiple copies are kept. If there are no sql server related processes to control this, then, will end up coming up a powershell script or similar possible solution.

Will greatly appreciate your help.

Thanks.

Victor


Victor


Viewing all articles
Browse latest Browse all 4054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>