LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   rsync Syntax Question for Connecting to Remote Windows Machine (https://www.linuxquestions.org/questions/linux-networking-3/rsync-syntax-question-for-connecting-to-remote-windows-machine-370440/)

Linux31 10-06-2005 05:29 PM

rsync Syntax Question for Connecting to Remote Windows Machine
 
Sorry for re-posting this but I just realized that I mis-typed "rsync" in the original question so it probably doesn't make any sense.

In the Negus book for FC2 he provides the command line for using rsync to transfer files from a remote computer to the home computer. Unfortunately, his example is based on two Linux machines.

Can someone tell me the proper command line syntax for identifying the Windows machine? I understand how to put the machine's name in the line but I can't figure out how to refer to the drive letter to complete the path to the sub-directory of interest.

I'm running FC4 and have Samba working.

Thanks for any help you can provide.

david_ross 10-07-2005 05:32 AM

If you are looking to use rsync over samba and not over ssh (which is faster and more secure) then you will need to mount the windows share on the linux box and then run rsync as if it was a local directory:
mount -t smbfs //ip.of.win.box/share /mnt/share
rsync -va /path/to/src /path/to/dst

You may want to include a modify window to deal with some timestamp problems that can occur using windows boxes.

Linux31 10-07-2005 09:17 AM

Thanks for the help, I'll try it.

I'll also try setting up SSH.

I checked Negus and he only has a short discussion that seems more "about" SSH than how to use it.

Can you tell me what the command line would be to copy only the new files in a directory on a remote Windows machine to the Linux box?

Thanks again for your help.

david_ross 10-09-2005 02:55 PM

It will automatically only copy the new or modified files.


All times are GMT -5. The time now is 05:18 AM.