Sync local trying to go the wrong direction
The script connects fine and will do other operations fine (ls, lls, get).
However when I use the synchronize local command I get odd behavior.
Here's what I have scripted:
option batch on
option confirm off
option transfer
lcd c:\Windows\Batch\LibDrupal-From-libwebmirror\
cd /var/www/libdrupal
synchronize local
Here's what I get back in the log file:
> 2011-05-18 15:17:32.568 Script: option batch on
< 2011-05-18 15:17:32.568 Script: batch on
> 2011-05-18 15:17:32.583 Script: option confirm off
< 2011-05-18 15:17:32.583 Script: confirm off
> 2011-05-18 15:17:32.583 Script: option transfer
< 2011-05-18 15:17:32.583 Script: transfer automatic
> 2011-05-18 15:17:32.583 Script: lcd c:\Windows\Batch\LibDrupal-From-libwebmirror\
< 2011-05-18 15:17:32.583 Script: c:\Windows\Batch\LibDrupal-From-libwebmirror
> 2011-05-18 15:17:32.583 Script: cd /var/www/libdrupal
. 2011-05-18 15:17:32.583 Cached directory change via "/var/www/libdrupal" to "/var/www/libdrupal".
. 2011-05-18 15:17:32.583 Getting current directory name.
< 2011-05-18 15:17:32.583 Script: /var/www/libdrupal
> 2011-05-18 15:17:32.583 Script: synchronize local
< 2011-05-18 15:17:32.583 Script: Comparing...
. 2011-05-18 15:17:32.583 Collecting synchronization list for local directory 'c:\Windows\Batch\LibDrupal-From-libwebmirror' and remote directory '/var/www/libdrupal', mode = 1, params = 6
. 2011-05-18 15:17:32.583 Listing directory "/var/www/libdrupal".
> 2011-05-18 15:17:32.583 Type: SSH_FXP_OPENDIR, Size: 27, Number: 523
< 2011-05-18 15:17:32.583 Type: SSH_FXP_HANDLE, Size: 13, Number: 523
> 2011-05-18 15:17:32.583 Type: SSH_FXP_READDIR, Size: 13, Number: 780
< 2011-05-18 15:17:32.583 Type: SSH_FXP_NAME, Size: 3125, Number: 780
> 2011-05-18 15:17:32.583 Type: SSH_FXP_READDIR, Size: 13, Number: 1036
< 2011-05-18 15:17:32.583 Type: SSH_FXP_STATUS, Size: 28, Number: 1036
< 2011-05-18 15:17:32.583 Status code: 1
> 2011-05-18 15:17:32.583 Type: SSH_FXP_CLOSE, Size: 13, Number: 1284
< 2011-05-18 15:17:32.599 Script: Synchronizing...
. 2011-05-18 15:17:32.599 Synchronizing local directory 'c:\Windows\Batch\LibDrupal-From-libwebmirror\' with remote directory '/var/www/libdrupal/', params = 6
> 2011-05-18 15:17:32.599 Script: close
Everything looks ok up to the last 2 lines or so. It reads the remote directory, tries to synchronize, but then all of a sudden it tries to synchronize from the local directory out to the remote instead. The local directory is empty, so it does nothing and then quits.
This works fine in the gui by the way. ANd it works fine if I do a "get" instead of a "synchronize local"
Thanks in advance for any help you can offer.
Bobb Menk