Website Exclusion Rules

A Website resource can have a number of Rules associated with it. These Rules dictate which files or folders are excluded from the backup process.

The exclusion rules follow simple wildcard-style pattern matching. For example, to exclude all .log files in a particular directory, you can construct a rule like /path/to/folder/*.log to prevent those log files from being backed up. Absolute paths for directories and files are also acceptable. In the case of directories, those rules must end with /* to ensure all content within the directory is not inspected. For example, /path/to/excluded_folder/*.

Website Exclusion Rules must be modified as a set.

Attributes

The following are the attributes associated with the Rules resource. Whether they are required or optional is specified in the sections that follow.

include_rules

This attribute is not modifiable by the API at this time.

exclude_rules

An array of file and folder paths to exclude from a Website backup. Wildcard pattern matching is supported.

Get Website Exclusion Rules

This method will return an array of rules Rules associated with the specified Website record.