Skip to content

Commit

Permalink
refreshing docs pages
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee authored and github-actions[bot] committed May 18, 2024
1 parent 4abf786 commit 495c477
Show file tree
Hide file tree
Showing 5 changed files with 795 additions and 701 deletions.
31 changes: 31 additions & 0 deletions Backup-DbaDatabase.html
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ <h2 id="syntax">Syntax</h2>
[-FilePath &lt;String&gt;]
[-IncrementPrefix]
[-ReplaceInName]
[-NoAppendDbNameInPath]
[-CopyOnly]
[-Type &lt;String&gt;]
[-CreateFolder]
Expand Down Expand Up @@ -533,6 +534,7 @@ <h2 id="syntax">Syntax</h2>
[-FilePath &lt;String&gt;]
[-IncrementPrefix]
[-ReplaceInName]
[-NoAppendDbNameInPath]
[-CopyOnly]
[-Type &lt;String&gt;]
[-CreateFolder]
Expand Down Expand Up @@ -569,6 +571,7 @@ <h2 id="syntax">Syntax</h2>
[-FilePath &lt;String&gt;]
[-IncrementPrefix]
[-ReplaceInName]
[-NoAppendDbNameInPath]
[-CopyOnly]
[-Type &lt;String&gt;] -InputObject &lt;Object[]&gt;
[-CreateFolder]
Expand Down Expand Up @@ -908,6 +911,34 @@ <h5 id="replaceinname">-ReplaceInName</h5>
</tr>
</tbody>
</table>
<h5 id="noappenddbnameinpath">-NoAppendDbNameInPath</h5>
<p>A switch that will prevent to systematically appended dbname to the path when creating the backup file path<br></p>
<table>
<thead>
<tr>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td>Alias</td>
<td></td>
</tr>
<tr>
<td>Required</td>
<td>False</td>
</tr>
<tr>
<td>Pipeline</td>
<td>false</td>
</tr>
<tr>
<td>Default Value</td>
<td>False</td>
</tr>
</tbody>
</table>
<h5 id="copyonly">-CopyOnly</h5>
<p>If this switch is enabled, CopyOnly backups will be taken. By default function performs a normal backup, these backups interfere with the restore chain of the database. CopyOnly backups will not
interfere with the restore chain of the database.
Expand Down
71 changes: 67 additions & 4 deletions New-DbaAvailabilityGroup.html
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,8 @@ <h2 id="syntax">Syntax</h2>
[[-Secondary] &lt;DbaInstanceParameter[]&gt;]
[[-SecondarySqlCredential] &lt;PSCredential&gt;]
[-Name] &lt;String&gt;
[-IsContained]
[-ReuseSystemDatabases]
[-DtcSupport]
[[-ClusterType] &lt;String&gt;]
[[-AutomatedBackupPreference] &lt;String&gt;]
Expand Down Expand Up @@ -575,22 +577,26 @@ <h5 id="example-3">Example: 3</h5>
</code></pre>
<p>Creates a basic availability group named BAG1 on sql2016std and does not confirm when setting up<br></p>
<h5 id="example-4">Example: 4</h5>
<pre><code>PS C:\&gt; New-DbaAvailabilityGroup -Primary sql2022n01 -Secondary sql2022n02 -Name AgContained -IsContained
</code></pre>
<p>Creates a contained availability group named AgContained on nodes sql2022n01 and sql2022n02<br></p>
<h5 id="example-5">Example: 5</h5>
<pre><code>PS C:\&gt; New-DbaAvailabilityGroup -Primary sql2016b -Name AG1 -Dhcp -Database db1 -UseLastBackup
</code></pre>
<p>Creates an availability group on sql2016b with the name ag1. Uses the last backups available to add the database db1 to the AG.<br></p>
<h5 id="example-5">Example: 5</h5>
<h5 id="example-6">Example: 6</h5>
<pre><code>PS C:\&gt; New-DbaAvailabilityGroup -Primary sql2017 -Name SharePoint -ClusterType None -FailoverMode Manual
</code></pre>
<p>Creates a new availability group on sql2017 named SharePoint with a cluster type of none and a failover mode of manual<br></p>
<h5 id="example-6">Example: 6</h5>
<h5 id="example-7">Example: 7</h5>
<pre><code>PS C:\&gt; New-DbaAvailabilityGroup -Primary sql1 -Secondary sql2 -Name ag1 -Database pubs -ClusterType None -SeedingMode Automatic -FailoverMode Manual
</code></pre>
<p>Creates a new availability group with a primary replica on sql1 and a secondary on sql2. Automatically adds the database pubs.<br></p>
<h5 id="example-7">Example: 7</h5>
<h5 id="example-8">Example: 8</h5>
<pre><code>PS C:\&gt; New-DbaAvailabilityGroup -Primary sql1 -Secondary sql2 -Name ag1 -Database pubs -EndpointUrl 'TCP://sql1.specialnet.local:5022', 'TCP://sql2.specialnet.local:5022'
</code></pre>
<p>Creates a new availability group with a primary replica on sql1 and a secondary on sql2 with custom endpoint urls. Automatically adds the database pubs.<br></p>
<h5 id="example-8">Example: 8</h5>
<h5 id="example-9">Example: 9</h5>
<pre><code>PS C:\&gt; $cred = Get-Credential sqladmin
PS C:\&gt; $params = @{
&gt;&gt; Primary = &quot;sql1&quot;
Expand Down Expand Up @@ -753,6 +759,63 @@ <h5 id="secondarysqlcredential">-SecondarySqlCredential</h5>
</tr>
</tbody>
</table>
<h5 id="iscontained">-IsContained</h5>
<p>Builds the Availability Group as contained. Only supported in SQL Server 2022 or higher.
<a href="https://learn.microsoft.com/en-us/sql/database-engine/availability-groups/windows/contained-availability-groups-overview">https://learn.microsoft.com/en-us/sql/database-engine/availability-groups/windows/contained-availability-groups-overview</a><br></p>
<table>
<thead>
<tr>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td>Alias</td>
<td></td>
</tr>
<tr>
<td>Required</td>
<td>False</td>
</tr>
<tr>
<td>Pipeline</td>
<td>false</td>
</tr>
<tr>
<td>Default Value</td>
<td>False</td>
</tr>
</tbody>
</table>
<h5 id="reusesystemdatabases">-ReuseSystemDatabases</h5>
<p>Used when rebuilding an availability group with the same name, where system databases already exist for the contained availability group.<br></p>
<table>
<thead>
<tr>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td>Alias</td>
<td></td>
</tr>
<tr>
<td>Required</td>
<td>False</td>
</tr>
<tr>
<td>Pipeline</td>
<td>false</td>
</tr>
<tr>
<td>Default Value</td>
<td>False</td>
</tr>
</tbody>
</table>
<h5 id="dtcsupport">-DtcSupport</h5>
<p>Indicates whether the DtcSupport is enabled<br></p>
<table>
Expand Down
Binary file modified assets/dbatools-index.json
Binary file not shown.
2 changes: 1 addition & 1 deletion assets/external.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.1.13",
"version": "2.1.15",
"external_links": [
{
"name": "offline installs of dbatools",
Expand Down
Loading

0 comments on commit 495c477

Please sign in to comment.