|
@@ -19,7 +19,7 @@ function backup_to_server {
|
|
if (!(Test-Path $key_file) ) { write-host "Unable to find a key for connecting to the server"; return }
|
|
if (!(Test-Path $key_file) ) { write-host "Unable to find a key for connecting to the server"; return }
|
|
|
|
|
|
# Setup to use 7zip and add WinSCP to the path
|
|
# Setup to use 7zip and add WinSCP to the path
|
|
- $env:Path += ";C:\Program Files\7-Zip;C:\Program Files (x86)\WinSCP"
|
|
|
|
|
|
+ $env:Path += ";C:\Program Files\7-Zip;C:\Users\betha\AppData\Local\Programs\WinSCP"
|
|
if (! (Test-Path 'C:\Program Files\7-Zip\7z.exe')) {
|
|
if (! (Test-Path 'C:\Program Files\7-Zip\7z.exe')) {
|
|
Write-Error "Unable to locate 7-zip program file"
|
|
Write-Error "Unable to locate 7-zip program file"
|
|
exit 1
|
|
exit 1
|