views:

2243

answers:

5

I need to automatically copy files from a linux machine to a windows one every day.

I'm looking for something simple and secure like scp, rsync, sftp. Unfortunately, I'm at a loss of how to set this up on the Windows machine.

Does anyone know how to do this?

+6  A: 

You can try mounting the Windows drive as a mount point on the Linux machine, using smbfs; you would then be able to use normal Linux scripting and copying tools such as cron and scp/rsync to do the copying.

Avi
A: 

You may try WinSCP and its scripting support. And Windows support some kind of cron-like operation in its management stuff, don't they?

che
cron = "Scheduled Tasks" in Windows
David Kemp
+2  A: 

You can find rsync for windows in cygwin, with that you can setup a rsync server on the windows box and run a cron job on your linux machine rsync'ing all the files to the windows machine. We used to do that and it worked fine.

Ulf Lindback
+1  A: 

"I'm at a loss of how to set this up on the Windows machine." Windows is the client or the server? At a loss means what, specifically? What can't you do?

"linux machine to a windows" can be done two ways.

  1. Linux is client. Windows runs an FTP or SCP or SSH server. Linux has a client and pushes the file to Windows. Look at FileZilla for free windows FTP server. Also, windows often has an FTP service that's turned off. Turn it on.

  2. Windows is client. Windows periodically pulls the file from the linux server. This is easier, since Linux already has all the necessary servers available. You do, howeveevr, need to start them on Linux.

There are scores of sftp, scp clients for Windows. Windows comes with an ftp client. Google for sftp client. You'll find WinSCP, Putty, filezilla, and list free country list of sftp clients.

S.Lott
A: