Temps,bins Updated

main
Bryan Cerrati 2024-10-25 09:24:37 -04:00
parent 637e3697ca
commit a390813787
1 changed files with 3 additions and 3 deletions

View File

@ -5,10 +5,10 @@ $remotePassword = "your_password" # Replace with your password for the remote s
$remotePath = "/volume/autobackup"
$localPath = "D:/Shared/unifibackup/"
$zipFileName = "backup_$(Get-Date -Format yyyy-MM-dd).zip"
$pscpPath = "C:\path\to\pscp.exe" # Update with the correct path to pscp.exe
$localTempFolder = "$env:TEMP\autobackup"
$pscpPath = (Join-Path -Path (Split-Path -Parent $MyInvocation.MyCommand.Path) -ChildPath "bin\pscp.exe")
$localTempFolder = (Join-Path -Path (Split-Path -Parent $MyInvocation.MyCommand.Path) -ChildPath "temp")
# Create temporary folder
# Create temporary folder if it doesn't exist
if (-Not (Test-Path $localTempFolder)) {
New-Item -ItemType Directory -Path $localTempFolder | Out-Null
}