On Thu, Jun 22, 2000 at 11:08:28PM -0400, Steve Toback wrote:
> > I thought it'd be easy but I can't get it to work...
> > I have machines a and b
> > 
> > a has a disk image in /image
> > I'd like to rsync some select files from /image to server b:/
> > 
> > rsync -av -SH --include-from list --dry-run /image/. b:/
> > 
> > list looks like this:
> > 
> > - *
> > + /etc/foo
> > + /etc/foo2
> > + /bin/bash
> > ..
> > 
> > I've tried moving '- *' at the end, but it doesn't help, rsync just won't
> > rsync anything...
>
> Marc,
> you are removing the dry run flag right?
 
Yeah :-)
 
I'm using --dry-run, but rsync shows no files ready to be copied (if I
exclude '*') or all the files are copied if I don't exclude '*'

I've been using rsync for quite a while so I'm used to it, but I've always
copied a whole tree minus a few files, never the opposite (i.e. just a list
of files).
I am aware that I can put the  files to copy on the command line, but that's
not very practical, I can't put 1000 files to copy on the command line...
(I'd rather avoid something like
rsync -av -SH `cat file | sed "s/^/--include=/"` b:/ )

Marc
-- 
Microsoft is to software what McDonalds is to gourmet cooking
 
Home page: http://marc.merlins.org/ (friendly to non IE browsers)
Finger [EMAIL PROTECTED] for PGP key and other contact information

Reply via email to