diff --git a/backup.ps1 b/backup.ps1 index b98dc2e..e215094 100644 --- a/backup.ps1 +++ b/backup.ps1 @@ -140,7 +140,7 @@ function Invoke-Backup { # Build the new list of folders from settings (if there are any) $folder_list = New-Object System.Collections.Generic.List[System.Object] ForEach ($path in $item.Value) { - $p = Join-Path $root_path $path + $p = '"{0}"' -f ((Join-Path $root_path $path) -replace "\\$", "") $folder_list.Add($p) }