Copying the files to Windows server from UNIX server

Hi Team,

I had a requirement to write a shell script which automatically transfer the files from unix server to windows server. I can able to unix to unix using Scp command. I am not sure how to do unix to windows.

I am very new on this concept.

Could you please help me or guide in installing or setting up the setup to transfer the files from unix to windows.

Thanks

cygwin for windows will allow you to scp to windows.
Other options could be to look into ftp daemons for windows or use an smb (aka Samba aka CIFS) client on unix to push the files to a windows share.

cygwin sshd server is very good:

Cygwin SSHD HowTo

However, you might find some Windows Server Admin types are very anti cygwin. which is a shame as if you get sshd setup on windows your scp script for unix to unix should work unix to windows with little or no changes.

You could also use Microsoft FTP server:

How To Set Up an FTP Server in Windows Server 2003

With a .netrc file scripting ftp transfers is fairly doable but you will need to be careful on how the script is implemented to avoid deleting files not yet sent or sending a partially created file.

This thread may be of use:

Thanks for your reply. I cannot use Ftp as it was not secured. I need only secured transfer. I installed Cygwin on my windows machine and I tried to transfer file from windows or vice versa. it didn't worked for me.

 Tharun agarval@ldnsvr ~
 $ scp test_2unix jkaran@10.131.23.71:/home/jkaran
 -bash: scp: command not found
 

Did you install these packages when installing cygwin:

Net --> openssh
Admin --> cygrunsrv (required only for unix -> windows)

For unix -> windows you will also need to follow the Cygwin SSHD HowTo document