Local files are read only after "synchronize local..."

Advertisement

Petr Nowak
Guest

Local files are read only after "synchronize local..."

Local files are read only after "synchronize local...". How to avoid this ?

option batch on
option confirm off
option synchdelete on
echo on
open pnowak@WEBtest
chmod 666 *.*
option transfer binary
synchronize local d:\BackupsWEBtest\ \Zalohy\
close
exit

Reply with quote

Advertisement

Guest

I use WINscp to synchronize files from remote to local (via script, synchronize command, see above). Remote files are readwrite. Local files are readonly after synchronization. Why ? Does WINscp set readonly attribute on synchronized local files ? How to avoid this behaviour ?
Read only attribute is a reason why synchronization is not able to rewrite old local files with new remote one, during next synchronization. I'm not able to find how to avoid this ...
If I remove manually readonly attribute in local before start of new synchronization, all is correct and WINscp makes its job and transfer changed files.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

I use WINscp to synchronize files from remote to local (via script, synchronize command, see above). Remote files are readwrite. Local files are readonly after synchronization. Why ? Does WINscp set readonly attribute on synchronized local files ? How to avoid this behaviour ?
WinSCP sets readonly attribute for files that are readonly on remote side. I guess I should turn this feature off by default.

Reply with quote

Advertisement

You can post new topics in this forum