I'm trying to create a script to synchronize a local drive folder with a folder in an SFTP site. However I keep getting an error and the transfer stops:
error occurred while setting the permissions and/or timestamp.
If the problem persists, turn off setting permissions or preserving timestamp. Alternatively you can turn on 'Ignore permission errors' option.
The server does not support the operation.
Error code: 8
This SFTP is in an S3 bucket and you can't modify the timestamp after it's been uploaded. Here is my code. What am I doing wrong? I just want the folders to synchronize and I'm ok if they aren't time stamped. Thanks in advance!
Batch file code:
@echo off
REM CD "C:\Program Files (x86)\WinSCP"
WinSCP.com /script=C:\Scripts\SFTPupload.txt > C:\Scripts\SFTPuploadLog.txt
Here's my script:
option echo off
option batch on
option confirm off
open sftp://ChadLogTest:pass@sftp.site.com/
synchronize remote -delete -nopermissions -nopreservetime <localpath> <sftp path>
exit