[Techtalk] Day 3, no Windows

Malcolm Tredinnick malcolm at commsecure.com.au
Sat Aug 17 14:14:05 EST 2002


On Fri, Aug 16, 2002 at 10:12:25AM +0100, hobbit at aloss.ukuu.org.uk wrote:
> On Fri, Aug 16, 2002 at 09:53:30AM +1000 or thereabouts, Carlo Hamalainen wrote:
> > I also recommend the rsync program that somebody mentioned on this list a
> > few days ago. I've just discovered it myself (had always thought it was a
> > program for maintaining big FTP sites). I didn't know it was a one-liner!
> 
> Yeah, I always thought it was for large jobs too. 
>  
> > With rsync, I can keep a directory perfectly up-to-date. To upload files
> > from home or office to server, I use:
> > 
> > rsync -avz -e ssh work server:
> > 
> > And to pull the latest directory down, I do
> > 
> > rsync -avz -e ssh server:work .
> 
> Heh. Barring the order of the options, I have exactly the same.
> Which I put into a one-line file I made executable in the directory
> I'm always running it from, so that I do "./rs[tab][return]" and
> kick it off in six characters :) 
> 
> (rsync --help)
>  -e, --rsh=COMMAND           specify rsh replacement
>  -v, --verbose               increase verbosity
>  -z, --compress              compress file data
>  -a, --archive               archive mode

Two other useful options  I use a lot with rsync: firstly,  '-P', which is the
same as '--partial --progress'. This gives you some idea of where you
are up to in the copying progress and if the file is already partially
copied, restart from where you left off, rather than starting again.
Mostly useful when copying largish files, since otherwise the lack of
visual feedback makes me nervous. Secondly, '-C', which will not copy
files that CVS would ignore by default (e.g. CVS/ directories are not
copied across). Useful when copying something from one CVS directory to
a similar on on a remote machine and for other ocassional uses.

Cheers,
Malcolm



More information about the Techtalk mailing list