Skip to main content
vtpcnk
Silver ⭐️⭐️⭐️
Apr 6, 2021 5:45 PM UTC
Solved

BDR - HDFS - exclusion

Hi, In BDR HDFS replication I want to exclude all files which end with ".tmp" in the directory "/backups/"

 

Appreciate it if somebody could give the expression for this to add in BDR "Add Exclusion". 

 

Thanks

vaishaakb
vaishaakbAnswer
Gold ⭐️⭐️⭐️
Apr 7, 2021 11:19 AM UTC

Hi, @vtpcnk Greetings!

Thank you for posting in Cloudera Community.

 

You can use a RegEx pattern like this, Try this out:

CM > Backup > Schedules > Actions > Edit Configurations > Advanced > Path Exclusion

^(?!.*.tmp).*$

For more information, here are some nicer reads:

Section 7: CLDR Doc (Adding Exclusion) 

How-to: Building/Testing RegEx

 

Hope this helps!

 

Is your question answered? If Yes, Feel free to mark the answer as "Accept as Solution".
If you find a reply helpful, say thanks by clicking on the "thumbs-up" button.

3 replies

vtpcnk
vtpcnkAuthor
Silver ⭐️⭐️⭐️
Apr 6, 2021 5:49 PM UTC

BTW files with ".tmp" extension could be under any subdirectory under "/backups".

 

Thanks.

Translate
vaishaakb
Gold ⭐️⭐️⭐️
vaishaakbAnswer
Gold ⭐️⭐️⭐️
Apr 7, 2021 11:19 AM UTC

Hi, @vtpcnk Greetings!

Thank you for posting in Cloudera Community.

 

You can use a RegEx pattern like this, Try this out:

CM > Backup > Schedules > Actions > Edit Configurations > Advanced > Path Exclusion

^(?!.*.tmp).*$

For more information, here are some nicer reads:

Section 7: CLDR Doc (Adding Exclusion) 

How-to: Building/Testing RegEx

 

Hope this helps!

 

Is your question answered? If Yes, Feel free to mark the answer as "Accept as Solution".
If you find a reply helpful, say thanks by clicking on the "thumbs-up" button.

Translate
vaishaakb
Gold ⭐️⭐️⭐️
Gold ⭐️⭐️⭐️
Oct 17, 2022 11:03 AM UTC

Hello @vtpcnk

Good Day!

 

Circling back to see if my post helped you with this task.

If yes, Please mark the answer as "Accept as Solution". So this will be highlighted as solution to this ask for other users in our community.

 

V

Translate