Difference between revisions of "Rsyncd"

From CHG-Wiki
Jump to navigationJump to search
(Created page for users who want to know how to push data using our rsyncd server.)
 
m
Line 17: Line 17:
 
==Command Line==
 
==Command Line==
  
  [user@server ~]$ rsync -avh foo.txt rsyncd.chg.ucsb.edu::[rsync destination point]
+
  [user@server ~]$ rsync -avh foo.txt rsyncd.chg.ucsb.edu::[rsync-destination-point]
  
 
Where "foo.txt" is the file or path to the file(s) to be rsync'd and rsyncd.chg.ucsb.edu is the rsyncd server (located on [[range]]), and the ::[rsync destination point] is the predetermined location where you want to push your data. For example:
 
Where "foo.txt" is the file or path to the file(s) to be rsync'd and rsyncd.chg.ucsb.edu is the rsyncd server (located on [[range]]), and the ::[rsync destination point] is the predetermined location where you want to push your data. For example:

Revision as of 15:19, 4 May 2016

To help facilitate pushing incoming data to CHG, an rsyncd server has been set up on range. Currently, this does not so much replace the ftp-in function as supplement it, though eventually it will likely replace ftp-in.

Gettings Started

To push data to CHG servers, you will need a Unix-based command line interface equipped with the rsync command.

Windows

There are several options for Windows users who want a Unix-based command line interface. One of the most commonly used programs is Cygwin. You can find more about installing Cygwin here. Make sure to select rsync as one of the packages when you install. You may want to check for the "mirror" (or website you will download the Cygwin files from) closest to you here. Keep in mind that installing Cygwin, especially if you choose to do a full install, could take quite a while.

Another option is putty.

Mac/OS X

You should be able to use the built-in Terminal program to use rsync.

Command Line

[user@server ~]$ rsync -avh foo.txt rsyncd.chg.ucsb.edu::[rsync-destination-point]

Where "foo.txt" is the file or path to the file(s) to be rsync'd and rsyncd.chg.ucsb.edu is the rsyncd server (located on range), and the ::[rsync destination point] is the predetermined location where you want to push your data. For example:

[libby@rain ~]$ rsync -avh logo.gif rsyncd.chg.ucsb.edu::SWALIM
sending incremental file list
logo.gif
sent 38.43K bytes  received 27 bytes  76.92K bytes/sec
total size is 38.34K  speedup is 1.00

Pushes the file logo.gif to the rsyncd location SWALIM.

rsyncd Locations

rsyncd destination points must be requested and set up in advance. Please contact chgadmin@geog.ucsb.edu to request a destination point.