Post a reply

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

Options

Topic review

martin

Ok, thanks for clarification.
We will see, if more people ask for this.
huangsijun17

Correct. I copied the description from the sync man page directly to avoid confusion with rsync.
martin

That's even more confusing for me – as there are no textual commands in the SFTP protocol.
Perhaps you mean sync shell command?
huangsijun17

SFTP, I missed.
martin

Re: Auto writes data buffered in memory out to disk before logout

You mean to execute some proprietary sync command over the FTP protocol/connection?
huangsijun17

Auto writes data buffered in memory out to disk before logout

I have some embedded devices connected via SFTP. I need to power off the device after copying files via WinSCP. However, powering off the device directly will result in some data loss, so I need to run the sync command to write the copied files to the disk. Can I automatically execute the command to write the files to the disk when WinSCP disconnects?