rsync'ing distribution points

abz_mungul
New Contributor III

Hi

Was wondering if anyone could help with this please?

I'm trying to sync my Distribution Point with my master server using rsync
and crontabs

but get the following error

rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: unexplained error (code 255) at
/SourceCache/rsync/rsync-40/rsync/io.c(452) [receiver=2.6.9]

It looks like something to do with the public keys, I've generated them and
put them on the master server, so not sure what im doing wrong

or if there is a better way of doing this?

Thanks

Abz

-- Network and Server Operational Support

Mobile: 07771 725 785

Los Angeles · Detroit · Toronto · New York · London · Cologne · Stockholm ·
Singapore · Hong Kong · Shanghai · Tokyo · Sydney

Imagination · London
25 Store Street South Crescent, London WC1E 7BL, United Kingdom
Tel +44 20 7323 3300 Fax +44 20 7462 2837
www.imagination.com

6 REPLIES 6

dhowell
Contributor

Here how I do it.

from my DP to my main server I create my id_ras.pub then i push it using this command cat ~/.ssh/id_rsa.pub | ssh -l rsyncusr mainservername 'cat - >> ~/.ssh/authorized_keys' <---I do this both ways because I have the main server initate the rsync also as a backup

my crontab on the DP looks like this 51 14 * rsync -rav --delete -e ssh rsyncusr at mainservername:"/my/casper/Share/" /dp/caspershare/

This is a rsync between a MAC Server and a Redhat Server, should work if both redhat or both MAC

D. Trey Howell ACMT, ACHDS, CCA
trey.howell at austinisd.org
Desktop Engineering
twitter @aisdmacgeek

abz_mungul
New Contributor III

Thanks!!

Much appreciated

A

abz_mungul
New Contributor III

How are you managing syncing large amounts of data from your master server
to the child servers,

For example I recently created an image on our master server and it looks
like this will take for ever to sync to the child server.

I was thinking of using dropbox as the middle man?

Hoe are others managing this?

Abz

dhowell
Contributor

I usually don't have any issues. I use the main for rsync only though. I don't point any machines to it. It's just a old g5 Server. The others are Redhat VM's
D. Trey Howell ACMT, ACHDS, CCA
trey.howell at austinisd.org
Desktop Engineering
twitter @aisdmacgeek

abz_mungul
New Contributor III

Ok, my main is location in the UK and child in Hong Kong and I'm finding
that large packages will take ages to upload to the child server in HK

I'll also be deploying several other child servers to our Sydney,New York
and Detroit Offices

at the moment, the child servers are the ones running the rsyncs (this was
recommended by Jamf)

What would be your recommendation for me to keep the child servers
up-to-date?

Thanks

Abz

dhowell
Contributor

I have a 120 buildings and 7 servers but I am blessed with fiber and in 1 city. Are your dp's linux or Mac? Rsync is pretty fast and reliable. I found it faster then http.

D. Trey Howell

Sent from my iPhone