Modify backup file exclusions with CrashPlan API

This article applies to CrashPlan Enterprise and MSPs.png

Overview

To improve performance, stability, and efficiency, CrashPlan adds a number of backup file exclusions to your environment that prevent certain files from backing up when you get started in the CrashPlan cloud. These CrashPlan-defined system backup file exclusions apply to all organizations in your environment and are separate from the backup file exclusions selected for organizations on the Backup tab in Device Backup Default Settings:

  • CrashPlan-defined system backup file exclusions do not appear in the CrashPlan console and can only be viewed or modified using the API.
  • CrashPlan-defined system backup file exclusions are additive to those defined on the Backup tab in Device Backup Default Settings.

You can use the CrashPlan API to view the system backup file exclusions that CrashPlan has added to your environment. You can also fine-tune these exclusions by adding or deleting exclusions to fit a specific organization's retention needs (for example, for legal hold preservation policies that need to opt out of the global exclusions). If needed, you can reset the backup file exclusions for an organization to return to the CrashPlan list.

Modifications override the system backup file exclusions CrashPlan has added
When you use these API commands to modify the backup file exclusions that CrashPlan has added to your environment, you create a clone of that list to which your modifications are added. This cloned list overrides those CrashPlan-defined system backup file exclusions. Thus, you may miss out on improvements when CrashPlan updates these exclusions.

If you only need to add new exclusion paths to the defaults, add them in the CrashPlan console to the appropriate organization's excluded files list under File Exclusions in the Device Backup Default Settings. Doing so preserves the CrashPlan system backup file exclusions so that updates are applied to your environment as CrashPlan releases them.

If you have modified the exclusions list, you can still access updates as CrashPlan releases those changes. Make a note of your modifications, then use the reset API command to remove your updates and return to the CrashPlan list. Doing so also incorporates any modifications that CrashPlan has released in the meantime. Next, use the other API commands noted below to re-add your modifications as needed.

Considerations

API request values

The examples below use the following placeholders. Replace them with the appropriate values.

  • Replace <request_URL> with the address of your CrashPlan environment. For example, https://console.us1.crashplan.com/.
  • Replace <OrgID> with your organization's numeric OrgID.
  • Replace <AuthToken> with your basic authentication token.
  • Replace <OperatingSystem> with the name of the operating system this exclusion applies to. Valid entries:
    • ANY
    • WINDOWS
    • MACOS
    • LINUX
  • Replace <PathType> with the type of exclusion to add. Valid entries:
    • CONTAINS
    • STARTSWITH
    • EXTENSION
    • REGEX
    REGEX exclusions are case sensitive
    Exclusions entered using regular expressions are case sensitive. CrashPlan evaluates the regular expression as entered, taking any capitalization used into account.

    Capitalization is not considered for CONTAINS, STARTSWITH, or EXTENSION exclusions.
  • Replace <ExclPath> with the directory path, extension, or regular expression you want to exclude. For example, C:\Windows, MP3, or Library.

Modify CrashPlan's backup exclusions

Use the CrashPlan API to modify the backup file extensions that CrashPlan has added to your environment in the CrashPlan cloud. You can:

List current backup file exclusions

Use the list API command to list the current system backup file exclusions. Replace the placeholders in the following example with the appropriate API request values.

curl -X GET \
"<request_URL>/api/v3/path-exclusions/backup/list?orgId=<OrgID>" \ -H "Authorization: Bearer <AuthToken>"

A successful response lists CrashPlan-defined system backup file exclusions.

{"data":[{"osRestriction":"WINDOWS","type":"STARTSWITH","value":"C:/Windows"}],"error":null,"warnings":null}

Add a new exclusion

The create API command adds a single new backup file exclusion to the list. You can specify the operating system and the type of path to exclude in the command. Replace the placeholders in the following example with the appropriate API request values.

curl -X POST \
"<request_URL>/api/v3/path-exclusions/backup/create?orgID=<OrgID>" \ -H "Authorization: Bearer <AuthToken>" \ -H "Content-Type: application/json" \ -d '{ "osRestriction":"<OperatingSystem>", "type":"<PathType>", "value":"<ExclPath>"}'

This command doesn't return any results after the new exclusion is added. Use the list API command to verify the new exclusion.

Add multiple exclusions at once

Use the bulk-create API command to add multiple exclusions at once. Replace the placeholders in the following example with the appropriate API request values.

curl -X POST \
"<request_URL>/api/v3/path-exclusions/backup/bulk-create?orgID=<OrgID>" \ -H "Authorization: Bearer <AuthToken>" \ -H "Content-Type: application/json" \ -d '[{ "osRestriction":"<OperatingSystem>", "type":"<PathType>", "value":"<ExclPath>"}, { "osRestriction":"<OperatingSystem>", "type":"<PathType>", "value":"<ExclPath>"}]'

This command doesn't return any results after the new exclusions are added. Use the list API command to verify the new exclusions.

Update an existing exclusion

Use the update API command to modify an existing exclusion to correct errors or add path details. Replace the placeholders in the following example with the appropriate API request values.

curl -X PUT \
"<request_URL>/api/v3/path-exclusions/backup/update?orgID=<OrgID>" \ -H "Authorization: Bearer <AuthToken>" \ -H "Content-Type: application/json" \ -d '{ "existingExclusion": { "osRestriction":"<OperatingSystem>", "type":"<PathType>", "value":"<ExclPath>"}, "updatedExclusion": { "osRestriction":"<OperatingSystem>", "type":"<PathType>", "value":"<ExclPath>"} }'

This command doesn't return any results after the exclusion is updated successfully. Use the list API command to verify the update.

Delete an exclusion

The delete API command removes a backup file exclusion from the list. Replace the placeholders in the following example with the appropriate API request values.

curl -X POST \
"<request_URL>/api/v3/path-exclusions/backup/delete?orgID=<OrgID>" \ -H "Authorization: Bearer <AuthToken>" \ -H "Content-Type: application/json" \ -d '{ "osRestriction":"<OperatingSystem>", "type":"<PathType>", "value":"<ExclPath>"}'

This command doesn't return any results after the exclusion is successfully deleted. Use the list API command to verify the exclusion is removed.

Reset exclusions to the default list

Use the reset API command to remove all modifications and return to the CrashPlan-defined system backup file exclusions list. Replace the placeholders in the following example with the appropriate API request values.

curl -X PUT \
"<request_URL>/api/v3/path-exclusions/backup/reset?orgID=<OrgID>" \ -H "Authorization: Bearer <AuthToken>"

This command doesn't return any results after any custom exclusions are removed. Use the list API command to verify that you resumed using the CrashPlan-defined system backup file exclusions.

Locate the numeric OrgID

  1. Sign in to the CrashPlan console.
  2. Select Administration > Environment > Organizations.
  3. Select the organization for which you want to modify the default backup exclusions.
  4. In the web browser's address bar, note the numeric ID in the URL after "organization" but before any query or token parameters. In this example, the OrgID is 123456: https://console.us1.crashplan.com/console/#/organization/123456?t=78910
Was this article helpful?
0 out of 0 found this helpful

Articles in this section