Post a reply

Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)


Topic review


...don't know what to say.... DHU! (you do not have a face palm emoticon)


Powershell & transferresumesupport in .net/beta version

maybe somebody will be so kind as to help me out.

I'm trying to run a PS script to upload (large) backup files to a Gluster node. It seems I can't turn off the creation of temporary files on the target, and this causes problems with Gluster locking/replicating the 'filepart' files.

Can anybody suggest what I might be doing wrong? (I'm not a scripting guy, please forgive stupid mistakes)

Here are the relevant lines in the script...

[Reflection.Assembly]::LoadFrom("c:\program files (x86)\winscp\WinSCPnet.dll") | Out-Null
$sessionOptions = New-Object WinSCP.SessionOptions
$sessionOptions.Protocol = [WinSCP.Protocol]::Sftp
$transferOptions = New-Object WinSCP.TransferOptions
$transferOptions.ResumeSupport.State = [WinSCP.TransferResumeSupportState]::Off
$session = New-Object WinSCP.Session
$transferResult = $session.PutFiles($fullfilename, $remotePath, $transferOptions)

I also tried setting TransferResumeSupportState to ::Smart and setting a Threshold of 10000000 (10 G), but it does not work either (is threshold a 16-bit integer or a 32-bit integer?)

Any idea what I am doing wrong?