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.
Scenario:
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)!!!
|
Comments are closed.
Sarat Reddy
September 1, 2014 at 8:13 pmcan you post LDAP CONFIGURATION
Musabuddin Syed
September 2, 2014 at 6:19 amThanks sarath,
sure I'm working on it, soon you will see the LDAP as well.
Thomos
May 12, 2016 at 10:03 amThis comment has been removed by the author.
Anonymous
May 12, 2016 at 10:04 amSir,
Can you please post OPENLDAP configuration steps
Musabuddin Syed
May 16, 2016 at 7:30 amsure thomas,
ill try to do that