Topic "Script won't synchronize folders"

Author Message
mar_lub
[View user's profile]

Joined: 2016-02-17
Posts: 3
Location: Down Under
Script :
option batch
option confirm off
open "TEST profile"
synchronize remote "z:\test out\" /OUT
exit

It logs in fine, but when I log with GUI file is not at the remote site:

"
......
2016-02-17 13:58:15.660 Copying "D:\test out\test2.17.16.txt" to remote directory started.
. 2016-02-17 13:58:15.660 Binary transfer mode selected.
. 2016-02-17 13:58:15.660 Opening remote file.
> 2016-02-17 13:58:15.660 Type: SSH_FXP_OPEN, Size: 45, Number: 1539
< 2016-02-17 13:58:15.660 Type: SSH_FXP_STATUS, Size: 40, Number: 1284
. 2016-02-17 13:58:15.660 Discarding reserved response
< 2016-02-17 13:58:16.004 Type: SSH_FXP_HANDLE, Size: 10, Number: 1539
> 2016-02-17 13:58:16.004 Type: SSH_FXP_CLOSE, Size: 10, Number: 2052
> 2016-02-17 13:58:16.004 Type: SSH_FXP_SETSTAT, Size: 41, Number: 1801
< 2016-02-17 13:58:16.082 Type: SSH_FXP_STATUS, Size: 40, Number: 2052
< 2016-02-17 13:58:16.082 Status code: 0
. 2016-02-17 13:58:16.082 Preserving timestamp [2016-02-17T02:56:32.000Z]
< 2016-02-17 13:58:16.082 Type: SSH_FXP_STATUS, Size: 40, Number: 1801
< 2016-02-17 13:58:16.082 Status code: 0
. 2016-02-17 13:58:16.082 Transfer done: 'D:\test out\test2.17.16.txt' [0]
> 2016-02-17 13:58:16.082 Script: exit
. 2016-02-17 13:58:16.082 Script: Exit code: 0
. 2016-02-17 13:58:16.082 Closing connection.
. 2016-02-17 13:58:16.082 Sending special code: 12
. 2016-02-17 13:58:16.082 Sent EOF message
"
Any ideas guys, thanks
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
It's a script file. It has nothing to do with GUI. What are you trying to do?
mar_lub
[View user's profile]

Joined: 2016-02-17
Posts: 3
Location: Down Under
prikryl wrote:
It's a script file. It has nothing to do with GUI. What are you trying to do?

Hi,
let me explain:
- script should synchronise local and remote directories,
- seems to be working fine, as per log file
- when I log in to verify if the files have been copied successfully using GUI, there're not visible
My question is:
is it possible files are copied b I can't see them , because their rights aren't preserved on remote side?
Regards
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
mar_lub wrote:
is it possible files are copied b I can't see them , because their rights aren't preserved on remote side?

It's possible that you do not have a listing permissions. Or that some process takes the file away for processing after it is uploaded.
If you upload the file in GUI to the same folder, can you see it?
mar_lub
[View user's profile]

Joined: 2016-02-17
Posts: 3
Location: Down Under
prikryl wrote:
mar_lub wrote:
is it possible files are copied b I can't see them , because their rights aren't preserved on remote side?

It's possible that you do not have a listing permissions. Or that some process takes the file away for processing after it is uploaded.
If you upload the file in GUI to the same folder, can you see it?


That makes sense,
Yes I can see it once uploaded via GUI.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
mar_lub wrote:
Yes I can see it once uploaded via GUI.

Show us a log file for that.

Add ls command after the synchronize and show us a log file for the script too.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License