Differences
This shows you the differences between the selected revisions of the page.
| 2017-10-03 | 2017-10-03 | ||
| using variable expansion in strings in powershell (martin) | code wrapping for new design (martin) | ||
| Line 249: | Line 249: | ||
| UserName = "user", | UserName = "user", | ||
| Password = "mypassword", | Password = "mypassword", | ||
| - | SshHostKeyFingerprint = "ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx" | + | SshHostKeyFingerprint = "ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx..." |
| }; | }; | ||
| Line 261: | Line 261: | ||
| string backupPath = | string backupPath = | ||
| - | session.CombinePaths(session.HomePath, "backup/" + Environment.GetEnvironmentVariable("WEBJOBS_RUN_ID")); | + | session.CombinePaths( |
| + | ························session.HomePath, | ||
| + | ·······················"backup/" + Environment.GetEnvironmentVariable("WEBJOBS_RUN_ID")); | ||
| session.CreateDirectory(backupPath); | session.CreateDirectory(backupPath); | ||
| Console.WriteLine("Uploading..."); | Console.WriteLine("Uploading..."); | ||
| - | string source = Path.Combine(Environment.GetEnvironmentVariable("WEBROOT_PATH"), "*"); | + | string source = |
| + | ···················Path.Combine(Environment.GetEnvironmentVariable("WEBROOT_PATH"), "*"); | ||
| string target = backupPath + "/"; | string target = backupPath + "/"; | ||
| session.PutFiles(source, target).Check(); | session.PutFiles(source, target).Check(); | ||