Rsync prune entire subtree, not just pattern

From: Greg Orange (no_at_address.given)
Date: 02/07/05

  • Next message: Chris F.A. Johnson: "Re: shell scripts and cron"
    Date: Mon, 07 Feb 2005 12:53:55 +0800
    
    

    Hi,

    I'm using rsync with the --exclude-from=file.txt option, and I don't
    know how to make it's behaviour model what I want. For example, I wish
    to not sync the /share directory of the source machine, so my file.txt
    simply looks like this:

    share

    Now this works, but it also excludes any other instances of the share
    directory, or files named share, in the rest of the filesystem.
    Extensive googling hasn't helped, and I can't find anywhere that the
    doco refers to this issue. I've tried things such as ^share or ^/share,
    but I'm not sure if I should be using regex matching or something else.

    Am I asking in the right forum?

    Cheers,
    Greg.


  • Next message: Chris F.A. Johnson: "Re: shell scripts and cron"