Hello
I have the following script, which works correctly, but the source folder is growing exponentially and by having -overwrite, it brings me all the data to SFTP, is it possible to copy incrementally?
Import-Module posh-ssh
$ThisSession = New-SFTPSession -ComputerName $SftpIp -Credential $Credential
Set-SFTPFolder -SessionId ($ThisSession).SessionId -RemotePath $SftpPath -LocalFolder $FilePath -Overwrite
Get-SFTPSession | % { Remove-SFTPSession -SessionId ($_.SessionId) }