BackupExternal / Client / update_resource_target
update_resource_target¶
- BackupExternal.Client.update_resource_target(**kwargs)¶
Updates the name or backup configuration of the specified resource target.
See also: AWS API Documentation
Request Syntax
response = client.update_resource_target( Arn='string', Name='string', TargetConfiguration={ 'MssqlDatabase': { 'FullBackupAfterDays': 123, 'FullBackupAfterScheduleExpression': 'string', 'BackupStreamCount': 123, 'IsCopyOnlyFull': True|False, 'LogBackupFrequencyInMinutes': 123 }, 'NasFilesystem': { 'AllowUnencryptedDataTransfer': True|False }, 'OracledbDatabase': { 'FullBackupAfterDays': 123, 'FullBackupAfterScheduleExpression': 'string', 'BackupChannelCount': 123, 'BackupNodeHostName': 'string', 'LogBackupFrequencyInMinutes': 123, 'LogRetentionOnHostInHours': 123 }, 'ServerFilesystem': { 'BackupConsistency': 'NON_CONSISTENT'|'CRASH_CONSISTENT'|'CRASH_CONSISTENT_FALLBACK_TO_NON_CONSISTENT', 'PostBackupScript': { 'ScriptParams': 'string', 'ScriptPath': 'string', 'TimeoutInMinutes': 123 }, 'PreBackupScript': { 'ContinueBackupOnScriptFailure': True|False, 'ScriptParams': 'string', 'ScriptPath': 'string', 'TimeoutInMinutes': 123 } }, 'VmwareVm': { 'BackupConsistency': 'APP_CONSISTENT_FALLBACK_TO_CRASH_CONSISTENT'|'APP_CONSISTENT'|'CRASH_CONSISTENT' } }, TargetConfigurationSource='PROVIDER'|'TARGET' )
- Parameters:
Arn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the resource target.
Name (string) – The name of the resource target.
TargetConfiguration (dict) –
The backup configuration for the resource target.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
MssqlDatabase,NasFilesystem,OracledbDatabase,ServerFilesystem,VmwareVm.MssqlDatabase (dict) –
The backup configuration for a Microsoft SQL Server database.
FullBackupAfterDays (integer) – [REQUIRED]
A required threshold, in days, that decides whether a backup job takes a full or an incremental backup. When an on-demand or scheduled backup job runs, the job takes a full backup if the target’s most recent full backup is older than this many days; otherwise it takes an incremental backup, falling back to a full backup if an incremental is not possible.
FullBackupAfterScheduleExpression (string) –
An optional schedule expression that decides whether a backup job takes a full or an incremental backup. When a backup job runs, the job takes a full backup if none has been taken since the most recent point this expression matched. It is evaluated alongside
FullBackupAfterDays; if either matches, a full backup is taken. This is not a backup schedule and does not start backup jobs. Only cron expressions are supported. Example:cron(0 3 ? * SUN *)for every Sunday at 03:00 UTC.BackupStreamCount (integer) –
Number of parallel streams to use for the backup.
IsCopyOnlyFull (boolean) – [REQUIRED]
Whether to take a copy-only backup, which does not disturb the normal backup sequence (it does not reset the differential base or truncate the transaction log). Used during migration from another backup solution.
LogBackupFrequencyInMinutes (integer) –
If log backup is enabled, the frequency for log backup in minutes
NasFilesystem (dict) –
The backup configuration for a network-attached storage (NAS) filesystem.
AllowUnencryptedDataTransfer (boolean) – [REQUIRED]
Specifies whether unencrypted data transfer is allowed for the network-attached storage (NAS) filesystem.
OracledbDatabase (dict) –
The backup configuration for an Oracle database.
FullBackupAfterDays (integer) – [REQUIRED]
A required threshold, in days, that decides whether a backup job takes a full or an incremental backup. When an on-demand or scheduled backup job runs, the job takes a full backup if the target’s most recent full backup is older than this many days; otherwise it takes an incremental backup, falling back to a full backup if an incremental is not possible.
FullBackupAfterScheduleExpression (string) –
An optional schedule expression that decides whether a backup job takes a full or an incremental backup. When a backup job runs, the job takes a full backup if none has been taken since the most recent point this expression matched. It is evaluated alongside
FullBackupAfterDays; if either matches, a full backup is taken. This is not a backup schedule and does not start backup jobs. Only cron expressions are supported. Example:cron(0 3 ? * SUN *)for every Sunday at 03:00 UTC.BackupChannelCount (integer) –
The number of backup channels to use for the Oracle database.
BackupNodeHostName (string) –
Hostname of the node to use as the backup leader.
LogBackupFrequencyInMinutes (integer) –
If log backup is enabled, the frequency for log backup in minutes
LogRetentionOnHostInHours (integer) –
The log retention period for the host in hours.
ServerFilesystem (dict) –
The backup configuration for a server filesystem.
BackupConsistency (string) –
Backup consistency behavior for a server filesystem backup. CRASH_CONSISTENT_* is only applicable to Windows servers.
PostBackupScript (dict) –
Script to run after a backup.
ScriptParams (string) –
The parameters to pass to the backup script.
ScriptPath (string) – [REQUIRED]
A relative path to a script within the
user_scriptsfolder in the agent installation directory on the server.TimeoutInMinutes (integer) –
The timeout for the backup script, in minutes.
PreBackupScript (dict) –
Script to run before a backup.
ContinueBackupOnScriptFailure (boolean) – [REQUIRED]
Specifies whether to continue the backup if the pre-backup script fails.
ScriptParams (string) –
The parameters to pass to the backup script.
ScriptPath (string) – [REQUIRED]
A relative path to a script within the
user_scriptsfolder in the agent installation directory on the server.TimeoutInMinutes (integer) –
The timeout for the backup script, in minutes.
VmwareVm (dict) –
The backup configuration for a VMware virtual machine.
BackupConsistency (string) –
The consistency behavior for the VMware virtual machine backup.
TargetConfigurationSource (string) – The source of the resource target’s backup configuration.
- Return type:
dict
- Returns:
Response Syntax
{}Response Structure
(dict) –
Exceptions