Create Backup Action

Description

Creates a backup of a file which can be restored using the Restore Backup action.

A backup is created by copying the file and giving it a .bak extension.

If a backup already exists it will be overwritten, so you will need to ensure that the old backup will not be required before calling this method.

This method is useful if you’re making updates to your save file which you may want to roll back, or you want to have a way of recovering from data corruption due to hardware faults.

Parameters

File Path [Optional] The relative or absolute path of the file we want to backup.

Error Handling

[Optional] Events triggered when an error occurs.

Override Default Settings

[Optional] The settings we want to use to override the default settings.

Examples

CreateBackupAction