Creating and Using Selectors in Retrospect
This document explains how to create, test, and use Retrospect selectors to include or exclude specific files and folders (for example, music, games, or office documents) in your backups. It also covers how to safely verify selector behavior and how to use more advanced AND conditions.
Step 1: Open the Selectors Configuration
Start by opening the Selectors area in Retrospect.

- In Retrospect, go to Configure on the left side.

- In the Configure section, choose Selectors.

- Click New to create a new selector.

- Enter a name such as No Music or Games, then click OK.

Step 2: Define Exclusion Rules for Music and Games
Configure the selector to exclude MP3 files and folders that contain “Games” in the name.
- In the selector editor, you will see two sections:
- Include (Include everything)
- Exclude (Exclude nothing by default)
To exclude items, work in the Exclude section.
- In the Exclude section, choose Name > File from the criteria list on the left.

- Make sure Folder is unchecked so the rule applies only to files.

- Set the condition to Does:

- Choose End With and enter .mp3 as the file name pattern.

This will exclude files whose names end with .mp3.
- Next, add an Or condition to also exclude game folders. Click the + next to Or.

- In the new condition, choose Folder Name.

- Set the condition to Does Contain.

- Enter Games as the text to match.

- Click OK to save the selector rules.

This selector now:
- Includes everything by default.
- Excludes:
- Files whose names end with .mp3.
- Files and folders whose names contain Games.
- Close the selector editor window.

- Click Save to save your selector changes.

Step 3: Apply the Selector to a Backup Operation
Use the new selector when running a backup.
- Go to the Backup section in Retrospect.


- Under Selecting, change the current selector to your custom selector No Music or Games.


When this backup runs, Retrospect will include all data except items that match the exclusion criteria (MP3 files and items with “Games” in the name).
Step 4: Check a Selector Against Your Hard Drive
Verify what your selector will include and exclude before using it in production.
- Go back to Configure > Selectors.


- Choose your custom selector and click Edit.


- At the top of the selector editor, click the blue check mark icon to run Check Selector.

- Select the hard drive (for example, your main system drive) to test against.

- Click OK to start the scan.

Retrospect will:
- Scan the selected drive.
- Apply the selector.
- Display a browser window listing all files and folders in the source volume:
- Highlighted items are included in the backup.
- Non-highlighted items are excluded (for example, empty folders or .mp3 files excluded by your selector).
Use selectors sparingly:
- It is easy to accidentally exclude data you might need later.
- Avoid complex or overly broad criteria unless absolutely necessary.
Step 5: Use the Selector in a Backup Script
Attach the selector to a scripted backup for ongoing use.
- Close the Check Selector window.

- Close the selector editor.

- Go to Configure > Scripts.

- Create a new backup script or edit an existing one.


- Choose your source (for example, your local C: drive and/or network clients).


- Choose your destination backup set.
- Under Selecting, change the setting from All Files to your custom selector.


Now, when this script runs, it will include everything except the items defined in your selector.


Step 6: Create an Include-Only Selector for Office Files
Next, create a selector that only includes certain file types and folders (e.g., Office documents) and excludes everything else by omission.
- Close the script window you just created or edited.

- Return to Configure > Selectors.


- In Selectors, click New.

- Name this selector, for example, Office files, then confirm.


- In the Include section, click the + button to add your first include rule.

- Set the criteria:
- File name
- Condition: Does End With
- Value: .doc


- Next to Or, click + to add another include rule.

- Set this rule to:
- File name
- Condition: Does End With
- Value: .xls


- Click the + next to Or again to add one more file-type rule.


- In this rule, uncheck Folder so it applies only to files.

- Set it to:
- Condition: Does End With
- Value: .pdf


- Add one more criterion for folders:
- Click + to add a new rule.
- Choose Folder.
- Set Folder name to Does Contain.
- Enter Documents.


With this selector:
- It will include:
- Files whose names end with .doc.
- Files whose names end with .xls.
- Files whose names end with .pdf.
- Any folder whose name contains the word Documents.
- It will exclude nothing explicitlyin the Exclude section, but:
- Only items that match these Include criteria will be backed up.
- Everything else will effectively be left out of the backup.
When this selector is used in a backup script, only items meeting these criteria are included.


Step 7: Verify the Office Files Selector
Test the Office files selector to confirm it includes only the intended items.
- Click the Check Selector button (blue check mark) while the Office files selector is open.

- Select your C: drive (or another source) and start the scan.

Retrospect will:
- Scan the drive.
- Apply the include criteria.
- Display only the files and folders that match the include rules (e.g., .doc, .xls, .pdf, and folders containing “Documents”).
To improve selector reliability:
- Keep selectors as simple as possible.
- Avoid using Path criteria when you can; paths can change and easily cause incorrect includes/excludes.
- For very specific names, consider using Matches or Exactly Matches instead of Contains or Ends With.
Step 8: Create an AND-Based Selector for Accounting Documents
Use an AND condition so that all criteria must be true for a file to be included.
- Create another new selector.


- Name it Accounting Documents.

- In the Includesection, add the first rule:
- Choose Folder name.
- Set the condition to Does Match (or Exactly Matches, depending on the interface).
- Enter Accounting.


- Click the top + button (not the one next to Or). This creates an AND condition, meaning all listed conditions must be true.


- Add the second rule:
- File name
- Condition: Does End With
- Value: .doc


This selector will only include:
- Word documents (.doc)
- That are located in a folder whose name exactly matches Accounting.
Both conditions must be met:
- The folder name must be Accounting.
- The file name must end in .doc.
This demonstrates how AND conditions can precisely target data for inclusion or exclusion in your backups.