ES3.CreateBackup

public static void CreateBackup(string filePath, ES3Settings settings)

Description

Creates a backup of a file which can be restored using ES3.RestoreBackup.

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

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

settings

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

Examples

C#

JS