Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

phenixdragon

macrumors regular
Original poster
Jun 24, 2009
108
0
I am running Windows Home Server at home in which I mostly just use to store my movies, back up of pictures and music. However, I wanted to see about setting something up that is like rsync that will a copy of specific folders from OS X to WHS. Does anyone know of a program that can do that? I know there is deltacopy which is like rsync but for Windows, but I don't think that will work on OS X.
 
you could try mounting the share under os x, then rsync to the directory in /Volumes.
 
You should have rsync on your Mac already. Open Terminal (in Utilities) and enter
Code:
man rsync
to see the manual page.

[Edit] Never mind. I misunderstood the OP.
 
Was doing some reading and I think I just need to install something like deltacopy and setup rsync on my Mac and it should work. I never used rsync before so this is all new to me. I'm going to play around with it and see what happens.
 
Doing some reading and it should work but I am running into an error.


BrianMobile:~ Brian$ rsync -av /Users/Brian/Music/Songs/ 10.0.0.3:d/shares/Music/
ssh: connect to host 10.0.0.3 port 22: Operation timed out
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at /SourceCache/rsync/rsync-40/rsync/io.c(452) [sender=2.6.9]
BrianMobile:~ Brian$

I don't understand why it is trying to use port 22 and why it is trying to use SSH. How can I tell it not to use port 22 and not to use SSH? Default port for rsync is 873 and I don't have SSH setup.
 
Doing some reading and it should work but I am running into an error.


BrianMobile:~ Brian$ rsync -av /Users/Brian/Music/Songs/ 10.0.0.3:d/shares/Music/
ssh: connect to host 10.0.0.3 port 22: Operation timed out
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at /SourceCache/rsync/rsync-40/rsync/io.c(452) [sender=2.6.9]
BrianMobile:~ Brian$

I don't understand why it is trying to use port 22 and why it is trying to use SSH. How can I tell it not to use port 22 and not to use SSH? Default port for rsync is 873 and I don't have SSH setup.

From the man page:

GENERAL
Rsync copies files either to or from a remote host, or locally on the
current host (it does not support copying files between two remote
hosts).

There are two different ways for rsync to contact a remote system:
using a remote-shell program as the transport (such as ssh or rsh) or
contacting an rsync daemon directly via TCP. The remote-shell trans-
port is used whenever the source or destination path contains a single
colon : separator after a host specification. Contacting an rsync
daemon directly happens when the source or destination path contains a
double colon :: separator after a host specification, OR when an
rsync:// URL is specified (see also the "USING RSYNC-DAEMON FEATURES
VIA A REMOTE-SHELL CONNECTION" section for an exception to this latter
rule).
 
Yes, but what does it all mean?

However, I think I have it figured out. Testing it right now.

Looks like I got it working. It was the double colon I was missing.

Actually I am wondering though, how does rsync work once you have the command setup? Do you have to run the command when you want it to sync? Or do you setup something that automatically runs the command every so often?
 
Looks like I got it working. It was the double colon I was missing.

Yup. The man command is very valuable.

Actually I am wondering though, how does rsync work once you have the command setup? Do you have to run the command when you want it to sync? Or do you setup something that automatically runs the command every so often?

Either is possible. Search for articles about using the launchd command, though other options probably exist too.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.