models.file_path_filter module

class models.file_path_filter.FilePathFilter(exclude_filters=None, protect_filters=None)[source]

Bases: object

Implementation of the ‘FilePathFilter’ model.

Specifies filters to match files and directories on a Server. Two kinds of filters are supported. a) prefix which always starts with ‘/’. b) posix which always starts with ‘*’ (cannot be “*” only). Regular expressions are not supported. If a directory is matched, the action is applicable to all of its descendants. File paths not matching any protectFilters are not backed up. An example is: Protect Filters: “/” Exclude Filters: “/tmp”, “*.mp4” Using such a policy will include everything under the root directory except the /tmp directory and all the mp4 files.

Attributes:
exclude_filters (list of string): Array of Excluded File Path Filters.

Specifies filters to match files or directories that should be removed from the list of objects matching ProtectFilters.

protect_filters (list of string): Array of Protected File Path

Filters. Specifies filters to match files or directories that should be protected.

classmethod from_dictionary(dictionary)[source]

Creates an instance of this model from a dictionary

Args:

dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.

Returns:

object: An instance of this structure class.