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: 772
Liked: 167 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: 772
Liked: 167 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
Enthusiast
Posts: 26
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.
mge
Novice
Posts: 5
Liked: never
Joined: Mar 14, 2025 11:55 am
Full Name: Markus Geiblinger
Contact:

Re: Exclude folders from backup

Post by mge »

+1

Our situation is Linux managed Agent and we have this folder structure for example with two projects (but we have many more project-folders):
/sharedev/projects/projectA/v10/data/install
/sharedev/projects/projectA/v10/data/test
/sharedev/projects/projectA/v10/data/prod
/sharedev/projects/projectA/v11/data/install
/sharedev/projects/projectA/v11/data/test
/sharedev/projects/projectA/v11/data/prod
/sharedev/projects/projectA/v12/data/install
/sharedev/projects/projectA/v12/data/test
/sharedev/projects/projectA/v12/data/prod

/sharedev/projects/projectB/v10/data/install
/sharedev/projects/projectB/v10/data/test
/sharedev/projects/projectB/v10/data/prod
/sharedev/projects/projectB/v11/data/install
/sharedev/projects/projectB/v11/data/test
/sharedev/projects/projectB/v11/data/prod
/sharedev/projects/projectB/v12/data/install
/sharedev/projects/projectB/v12/data/test
/sharedev/projects/projectB/v12/data/prod

We need to exclude from backup all "test"-folders recursively from each project. We have to exclude all the test-folder recursively, in each project-folder and each project can you multiple version-folders (and the customer-software generates new versions each time an update occurs - so it is not predictable for the backupteam) so we need many wildcards like this style:
/sharedev/projects/project*/v*/data/test/*

Information: at the moment it is not possible to change the test-folder with a mount/hardlink/etc.

Hopefully that will work too.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests