Page 1 of 1
Recursive SFTP Sync
Posted: Sat Dec 21, 2013 2:14 pm
by danb
The 'include subfolders' in 'SFTP syncronize' appears to not work. Sub-folders seem to be ignored.
Has it worked for anyone?
Re: Recursive SFTP Sync
Posted: Sat Dec 21, 2013 4:29 pm
by Oleg
I've just tested on our SSH server. The action "SFTP Synchronization" works properly
Could you please send your example of task?
Re: Recursive SFTP Sync
Posted: Sat Dec 21, 2013 8:03 pm
by danb
Sent. Thanks.
Re: Recursive SFTP Sync
Posted: Sun Dec 22, 2013 8:58 am
by Oleg
Send the log file of this task, please.
I tested this again. I used path of remote folder from root or from current folder. It works in any case.
If log file doesn't contain any errors or warnings then this means that the source folder doesn't exist or doesn't contain files.
Also one note:
"Sync folders" action doesn't copy empty folders. It copies files only.
maybe it's necessary to add such feature.
Re: Recursive SFTP Sync
Posted: Sun Dec 22, 2013 3:50 pm
by danb
I'll have to run a new test to get the logs again, but the logs only said 0 files copied.
The test I ran had two sub-folders which did contain files. I thought perhaps it exited since there were no files in the top-most directory, so I added a test file. But that still failed.
I'll run it again and post the log.
Thanks.
Re: Recursive SFTP Sync
Posted: Sun Dec 22, 2013 3:57 pm
by danb
Re: Recursive SFTP Sync
Posted: Sun Dec 22, 2013 5:11 pm
by Oleg
Check the access permissions for folder "/var/www/webalizer" for your user.
It seems RoboTask can't get the list of files of this folder. In this case "sFTP sync" will ignore this folder because it sees an empty folder.
Pay attention that the root user can have insufficient permissions to read folder too. But user root can change the permission in any case for any object.
Re: Recursive SFTP Sync
Posted: Sun Dec 22, 2013 5:38 pm
by danb
Oleg wrote:Check the access permissions for folder "/var/www/webalizer" for your user.
It seems RoboTask can't get the list of files of this folder. In this case "sFTP sync" will ignore this folder because it sees an empty folder.
Pay attention that the root user can have insufficient permissions to read folder too. But user root can change the permission in any case for any object.
I don't think permissions is an issue. Using WinSCP I can sync files without a problem using 'root'.
If there any way to have robotask provide more of a debug log to show what it is seeing?
Re: Recursive SFTP Sync
Posted: Sun Dec 22, 2013 8:11 pm
by Oleg
I sent instructions by private message.
Send debug logs to me, please.
This log contains all requests and responses during work of SFTP actions.