Agent-based backup of Windows, Linux, Max, AIX and Solaris machines.
Post Reply
Karbust
Novice
Posts: 3
Liked: never
Joined: Mar 25, 2024 11:42 am
Full Name: António Silva
Contact:

Exclude folders from backup

Post by Karbust »

Hello,

When using File level backup, is it possible to exclude folders with wildcards from backups?

For example, I want to exclude every folder that is named "node_modules", ".git" and ".vs". Is that possible?

Thank you
rovshan.pashayev
Veeam Software
Posts: 454
Liked: 94 times
Joined: Jul 03, 2023 12:44 pm
Full Name: Rovshan Pashayev
Location: Czechia
Contact:

Re: Exclude folders from backup

Post by rovshan.pashayev »

Hello Antonio,

Here are available filter examples which you can use: https://helpcenter.veeam.com/docs/backu ... ml?ver=120
Rovshan Pashayev
Analyst
Veeam Agent for Linux, Mac, AIX & Solaris
Karbust
Novice
Posts: 3
Liked: never
Joined: Mar 25, 2024 11:42 am
Full Name: António Silva
Contact:

Re: Exclude folders from backup

Post by Karbust »

Hello,

I have seen that page, unfortunately it doesn't work for many folders, would need to specify one by one, for example:
  • D:\Projects\project1\node_modules
  • D:\Projects\project2\node_modules
  • etc
Would be really good to not backup any folder that matches a string, for example, my Backblaze rules:

Code: Select all

<excludefname_rule bzmergeblock="001" plat="win" osVers="*"  ruleIsOptional="t" skipFirstCharThenStartsWith="*" contains_1="\node_modules\" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />
<excludefname_rule bzmergeblock="001" plat="win" osVers="*"  ruleIsOptional="t" skipFirstCharThenStartsWith="*" contains_1="\.vs\" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />
<excludefname_rule bzmergeblock="001" plat="win" osVers="*"  ruleIsOptional="t" skipFirstCharThenStartsWith="*" contains_1="\.git\" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />
Any folder called node_modules, .vs or .git is not backed up, doesn't matter it's path.

Quoting a NOTE from the page you sent:
Note that you cannot use a wildcard in the middle of the path. For example, specifying E:\*\2023 will cause an error during backup. To recursively exclude files from specific subfolders of the selected root folder, you can use the standard OS mechanism for exclusions.

From: https://helpcenter.veeam.com/docs/backu ... n-the-path
Something like this on Veeam would make a huge differene.

Thank you
rovshan.pashayev
Veeam Software
Posts: 454
Liked: 94 times
Joined: Jul 03, 2023 12:44 pm
Full Name: Rovshan Pashayev
Location: Czechia
Contact:

Re: Exclude folders from backup

Post by rovshan.pashayev » 1 person likes this post

Hello Antonio,

Thank you for the feature enhancement suggestion.
We have acknowledged it and will conduct an investigation into its potential implementation.
Rovshan Pashayev
Analyst
Veeam Agent for Linux, Mac, AIX & Solaris
Karbust
Novice
Posts: 3
Liked: never
Joined: Mar 25, 2024 11:42 am
Full Name: António Silva
Contact:

Re: Exclude folders from backup

Post by Karbust »

Thank you for the feedback!

Hope it is implemented!
JGM2023
Influencer
Posts: 23
Liked: 7 times
Joined: Jun 09, 2023 12:47 pm
Full Name: JGM
Contact:

Re: Exclude folders from backup

Post by JGM2023 » 1 person likes this post

+1 Please, We requested this a long time ago through our Enterprise account manager. Wildcards would be a huge benefit.
Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests