<commit_before>﻿<#
.Synopsis
   Starts a Backup task on the Octopus Instance
.DESCRIPTION
   Starts a Backup task on the Octopus Instance
.EXAMPLE
   Start-OctopusBackup   

   Starts a Backup task on the Octopus Instance
.EXAMPLE
   Start-OctopusBackup -force -wait -Message "My Custom Backup"  

   Starts a Backup task with a custom description, without getting prompted and waits until it finishes 
.LINK
   Github project: https://github.com/Dalmirog/Octoposh
   Advanced Cmdlet Usage: https://github.com/Dalmirog/OctoPosh/wiki/Advanced-Examples
   QA and Cmdlet request: https://gitter.im/Dalmirog/OctoPosh#initial
#>
function Start-OctopusBackup
{
    [CmdletBinding()]
    Param
    (
        # The message that will show up on the Octopus task. If a value is not passed to this parameter, a default message will be used
        [string]$Message,

        # Forces cmdlet to continue without prompting
        [switch]$Force,

        # Waits until the task is not on states "Queued" or "Executing"<commit_msg>added 3.0 disclaimer<commit_after>﻿<#
.Synopsis
   Starts a Backup task on the Octopus Instance.

   This cmdlet will only work on Octopus 2.6 and below. On Octopus 3.0 the database technology was switched to SQL server, and the users will be in charge of engineering their own backup strategies
.DESCRIPTION
   Starts a Backup task on the Octopus Instance

   This cmdlet will only work on Octopus 2.6 and below. On Octopus 3.0 the database technology was switched to SQL server, and the users will be in charge of engineering their own backup strategies
.EXAMPLE
   Start-OctopusBackup   

   Starts a Backup task on the Octopus Instance
.EXAMPLE
   Start-OctopusBackup -force -wait -Message "My Custom Backup"  

   Starts a Backup task with a custom description, without getting prompted and waits until it finishes 
.LINK
   Github project: https://github.com/Dalmirog/Octoposh
   Advanced Cmdlet Usage: https://github.com/Dalmirog/OctoPosh/wiki/Advanced-Examples
   QA and Cmdlet request: https://gitter.im/Dalmirog/OctoPosh#initial
#>
function Start-OctopusBackup
{
    [CmdletBinding()]
    Param
    (
        # The message that will show up on the Octopus task. If a value is not passed to this parameter, a default message will be used
        [string]$Message,

        # Forces cmdlet to continue without prompting
        [switch]$Force,

        # Waits until the task is not on states "Queued" or "Executing"
{'fraction_non_alphanumeric': 0.06142506142506143, 'fraction_numerical': 0.004095004095004095, 'mean_word_length': 3.339253996447602, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1661471', 'n_tokens_mistral': 743, 'n_tokens_neox': 701, 'n_words': 297}