Whatever message this page gives is out now! Go check it out!

CreateBackup

Last update:
May 18, 2026

Description

This function creates a backup of an existing table.
Each time you create a backup, the entire table data is backed up. You can back up a table as many times you can.
For more information, see CreateBackup.

Category

History

ColdFusion (2021 release): Added this function.

Syntax

serviceHandle.createBackup(requestParameters)

Parameters

See request parameters of CreateBackup.

Example

<cfscript> 
  cred = { 
    "credentialAlias" : "myalias", 
    "vendorName" : "AWS", 
    "region" : "us-east-2", 
    "secretAccessKey" : "xxxxx", 
    "accessKeyId" : "xxxx" 
  } 
 
  conf={ 
    "serviceName"="DYNAMODB" 
  } 
 
  dynamo=getCloudService(cred, conf) 
 
  // create a backup 
  tableName="YearlyProductCatalog" 
  createBackupStruct={ 
    "BackupName": "prodBackup", 
    "TableName": "#tableName#" 
  } 
 
  try{ 
    createBackupResponse=dynamo.createBackup(createBackupStruct) 
    writeOutput("Backup created successfully") 
    writeDump(createBackupResponse) 
  } 
  catch(any e){ 
    writeDump(e) 
  } 
</cfscript>

Output

Figure: CreateBackup output
CreateBackup output

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page