LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 10-06-2005, 05:29 PM   #1
Linux31
Member
 
Registered: Aug 2004
Posts: 296

Rep: Reputation: 30
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.
 
Old 10-07-2005, 05:32 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
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.
 
Old 10-07-2005, 09:17 AM   #3
Linux31
Member
 
Registered: Aug 2004
Posts: 296

Original Poster
Rep: Reputation: 30
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.
 
Old 10-09-2005, 02:55 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
It will automatically only copy the new or modified files.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem connecting to remote fax machine bayard Linux - Hardware 0 10-18-2005 02:41 PM
ssh not connecting to a remote machine. Eux Debian 5 09-22-2004 04:44 AM
Linux Server backuping Windows machine over Rsync? browny_amiga Linux - General 7 06-23-2004 10:13 AM
connecting to another windows machine caesarkim Linux - Networking 7 11-26-2003 12:45 PM
connecting to a Windows machine Mladek Linux - Software 2 07-12-2003 05:08 PM


All times are GMT -5. The time now is 01:57 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration