On Thu, Aug 08, 2002 at 01:37:16PM -0500, jeffr at odeon.net (jeffr at odeon.net) wrote:
> 
> I want to use rsync to backup a machine (we'll call it escher) to my
> fileserver.  I'd like to use ssh as the transport.  I really don't need to
> in this situation, but I'd like to just to learn how.
> 
> I've got ssh behaving like I would like (i.e., can connect from the
> fileserver to escher using a DSA key file without supplying a password).
> 
> I need to initiate the connection from the fileserver as there is a
> firewall between the two boxes that prevents escher from initiating a
> connection to the fileserver.  I could change this with some ipf rule
> changes, but I'd rather not.
> 
> What I'm getting hung up on is the significance of the slashes for rsync,
> and the --exclude syntax.
> 
> My goal is to backup the entire escher machine to the fileserver, with the
> exception of any .journal files, the /tmp directory, and the /proc
> directory.

<snip> 

> Also, I'm not clear on the --exclude syntax.  The man pages don't provide
> an example for excluding multiple files, or directories at all for that
> matter.  If the exclude statement that I've got above won't work, could I
> use something like:
> 
> 	--exclude '.journal' --exclude '/tmp' --exclude '/proc'
> 

You can also use a file that lists everything thta you want to exclude:

rsync --exclude-from='exclude_file'

I found that easier than trying to put it all on the command line.

-- 
Amy Tanner
amy at real-time.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 524 bytes
Desc: not available
Url : http://shadowknight.real-time.com/pipermail/tclug-list/attachments/20020808/339f0a55/attachment.pgp