Help to move folders, subfolders and files from unix to windows

Hi Unix Gurus,

I am able to copy only files that exist in the parent folder. My parent folder has sub folders and within sub folders there are lots files.

I need to copy folder, sub folders and files from Unix to the remote windows SFTP location.

The directory structure is something like this:

Plan A                  
      Process_1            
                          File1.xls
                          File2.xls
                          File3.xls
                  
      Process_2            
                          File1.xls
                          File2.xls
                          File3.xls

There will be folders like Plan A, Plan B etc and each will have subfolder structure like above.

I wanted to copy and replace the entire Plan folders from Unix to SFTP folder on a daily basis. I dont want to check whether the files are new. Everything is handled in Unix.

Note: The password less setup to transfer files between Unix and windows is already in place.

sftp user@servername<<EOF
put /opt/data/* /
EOF

The above script just copies files inside the folder "data". But I need to copy the folders Plan A, Plan B etc which is inside "data" folder.

I get the following error:

skipping non-regular file /opt/data/PlanA
skipping non-regular file /opt/data/PlanB

Please help me.
Thanks

try mput