Overview

By default, CrashPlan PRO backs up files in the user's home directory. In the path list fields on the Device Default Settings page, you can define specific files to include / exclude when backing up at an organization level.

In PRO Server, you have several ways of specifying what should be included / excluded in the backup set. You can:

  • use substitution variables
  • specify filename patterns using wildcards
  • specify file extensions to exclude
  • use regular expressions

PRO Server: Using Substitution Variables

Instead of identifying each user folder by name, for example, you can use substitution variables.

Example

Included

Excluded

:user/WorkFolder/
:movies

:user/WorkFolder/Private/


When CrashPlan PRO Client is installed on a client computer, the default org settings are pulled down and the substitution values are applied.

So on Joe's Mac the end result would be:

Included

Excluded

/User/Joe/WorkFolder/
/User/Joe/Movies/

/User/Joe/WorkFolder/Private/


And on Jill's Windows PC the end result would be:

Included

Excluded

C:/Documents and Settings/Jill/WorkFolder/
C:/Documents and Settings/Jill/My Movies/

C:/Documents and Settings/Jill/WorkFolder/Private/


Substitution Variables

Use these variables to specify the types of files or locations in the path list fields. These variables are applied in the following situations:

  • When the client is first installed
  • When settings are published via the Default Client Settings
  • When the client's settings are modified to include the variable

When the variable is applied, then the specific client's settings explicitly list the relevant files and folders and the variable is replaced.

Term

Description

:main

Main volume (i.e. C:\ or / on Unix or OS X)

:applications

Default applications folder for OS

:user

On first run, running user's home folder

:desktop

On first run, user's desktop folder

:documents

On first run, user's default document folder

:music

On first run, running user's music folder

:pictures

On first run, running user's movies folder

:movies

On first run, running user's movies folder

:allUsers

All installed users' home folders

:allDesktops

All installed users' desktop folders

:allDocuments

All installed users' default document folders

:allMusic

All install users' default music folders

:allPictures

All installed users' default pictures folders

:allMovies

All installed users' default movie folders

Excluding Files From Backup

In PRO Server, you can specify filename patterns to exclude by default for all users in an organization. Select the organization, click the gear icon in the upper right corner of the window and select Device Default Settings > General Tab.

In PRO Client the user can specify filename patterns that CrashPlan should ignore in Settings > Backup > Filename patterns to exclude.

PRO Client: Ignore by File Extension

You can tell CrashPlan PRO to ignore types of files by specifying the extension. For example, add "mp3" to the list to force all files ending with that suffix to be ignored when CrashPlan PRO identifies files for backup.

PRO Client and PRO Server: Regular Expressions

Regular expressions are a much more powerful way of matching files to be excluded from backup. Each expression you provide is always matched against the absolute path of the file, which allows taking the parent directory into account when you exclude files.

Note: CrashPlan always uses '/' as the file separator character.

Here's an example: Consider the absolute path: /Users/Peter/Documents/examples/regex.txt. You could exclude the file with:

 

Description

.*\.txt

all text files in all directories will be excluded, case-sensitive

(?i).*\.txt

same as previous, case-insensitive

(?i)./examples/.\.txt

text files in examples folder are excluded, case-insensitive

(?i)/Users/Peter/.*\.txt

text files in Peter's home directory are excluded, case-insensitive

(?i)/Users/./examples/.\.txt

text files contained in User's home directory within an examples folder are excluded, case-insensitive

Additional Examples

Using an Exclude to Include

Regular expressions are extremely powerful and allow you to specify "match X but not if it includes Y". How is this useful? Say you want any doc or rtf files backed up, regardless of where those files reside within the user's system. You could use the following regex under Admin File Exclusions to ensure all doc or rtf files are backed up:

(?i)^((?\!(\.(doc\|rtf)\|.*/)$).)*$

Deselected Files

Files no longer selected for backup are removed from the backup archive the next time CrashPlan PRO performs archive maintenance and are NOT able to be restored. Deselected files are not the same as deleted files, so the "keep deleted files for X time" setting does not apply to them. As a reslt, the files in the deselected folder will be pruned from the backup archive.

You can remove a file from the backup selection by:

  • deselecting the file or folder (or in the admin console)
  • adding an exclusion regex that eliminates the file from backup set

The next time the archive is maintained the backups of those files will be removed from the archive.

  • No labels