Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

Re: How to retain permissions when synchronizing files from local to remote

That option is off by default.
Your script may take a on-default configuration from WinSCP GUI.
You should better isolate your script from GUI configuration:
https://winscp.net/eng/docs/scripting#configuration
nickbe

Re: How to retain permissions when synchronizing files from local to remote

How do I set this in a script? And what exactly do I need to set?
To describe the complete set up: I want to use WinScp to backup multiple folders and to be able to restore them without overwriting the existing permissions :roll:
martin

Re: How to retain permissions when synchronizing files from local to remote

nickbe wrote:

I'm using a synchronize script via SCP, but I can use sftp if need be.

Make sure you have Set permissions transfer setting turned off:
https://winscp.net/eng/docs/ui_transfer_custom
nickbe

How to retain permissions when synchronizing files from local to remote

Is it possible to tell WinSCP to retain all existing permissions when uploading files from local to remote. Especially when overwriting a file, how can I ensure that the resulting file has the same permissions afterwards.