Excluding a type of files in rsync

 Performing Rsync between two servers while excluding a type of files
Hi Guys, I would like to show you today how to sync files between two servers while excluding a specific format of files.
We have two machines unixmate1 and unixmate2.
A dir with data /unidb with two diff format of files, .data & .txt
While sync I want .txt to be excluded.
Step1: Create a dir on unixmate1; add some files with different extensions.
Step2: Perform normal rsync and verify data is transferring on the whole on unixmate2. If properly done, let’s delete the dir for re-sync
Step3: Resync with additional option –exclude=*.extension to exclude it from transfer. In our case we are going to exclude .txt

Hope you have learnt a new thing and enjoyed. Do come back for more updates God-willing (In sha Allah – in arabic)!!!
  1. Sarat Reddy

    September 1, 2014 at 8:13 pm

    can you post LDAP CONFIGURATION

  2. Musabuddin Syed

    September 2, 2014 at 6:19 am

    Thanks sarath,
    sure I'm working on it, soon you will see the LDAP as well.

  3. Thomos

    May 12, 2016 at 10:03 am

    This comment has been removed by the author.

  4. Anonymous

    May 12, 2016 at 10:04 am

    Can you please post OPENLDAP configuration steps

  5. Musabuddin Syed

    May 16, 2016 at 7:30 am

    sure thomas,
    ill try to do that

Comments are closed.