LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-25-2005, 01:33 PM   #1
heprox
LQ Newbie
 
Registered: Oct 2005
Posts: 5

Rep: Reputation: 0
Question Rsync Setup


I have several Windows clients that I want to replicate a single directory on to Linux server at a remote location. I was planning on using rsync with cygwin to do this. The problem is that I know that rsync can push data that exist on the client machines (windows) to the server with no problem, but can it pull data from the server as well? I don't want to have to have the server run a cron job to push the data to the clients, I want the clients to run rsync as part of a scheduled task and the just synchronize a particular directory with the Linux server. If a file exists on the Linux server that the client does not have, it will retrieve it too the clients. It this possible with rsync or should I be looking at something like unison.
 
Old 10-25-2005, 04:08 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Yes, rsync can do this. You can use rsyncd (the rsync daemon) on the server, or the --rsh="ssh" option to connect to the server via ssh.
 
Old 10-25-2005, 04:35 PM   #3
heprox
LQ Newbie
 
Registered: Oct 2005
Posts: 5

Original Poster
Rep: Reputation: 0
I would have to run two seperate commands though correct? One to set up the push from the client to the linux server and the other to have the linux server push to the client?
 
Old 10-25-2005, 05:00 PM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Two commands, yes, but the rsyncs can be initiated by the clients (rsync is bidirectional). For example:

# Copy from client to server over ssh
rsync -av --progress --partial --rsh="ssh" somefile someuser@someserver:somedir/

# Copy from server to client, by the client
rsync -av --progress --partial --rsh="ssh" someuser@someserver:somedir/somefile /somedir/

The order of the parameters determines the direction (local->remote or remote->local).
 
  


Reply



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
Rsync anickless Linux - Networking 2 11-21-2005 12:32 PM
rsync help! slack66 Linux - Newbie 1 10-27-2005 07:40 AM
Windows Rsync Upload to Linux Rsync - permissions inspleak Linux - Software 0 10-12-2004 02:49 PM
Rsync help tricky1234 Solaris / OpenSolaris 3 09-07-2004 10:08 AM
rsync DropHit Linux - Software 2 02-18-2004 08:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:19 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration