Script won't synchronize folders

Advertisement

mar_lub
Joined:
Posts:
3
Location:
Down Under

Script won't synchronize folders

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,658
Location:
Prague, Czechia

Re: Script won't synchronize folders

It's a script file. It has nothing to do with GUI. What are you trying to do?

Reply with quote

mar_lub
Joined:
Posts:
3
Location:
Down Under

Re: Script won't synchronize folders

martin 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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
28,658
Location:
Prague, Czechia

Re: Script won't synchronize folders

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?

Reply with quote

mar_lub
Joined:
Posts:
3
Location:
Down Under

Re: Script won't synchronize folders

martin 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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,658
Location:
Prague, Czechia

Re: Script won't synchronize folders

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.

Reply with quote

Advertisement

You can post new topics in this forum