# Copy files from Linux server to Windows server

**URL:** <https://community.unix.com/t/copy-files-from-linux-server-to-windows-server/333000>\
**Category:** Shell Programming and Scripting\
**Created:** [August 13, 2013, 1:54am UTC](https://community.unix.com/t/copy-files-from-linux-server-to-windows-server/333000 "2013-08-13T01:54:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![arunmanas](https://community.unix.com/letter_avatar/arunmanas/32/6_22734026db12803ebb3e059622ac3534.png) [@arunmanas](https://community.unix.com/u/arunmanas)\
**Post date:** [August 13, 2013, 1:54am UTC](https://community.unix.com/t/copy-files-from-linux-server-to-windows-server/333000/1 "2013-08-13T01:54:40Z")

</div>

Hi All,

I am generating report in a Linux server and once the report is generated the report(.txt file) needs to be automatically saved in a Windows servers.

So i am looking for a script to transfer the file automatically from Linux server to Windows server?

Please advise.

Thanks for the help in Advance,  
Arun MNS:b:

---

<div class="post-metadata">

**Author:** ![Jotne](https://community.unix.com/user_avatar/community.unix.com/jotne/32/2148_2.png) [@Jotne](https://community.unix.com/u/Jotne)\
**Post date:** [August 13, 2013, 2:44am UTC](https://community.unix.com/t/copy-files-from-linux-server-to-windows-server/333000/2 "2013-08-13T02:44:55Z")

</div>

You can setup an `FTP` server on the Windows server and transfer it that way  
Or you can map a windows share on the Linux server and just copy it to correct folder.

---

<div class="post-metadata">

**Author:** ![MR.bean](https://community.unix.com/letter_avatar/mr.bean/32/6_22734026db12803ebb3e059622ac3534.png) [@MR.bean](https://community.unix.com/u/MR.bean)\
**Post date:** [August 13, 2013, 3:02am UTC](https://community.unix.com/t/copy-files-from-linux-server-to-windows-server/333000/3 "2013-08-13T03:02:24Z")

</div>

1.) If you have a web server and perl on your windows server, you could run a cgi script to accept http-post request from the linux server

2.) If you have cygwin on the windows server, you could try using rsync / netcat (never tried that myself).

3.) ftp is the easiest

---

<div class="post-metadata">

**Author:** ![Peasant](https://community.unix.com/user_avatar/community.unix.com/peasant/32/2251_2.png) [@Peasant](https://community.unix.com/u/Peasant)\
**Post date:** [August 13, 2013, 3:25am UTC](https://community.unix.com/t/copy-files-from-linux-server-to-windows-server/333000/4 "2013-08-13T03:25:52Z")

</div>

On the newer versions of Windows you can also mount NFS on it, exported on your linux server.
