Backup Sets
- class py42.clients.settings.device_settings.BackupSet(settings_manager, backup_set_dict)
Bases:
collections.UserDict
Helper class for managing device backup sets and Org device default backup sets.
- add_destination(destination_guid)
Adds a destination to be used by this backup set. Raises a
Py42Error
if the supplied destination guid is not available to the parent device/org.- Parameters
destination_guid (str, int) – The globally unique identifier of the destination to be added.
- property destinations
Returns a dict of the destinations used for backup for the backup set. Dict keys are the destination guids, values are the destination names.
- property excluded_files
Returns the list of files/folders excluded from the backup selection. Items can be added/removed from this list via normal list methods, or assigning a new list of files to this attribute to replace the existing one.
- property filename_exclusions
Returns the list of regex patterns used to exclude file paths from the backup selection. Items can be added/removed from this list via normal list methods, or assigning a new list of patterns to this attribute to replace the existing one.
- property included_files
Returns the list of files/folders included in the backup selection. Items can be added/removed from this list via normal list methods, or assigning a new list of files to this attribute to replace the existing one.
- lock_destination(destination_guid)
Locks an in-use destination, disallowing the device owner from removing this destination from their backup. Raises a
Py42Error
if the supplied destination guid is not in use on this backup set, or not available to the parent device/org.
- property locked
Indicates whether the backup set as a whole is locked. If True, individual settings for this backup set (except for Destination settings), cannot be modified.
- remove_destination(destination_guid)
Removes a destination from use by this backup set.
- Parameters
destination_guid (str, int) – The globally unique identifier of the destination to be removed.