Differences
This shows you the differences between the selected revisions of the page.
| 2019-07-25 | 2020-06-23 | ||
| 5.14.2 Change: Renamed RemotePath.CombinePaths to RemotePath.Combine (martin) | PutFilesToDirectory (martin) | ||
| Line 168: | Line 168: | ||
| Write-Output "Uploading..." | Write-Output "Uploading..." | ||
| - | $session.PutFiles("$env:WEBROOT_PATH\*", "$backupPath/*").Check() | + | $session.PutFilesToDirectory($env:WEBROOT_PATH, $backupPath).Check() |
| } | } | ||
| finally | finally | ||
| Line 267: | Line 267: | ||
| Console.WriteLine("Uploading..."); | Console.WriteLine("Uploading..."); | ||
| - | string source = | + | string source = Environment.GetEnvironmentVariable("WEBROOT_PATH"); |
| - | Path.Combine(Environment.GetEnvironmentVariable("WEBROOT_PATH"), "*"); | + | session.PutFilesToDirectory(source, backupPath).Check(); |
| - | string target = backupPath + "/"; | + | |
| - | session.PutFiles(source, target).Check(); | + | |
| } | } | ||