Topic
This article discusses excluding files and folders in Image backup plans using VSS exclusions.
Environment
- NinjaOne Image Backup
- Microsoft Windows
Description
Image file and folder exclusions in NinjaOne Device Backup permit users to exclude files and folders from Image backups. To exclude specific files and folders from your image backups, follow these steps:
- In NinjaOne, navigate to Administration → Policies, and select the policy you wish to adjust.
- Navigate to Backup → Image to access the Image backup plan settings.
- In the Exclusion section, select Exclude specific files and folders from this plan.

- Enter the path for each file or folder you wish to exclude from the image backup. Specify the files by fully qualified path. You can also use wildcards, as in this example:
CUsersUsernameDocuments*.txt
If you can't specify a fully qualified path, you can imply the path by using the $UserProfile$ or $AllVolumesS variables, as in this example:
$AllVolumes#TemporaryFiles*.*
To make the path recursive, append /s to the end, as in this example:
$AllVolumes#TemporaryFiles*.* /s
- When you have entered all your selections, click Save.
NinjaOne will add the files you specify to the appropriate Microsoft Windows registry key value. This feature uses the native VSS exclusion capabilities built into Windows. The Windows shadow copy optimization process removes the value from the shadow copy on a best-effort basis. Microsoft does not guarantee this process will always succeed, but our exclusive Ninja writer may make the results more reliable.