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

    demotelo

    @demotelo

    1
    Reputation
    44
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    demotelo Unfollow Follow

    Best posts made by demotelo

    • 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

    Latest posts made by demotelo

    • RE: Posh-SSH

      @dafyre said in Posh-SSH:

      For the remote system, is it always creating new files? If so, you could set your script to delete files older than so many days and then run the SFTP?

      Of course, the copy of the content is generated with robocopy incrementally, the whole environment is a Windows, except the SFTP which is a Linux, so in theory I could not make incremental copies to the sftp 😞

      posted in IT Discussion
      D
      demotelo
    • 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