Include / Exclude question
dwd at bell-labs.com
Wed Sep 26 00:37:41 EST 2001
On Tue, Sep 25, 2001 at 12:18:31PM +0300, Coroiu Cosmin Marius wrote:
> Hello all !
> I want to save some of the directories and files from my home dir.For
> that I create a new directory where I moved the file for sync and I made
> some symlinks to the dirs which I want to include in sync.The hidden
> directoris (like .netscape) are not included in sync. How can I say to
> rsync to include these directories too and how can I exclude a list of
> directories (I have .mozilla too and I don't want do synchronize the
> cache dir from .netscape and .mozilla ) ?
Have you checked the man page for --include and --exclude?
If you want rsync to copy files that are on the other end of a symlink,
you'll need to use -L.
- Dave Dykstra
More information about the rsync