Restaurer le dossier PythonAnomalyDetection à partir d'une copie de sauvegarde.
Restore-DPSAnomalyDetectionFolder [-BackupPath] <string> [-ApplicationPath] <string> [-WhatIf]
[-Confirm] [<CommonParameters>]
Restaurer le dossier PythonAnomalyDetection à partir d'une copie de sauvegarde vers l'instance Devolutions Server. Cet applet de commande copie le dossier PythonAnomalyDetection de l'emplacement de sauvegarde vers le chemin d'installation de Devolutions Server. Si le dossier n'existe pas dans la sauvegarde, l'applet de commande se termine silencieusement sans erreur. Cet applet de commande nécessite les autorisations d'accès en écriture au système de fichiers vers le chemin d'installation de Devolutions Server et les autorisations de lecture vers l'emplacement de sauvegarde.
PS C:\> $DVLSPath = '/home/myuser/dvls/'
PS C:\> $backupConfigurationFiles = '/home/myuser/dvlsBackup/dvlsConfig/'
PS C:\> $backupInstallationFiles = '/home/myuser/dvlsBackup/dvlsFiles/'
PS C:\> $downloadPath = '/home/myuser/dvlsLatest.tar.gz'
PS C:\> Backup-DPSConfigurationFiles -ApplicationPath $DVLSPath -BackupConfigurationPath $backupConfigurationFiles
PS C:\> Remove-Item -Path "$backupInstallationFiles/*" -Recurse -Force
PS C:\> Backup-DPSInstallationFiles -ApplicationPath $DVLSPath -BackupPath $backupInstallationFiles
PS C:\> $connectionString = (Get-DPSAppSettings -ApplicationPath $backupConfigurationFiles).ConnectionStrings.LocalSqlServer
PS C:\> Get-DPSProduct -Name DPSLinuxX64bin -Destination $downloadPath
PS C:\> tar -xzf $downloadPath -C $DVLSPath --strip-components=1
PS C:\> Update-DPSDatabase -ConnectionString $connectionString -InstallationPath $DVLSPath
PS C:\> Restore-DPSCustomFolders -BackupPath $backupInstallationFiles -ApplicationPath $DVLSPath
PS C:\> Restore-DPSAnomalyDetectionFolder -BackupPath $backupInstallationFiles -ApplicationPath $DVLSPath
PS C:\> Restore-DPSConfigurationFiles -BackupConfigurationPath $backupConfigurationFiles -ApplicationPath $DVLSPath
Flux de travail pour mettre à jour une instance de Devolutions Server.
Chemin d'instance Devolutions Server.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 2
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
Chemin du dossier de sauvegarde.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 1
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
Vous inviter à confirmation avant d'exécuter l'applet de commande.
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases:
- cf
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
Afficher ce qui se passerait si l'applet de commande s'exécute. L'applet de commande n'est pas exécutée.
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases:
- wi
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
Cette applet de commande prend en charge les paramètres communs : -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction et -WarningVariable. Pour plus d'informations, voir about_CommonParameters.
Pour plus d'informations, taper "Get-Help Restore-DPSAnomalyDetectionFolder -detailed". Pour des informations techniques, taper "Get-Help Restore-DPSAnomalyDetectionFolder -full".