[Gllug] Rsync - was Re: cp command

Andrew Black andrew-li at black1.org.uk
Wed Nov 29 10:16:47 UTC 2006


Stuart Sears wrote:

> rsync -avP dir/ destination-dir
> Will copy the *contents* of dir/ to destination-dir.

Thanks for that. I have used rsync to good effect.
One thing that has alluded me is the  --include=PATTERN  (and 
--include-from=FILE) options.

What iam trying to do is copy a subset of dirs to a parallet tree elsewhere
/dir/somedir/...            -> /backpuplocation/somedir/...
/dir/some/other/deepdir/... -> /backpuplocation/some/other/deepdir/...

I have tried so many combinations of --include and --exclude that I am 
confused.  Anyone go a sampel of this.


-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list