Recursive SFTP Sync

Discuss RoboTask here
Post Reply
danb
Posts: 8
Joined: Wed Apr 28, 2010 11:09 am
Location: United States

Recursive SFTP Sync

Post by danb »

The 'include subfolders' in 'SFTP syncronize' appears to not work. Sub-folders seem to be ignored.

Has it worked for anyone?
Dan Bullock
Oleg
Site Admin
Posts: 3202
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Recursive SFTP Sync

Post by Oleg »

I've just tested on our SSH server. The action "SFTP Synchronization" works properly
Could you please send your example of task?
Oleg Yershov
danb
Posts: 8
Joined: Wed Apr 28, 2010 11:09 am
Location: United States

Re: Recursive SFTP Sync

Post by danb »

Sent. Thanks.
Dan Bullock
Oleg
Site Admin
Posts: 3202
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Recursive SFTP Sync

Post 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.
Oleg Yershov
danb
Posts: 8
Joined: Wed Apr 28, 2010 11:09 am
Location: United States

Re: Recursive SFTP Sync

Post 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.
Dan Bullock
danb
Posts: 8
Joined: Wed Apr 28, 2010 11:09 am
Location: United States

Re: Recursive SFTP Sync

Post by danb »

Directory:
And the directory webalizer contains one file called test.htm
Image

Log:
Image

SFTP Sync config:
Image
Dan Bullock
Oleg
Site Admin
Posts: 3202
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Recursive SFTP Sync

Post 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.
Oleg Yershov
danb
Posts: 8
Joined: Wed Apr 28, 2010 11:09 am
Location: United States

Re: Recursive SFTP Sync

Post 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?
Dan Bullock
Oleg
Site Admin
Posts: 3202
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Recursive SFTP Sync

Post 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.
Oleg Yershov
Post Reply