Create a NAS Fileset.
def create_nas_fileset(name, share_type, include, exclude, exclude_exception, follow_network_shares=False, timeout=15)
Name | Type | Description | Choices |
name | str | The name of the Fileset you wish to create. | ​ |
share_type | str | The type of NAS Share you wish to backup. | NFS, SMB |
include | list | The full paths or wildcards that define the objects to include in the Fileset backup. | ​ |
exclude | list | The full paths or wildcards that define the objects to exclude from the Fileset backup. | ​ |
exclude_exception | list | The full paths or wildcards that define the objects that are exempt from the | ​ |
Name | Type | Description | Choices | Default |
follow_network_shares | bool | Include or exclude locally-mounted remote file systems from backups. | ​ | False |
timeout | int | The number of seconds to wait to establish a connection the Rubrik cluster before returning a timeout error. | ​ | 15 |
Type | Return Value |
str | No change required. The Rubrik cluster already has a NAS Fileset named ' |
dict | The full response for the |
import rubrik_cdm​rubrik = rubrik_cdm.Connect()​name = "Python SDK"share_type = 'NFS'include = ['/usr/local', '*.pdf']exclude = ['/user/local/temp', '*.mov', '*.mp3', '*.mp4']exclude_exception = ['/company/*.mp4']​​new_fileset = rubrik.create_nas_fileset(name, share_type, include, exclude, exclude_exception)