ipfreak at yahoo.com
Thu Mar 26 21:02:45 GMT 2009
--- On Thu, 3/26/09, Harry Mangalam <harry.mangalam at uci.edu> wrote:
> From: Harry Mangalam <harry.mangalam at uci.edu>
> Subject: Re: rsync questions
> To: rsync at lists.samba.org
> Cc: ipfreak at yahoo.com
> Date: Thursday, March 26, 2009, 1:05 PM
> You use '--exclude-from=/the/exclude/file'
> and that file should look like he extract below
> The following backs up all the users in my /home with the
> listed in it. The ones that have 'hjm' reference
> my home dir. the
> ones that have other users (hm/*) will completely skip
> those dirs.
> the ones that have no user spec (*.o) will omit all obj
> files from
> any subdir.
> # use this command
> # sudo rsync --exclude-from=/home/hjm/rsync.exclude -av
> /home \
> # hjm at moon:/b/hjm/bongobak
> On Thursday 26 March 2009, gahn wrote:
> > Hi all:
> > I got basic rsync working (not server mode). Basically
> it went to
> > another server via ssh, backed up subdireactories and
> stored on the
> > local server. But I am trying to use the feature of
> "exclude" and
> > could not get it working rigjt.
> > I am trying to back up /export/home/* (all of users)
> on another
> > machine but exclude a certain types of files. here is
> one of my
> > tested exclude files:
> > /home/unwanted_dir
> > this one works. rsync successfully backed up other
> > except the "unwanted_dir"
> > But how could I get rsync search the patterns of files
> in those
> > user directories and exclude them?
> > Thanks
> Harry Mangalam - Research Computing, NACS, Rm 225, MSTB, UC
> [ZOT 2225] / 92697 949 824-0084(o), 949 285-4487(c)
> Good judgment comes from experience;
> Experience comes from bad judgment. [F. Brooks.]
More information about the rsync