ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Topics
    2. demotelo
    3. Best
    D
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Groups 0

    Posts

    Recent Best Controversial
    • Posh-SSH

      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) }

      posted in IT Discussion
      D
      demotelo
    • 1 / 1