Skip to content

Commit f4187ad

Browse files
potatoqualiteegithub-actions[bot]
authored andcommitted
refreshing docs pages
1 parent 55d5e67 commit f4187ad

File tree

6 files changed

+771
-735
lines changed

6 files changed

+771
-735
lines changed

Copy-DbaDatabase.html

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,7 @@ <h2 id="syntax">Syntax</h2>
510510
[-NoBackupCleanup]
511511
[-NumberFiles &lt;Int32&gt;]
512512
[-SetSourceReadOnly]
513+
[-SetSourceOffline]
513514
[-ReuseSourceFolderStructure]
514515
[-IncludeSupportDbs]
515516
[-UseLastBackup]
@@ -518,7 +519,6 @@ <h2 id="syntax">Syntax</h2>
518519
[-NoCopyOnly]
519520
[-KeepCDC]
520521
[-KeepReplication]
521-
[-SetSourceOffline]
522522
[-NewName &lt;String&gt;]
523523
[-Prefix &lt;String&gt;]
524524
[-Force]
@@ -539,11 +539,11 @@ <h2 id="syntax">Syntax</h2>
539539
-DetachAttach
540540
[-Reattach]
541541
[-SetSourceReadOnly]
542+
[-SetSourceOffline]
542543
[-ReuseSourceFolderStructure]
543544
[-IncludeSupportDbs]
544545
[-InputObject &lt;Database[]&gt;]
545546
[-NoCopyOnly]
546-
[-SetSourceOffline]
547547
[-NewName &lt;String&gt;]
548548
[-Prefix &lt;String&gt;]
549549
[-Force]
@@ -1128,6 +1128,36 @@ <h5 id="setsourcereadonly">-SetSourceReadOnly</h5>
11281128
</tr>
11291129
</tbody>
11301130
</table>
1131+
<h5 id="setsourceoffline">-SetSourceOffline</h5>
1132+
<p>Sets source databases offline before migration to prevent any connections during the process.<br />
1133+
Use this to ensure complete isolation when databases must be completely inaccessible at the source during migration.<br />
1134+
When combined with -Reattach, databases are brought back online after being reattached to the source.<br></p>
1135+
<table>
1136+
<thead>
1137+
<tr>
1138+
<th></th>
1139+
<th></th>
1140+
</tr>
1141+
</thead>
1142+
<tbody>
1143+
<tr>
1144+
<td>Alias</td>
1145+
<td></td>
1146+
</tr>
1147+
<tr>
1148+
<td>Required</td>
1149+
<td>False</td>
1150+
</tr>
1151+
<tr>
1152+
<td>Pipeline</td>
1153+
<td>false</td>
1154+
</tr>
1155+
<tr>
1156+
<td>Default Value</td>
1157+
<td>False</td>
1158+
</tr>
1159+
</tbody>
1160+
</table>
11311161
<h5 id="reusesourcefolderstructure">-ReuseSourceFolderStructure</h5>
11321162
<p>Maintains the exact file path structure from the source instance on the destination.<br />
11331163
Use this when destination servers have identical drive layouts or when preserving specific organizational folder structures.<br />
@@ -1363,35 +1393,6 @@ <h5 id="keepreplication">-KeepReplication</h5>
13631393
</tr>
13641394
</tbody>
13651395
</table>
1366-
<h5 id="setsourceoffline">-SetSourceOffline</h5>
1367-
<p>Sets source databases to offline status after successful migration.<br />
1368-
Use this for cutover scenarios where source databases should be unavailable after migration.<br></p>
1369-
<table>
1370-
<thead>
1371-
<tr>
1372-
<th></th>
1373-
<th></th>
1374-
</tr>
1375-
</thead>
1376-
<tbody>
1377-
<tr>
1378-
<td>Alias</td>
1379-
<td></td>
1380-
</tr>
1381-
<tr>
1382-
<td>Required</td>
1383-
<td>False</td>
1384-
</tr>
1385-
<tr>
1386-
<td>Pipeline</td>
1387-
<td>false</td>
1388-
</tr>
1389-
<tr>
1390-
<td>Default Value</td>
1391-
<td>False</td>
1392-
</tr>
1393-
</tbody>
1394-
</table>
13951396
<h5 id="newname">-NewName</h5>
13961397
<p>Renames the database during migration when copying a single database.<br />
13971398
The database name and physical file names are updated to use the new name.<br />

Get-DbaRandomizedValue.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,11 +521,11 @@ <h5 id="example-2">Example: 2</h5>
521521
</code></pre>
522522
<p>Will generate a number between -2147483648 and 2147483647<br></p>
523523
<h5 id="example-3">Example: 3</h5>
524-
<pre><code>PS C:\&gt; Get-DbaRandomizedValue -RandomizerSubType Zipcode
524+
<pre><code>PS C:\&gt; Get-DbaRandomizedValue -RandomizerType Address -RandomizerSubType Zipcode
525525
</code></pre>
526526
<p>Generates a random zipcode<br></p>
527527
<h5 id="example-4">Example: 4</h5>
528-
<pre><code>PS C:\&gt; Get-DbaRandomizedValue -RandomizerSubType Zipcode -Format &quot;#### ##&quot;
528+
<pre><code>PS C:\&gt; Get-DbaRandomizedValue -RandomizerType Address -RandomizerSubType Zipcode -Format &quot;#### ##&quot;
529529
</code></pre>
530530
<p>Generates a random zipcode like &quot;1234 56&quot;<br></p>
531531
<h5 id="example-5">Example: 5</h5>

Start-DbaMigration.html

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,7 @@ <h2 id="syntax">Syntax</h2>
525525
[-WithReplace]
526526
[-NoRecovery]
527527
[-SetSourceReadOnly]
528+
[-SetSourceOffline]
528529
[-ReuseSourceFolderStructure]
529530
[-IncludeSupportDbs]
530531
[[-SourceSqlCredential] &lt;PSCredential&gt;]
@@ -575,6 +576,10 @@ <h5 id="example-3">Example: 3</h5>
575576
</code></pre>
576577
<p>Migrates databases using detach/copy/attach. Reattach at source and set source databases read-only. Also migrates everything else.<br></p>
577578
<h5 id="example-4">Example: 4</h5>
579+
<pre><code>PS C:\&gt; Start-DbaMigration -Verbose -Source sqlcluster -Destination sql2016 -BackupRestore -SharedPath &quot;\\fileserver\backups&quot; -SetSourceOffline
580+
</code></pre>
581+
<p>Migrates databases using backup/restore method. Sets source databases offline before migration to prevent any connections during the process.<br></p>
582+
<h5 id="example-5">Example: 5</h5>
578583
<pre><code>PS C:\&gt; $PSDefaultParameters = @{
579584
&gt;&gt; &quot;dbatools:Source&quot; = &quot;sqlcluster&quot;
580585
&gt;&gt; &quot;dbatools:Destination&quot; = &quot;sql2016&quot;
@@ -855,6 +860,36 @@ <h5 id="setsourcereadonly">-SetSourceReadOnly</h5>
855860
</tr>
856861
</tbody>
857862
</table>
863+
<h5 id="setsourceoffline">-SetSourceOffline</h5>
864+
<p>Sets migrated databases offline on the source server before migration begins.<br />
865+
This prevents any connections to the source databases during migration, ensuring complete isolation.<br />
866+
When combined with -Reattach, databases are brought back online after being reattached to the source.<br></p>
867+
<table>
868+
<thead>
869+
<tr>
870+
<th></th>
871+
<th></th>
872+
</tr>
873+
</thead>
874+
<tbody>
875+
<tr>
876+
<td>Alias</td>
877+
<td></td>
878+
</tr>
879+
<tr>
880+
<td>Required</td>
881+
<td>False</td>
882+
</tr>
883+
<tr>
884+
<td>Pipeline</td>
885+
<td>false</td>
886+
</tr>
887+
<tr>
888+
<td>Default Value</td>
889+
<td>False</td>
890+
</tr>
891+
</tbody>
892+
</table>
858893
<h5 id="reusesourcefolderstructure">-ReuseSourceFolderStructure</h5>
859894
<p>Preserves the original file paths from the source server when restoring databases on the destination.<br />
860895
By default, databases are restored to the destination's default data and log directories.<br />

assets/dbatools-index.json

2.3 KB
Binary file not shown.

assets/external.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "2.7.14",
2+
"version": "2.7.15",
33
"external_links": [
44
{
55
"name": "offline installs of dbatools",

0 commit comments

Comments
 (0)