Re: Include Exclude .. a canonical way

2006-02-25 Thread Wayne Davison
On Sat, Feb 25, 2006 at 08:54:46PM -0500, Matt McCutchen wrote: > http://www.samba.org/cvsweb/rsync/rsync.yo If you'd prefer to see the man page in HTML format instead of raw yodl, the version from the last "nightly" tar file is always found here: http://rsync.samba.org/ftp/rsync/nightl

Re: Include Exclude .. a canonical way

2006-02-25 Thread Matt McCutchen
On Sat, 2006-02-25 at 19:20 -0600, Harry Putnam wrote: > However It can do more than your saying there I think when symlinks > are involved it can have unexpected results. > > See this thread on gmane that nobody responded too. You'll notice I > had an even murkier understanding then but still wh

Re: Include Exclude .. a canonical way

2006-02-25 Thread Harry Putnam
Matt McCutchen <[EMAIL PROTECTED]> writes: > All --relative does is cause rsync to duplicate the source path (minus > any leading /) inside the destination. For example, the command > cd / && rsync usr/ home/matt/ /backup/ > mixes my personal files with bin, lib, share, src, and so forth >

Re: Include Exclude .. a canonical way

2006-02-25 Thread Matt McCutchen
On Sat, 2006-02-25 at 10:27 -0600, Harry Putnam wrote: > Matt McCutchen <[EMAIL PROTECTED]> writes: > > rsync --exclude=/.kde* --relative ~/./ \ > > ~/./.kde3.5/share/apps/konqueror/bookmarks.xml dest/ > > Nice, but what else might the --relative inclusion do? I remember some > tim

Re: Include Exclude .. a canonical way

2006-02-25 Thread Harry Putnam
Matt McCutchen <[EMAIL PROTECTED]> writes: > On Wed, 2006-02-22 at 11:24 -0800, Wayne Davison wrote: >> rsync -avO --prune-empty-dirs --include=bookmarks.xml >>--filter='-! */' ~/.kde* some:dest/ > > I just discovered a way to transfer certain files and folders a few > levels belo

Re: Include Exclude .. a canonical way

2006-02-23 Thread Matt McCutchen
On Wed, 2006-02-22 at 11:24 -0800, Wayne Davison wrote: > rsync -avO --prune-empty-dirs --include=bookmarks.xml > --filter='-! */' ~/.kde* some:dest/ I just discovered a way to transfer certain files and folders a few levels below a generic exclude rule without having to include e

Re: Include Exclude .. a canonical way

2006-02-22 Thread Harry Putnam
Wayne Davison <[EMAIL PROTECTED]> writes: > On Wed, Feb 22, 2006 at 05:14:29AM -0600, Harry Putnam wrote: >> Still it seems there would be a more succinct way... > > There is if you use rsync 2.6.7 (currently in release testing): > > rsync -avO --prune-empty-dirs --include=bookmarks.xml >

Re: Include Exclude .. a canonical way

2006-02-22 Thread Wayne Davison
On Wed, Feb 22, 2006 at 05:14:29AM -0600, Harry Putnam wrote: > Still it seems there would be a more succinct way... There is if you use rsync 2.6.7 (currently in release testing): rsync -avO --prune-empty-dirs --include=bookmarks.xml --filter='-! */' ~/.kde* some:dest/ This t

Re: Include Exclude .. a canonical way

2006-02-22 Thread Harry Putnam
Harry Putnam <[EMAIL PROTECTED]> writes: > Here are some of what hasn't worked in an EXCLUDE file. > > + /.kde3.5/share/apps/konqueror/bookmarks.xml > /.kde3.5/ > > + .kde3.5/share/apps/konqueror/bookmarks.xml > /.kde3.5** > > + .kde3.5/share/apps/konqueror/bookmarks.xml > .kde3.5/ > > There are a

Include Exclude .. a canonical way

2006-02-22 Thread Harry Putnam
I'm wrestling with include/exclude rules and not finding a way to do this: Simplified command: rsync -avv --exclcude-from=rsync_exclude \ ~/ /dest/ Backup ~/ including ~/.kde3.5/share/apps/konqueror/bookmarks.xml but excluding everything else under ~/.kde3.5 Here are some of