From: mefergus@sphinx.Stanford.EDU (Mark Ferguson)
Newsgroups: su.computers.linux
Subject: Re: CS107 & Linux
Date: 2 Apr 2000 11:07:18 -0700
Organization: Stanford University, CA 94305, USA
Distribution: su
To: sulug-discuss@lists.Stanford.EDU

Brian Palmer  <bpalmer@stanford.edu> writes:
>Daniel Wright <dmwright@stanford.edu> writes:
>
>> Ok, there are two options for moving your files between your linux
>> machine and your leland account (where they need to be when you submit
>> them). You can install afs (download and install the rpms on
>> linux.stanford.edu) of use ftp (ncftp :) to copy the whole directory
>> between them (ftp to transfer.stanford.edu). 
>
>Far better is to enable kerberos and use a kerberized transfer
>protocol (e.g., rcp), or use scp to transfer the files. FTP has the
>traditional problem of sending passwords in the clear.

I prefer rsync tunneled through ssh -- great for
moving whole directory structures around, and rsync
is a very flexible tool for the job.

I use a makefile like this:

# Begin Makefile
put: clean
        rsync -avz -e ssh . mefergus@saga.stanford.edu:"~/Thesis/Tex/"

get:
        rsync -avz -e ssh mefergus@saga.stanford.edu:"~/Thesis/Tex/" .

sync: put get
# End Makefile

....this helps me keep my TeX files synced between
my home box and my leland filespace.  Check the man
page for rsync for more examples (the exclude-from
option is quite handy for syncing programming
projects) -- just be sure to use "-e ssh" to get SSH
tunnelling.


-- 
Mark Ferguson <Mark.Ferguson@Stanford.EDU> 
