Table of Contents

🚫 How to Exclude Document Libraries and Paths from Archiving

Excluding specific document libraries or folder paths from archiving allows you to prevent Squirrel from processing certain content during automated archiving policies. This is useful when you need to keep active working folders, sensitive directories, or frequently accessed content outside the archive scope.

This guide explains how to use the Excluded Libraries and Paths modal to manage exclusions and leverage wildcard patterns for flexible path filtering.


🧭 Understanding Exclusion Scope

Important: Exclusions only apply to automated archiving policies. If you manually archive content using “Archive/Restore by path” or by selecting individual files/folders, these exclusions will not apply.


📋 Steps to Exclude a Document Library or Path

Step Description Image
Step 1: Open the Exclusions Modal Navigate to the Squirrel web portal and access the Excluded Libraries and Paths modal from your settings or archive configuration menu.
Step 2: Search for a SharePoint Site In the “Enter Site Name” field, begin typing the name of your SharePoint site. The search activates after entering at least 3 characters. A dropdown will display matching sites. Click to select your target site.
Step 3: Select a Library Once a site is selected, the available document libraries for that site are loaded automatically and the dropdown opens — no need to click into the field. Select a library from the dropdown, or start typing to filter the list. You can also manually enter a custom library/path name.
Step 4: Drill into Folders (Optional) After selecting a library, the “Library or Path URL” field is populated and a folder dropdown automatically appears showing the next-level folders inside that library. Click any folder to drill deeper — the dropdown updates to show the next level inside your selection. Continue clicking through folders until you've reached the path you want to exclude. You can also type directly in the URL field to filter or jump to a specific path.
Step 5: Review the Generated URL The “Library or Path URL” field reflects your current selection. You can manually edit this URL or paste a complete path at any point.
Step 6: Exclude the Item Click the Exclude Item button to add the library or path to your exclusion list. A success notification will confirm the action.
Step 7: View Excluded Items Scroll down to the “Currently Excluded Items” section to see all active exclusions. Each entry displays the name and full URL of the excluded location.

🔍 Folder Path Autocomplete

The URL field supports live autocomplete of folder paths. As you select libraries or type into the URL field, Squirrel queries the live index of files in your SharePoint site and offers matching folder paths to choose from.

You can stop drilling at any level by clicking Exclude Item — you don't need to navigate all the way to a leaf folder.


🎯 Using Wildcards to Exclude Path Patterns

Wildcards allow you to exclude multiple paths that share a common naming pattern, without needing to add each one individually.

Wildcard Syntax

Enclose any text value in percent symbols (%) to create a wildcard pattern:

https://Contoso.sharepoint.com/sites/finance/Shared Documents/%ignore%

This pattern will exclude any file path that contains “ignore” anywhere in its folder structure.

Examples of Excluded Paths

The following paths WILL be skipped by archiving:

Examples of Non-Excluded Paths

The following paths will NOT be skipped:

Tip: Wildcards are case-insensitive and match partial text within folder names. When using wildcards in the URL field, the folder autocomplete dropdown is automatically disabled to avoid interference.


🗑️ Removing an Exclusion

Step Description Image
Step 1: Locate the Exclusion In the “Currently Excluded Items” section, find the library or path you want to remove from the exclusion list.
Step 2: Click the Trash Icon Click the trash/delete icon next to the item you wish to remove. A confirmation prompt will appear.
Step 3: Confirm Removal Click “OK” in the confirmation dialog to remove the exclusion. The item will be deleted from your exclusion list and will now be included in automated archiving policies.

⚠️ Important Notes


✅ Conclusion

Using the Excluded Libraries and Paths feature in Squirrel provides granular control over your archiving strategy:

By following this guide, administrators can fine-tune their archiving policies to match organizational needs while ensuring critical content remains accessible in SharePoint Online.