backupProfiles - create a new profile

Use this command to create a new backup profile configuration.

Set a variable similar to the following example:
>>> myprofile = admin.backupProfiles.create({'name':'<profile_name>',
'systembackup':'<T_or_F>','runonschedule':'<T_or_F>'})
You must specify at least one or more of the following attributes, specified as key and value pairs. For attributes that you do not specify, a default value is used in the initial creation of the backup profile.
name
The unique name of the backup profile. If you do not specify a name, a unique name is assigned, based on the current timestamp (example: 1400257792973). You should modify this later to a meaningful name, such as Daily System Backup.
runonschedule
This is a boolean value that indicates whether the profile is configured to run according to a defined schedule, or whether the profile is run only on demand as needed. Valid values are T (run according to the schedule as well as on demand) or F (run only on demand). If this attribute is not specified, the default value is F (run on demand).
systembackup
This is a boolean value that indicates whether the profile is performing a system level backup or a component level backup. Valid values are T (system level backup) or F (component level backup). If this attribute is not specified, the default value is T (system level backup).
The system responds to the command by returning a resource object for the newly created backup profile, similar to the following example:
[
  {
    "backuplocation": (nested object),
    "created_time": "Feb 17, 2014 2:53:52 PM",
    "endtime": None,
    "id": "9fa275b0-58e0-406e-9a4f-83ab092134bc",
    "name": "Daily System Backup",
    "notifications": (nested object),    "objecttypes": (nested object),
    "runonschedule": "T",
    "schedule": (nested object),
    "starttime": 1392911139211,
    "systembackup": "T",
    "updated_time": "Feb 17, 2014 2:53:52 PM"
  }
]

Assigning a backup location to the backup profile

After creating a backup profile, you need to assign an existing backup location to the backup profile. A backup profile can have only one backup location assigned, however the same backup location can be assigned to multiple backup profiles.

Set a variable to the backup location that is being assigned to this backup profile. Use the admin.backupLocations[n] command to specify the backup location from the list of available locations, where the first location is in position [0]. In the following example, the specified backup location is the fourth location in the list (in position [3]):
>>> mylocation = admin.backupLocations[3]
Now assign the selected backup location to the previously defined backup profile:
>>> myprofile.backuplocation = mylocation
When the backup location is assigned successfully, the following message is displayed:
'Set backup location' was successful