From 6bfba97a4c6fdde60aeb8dc6ab470925b02a1ce5 Mon Sep 17 00:00:00 2001 From: Kevin Woley Date: Mon, 22 Feb 2021 05:36:53 -0800 Subject: [PATCH] reverting the fix for URL parsing --- backup.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup.ps1 b/backup.ps1 index f398384..7cd5fa3 100644 --- a/backup.ps1 +++ b/backup.ps1 @@ -244,7 +244,7 @@ function Invoke-ConnectivityCheck { else { # parse connection string for hostname # Uri parser doesn't handle leading connection type info (s3:, sftp:, rest:) - $connection_string = $env:RESTIC_REPOSITORY -replace "^s3:","s3://" -replace "^sftp:","sftp://" -replace "^rest:","rest://" + $connection_string = $env:RESTIC_REPOSITORY -replace "^s3:" -replace "^sftp:" -replace "^rest:" $repository_host = ([System.Uri]$connection_string).host }