[Gllug] Rsync - was Re: cp command

John Hearns john.hearns at streamline-computing.com
Wed Nov 29 13:19:21 UTC 2006


Andrew Black wrote:
> 
> 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.
> 
Does this not work?

rsync -avx /dir/somedir/    /backuplocation/somedir
rsync -avx /dir/some/other/deepdir/ /backuplocation/some/other/deepdir

I assume you want to descend into both somedir and deepdir
The 'x' flag stops you crossing filesystem boundaries
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list