Rsync Exclude Question

Discussion in 'HOWTO-Related Questions' started by vibranze, Jun 7, 2007.

  1. vibranze

    vibranze New Member

    Hi Falko,

    Thanks for the great article of Mirroring your website with Rsync. I have a question on the exclude parameter, you mentioned "exclude="**/abc" mean that it will exclude /var/www/abc.

    If I want to rsync /data/* directory and want to exclude /data/user1/Temp, so what should I put in exclude, should I put "exclude=**/Temp" or "excluded=*/Temp"? Is the * go by level of folders?

    And let's say if the target directory is already have "Temp" directory from the first rsync, will it be deleted if I exclude the Temp on the next rsync?

    Kindly advise.

    Last edited: Jun 7, 2007
  2. falko

    falko Super Moderator ISPConfig Developer

    I'd use
    Not sure about this, you'd have to try it.
  3. sjau

    sjau Local Meanie Moderator

    the Temp folder will be deleted if you also pass the --delete parameter...

    and if you want to exclude more than one thing you could use
    and add stuff like this:


Share This Page