Backup and restore methods. More...

Public Member Functions

delegate void BackupStart ()
 
delegate void BackupComplete (bool success)
 
delegate void RestoreStart ()
 
delegate void RestoreComplete (bool success)
 

Static Public Member Functions

static void BackupCLI ()
 Backup the current project via CLI. More...
 
static void RestoreCLI ()
 Restore the current project via CLI. More...
 
static bool Backup (string executeMethod, bool batchmode=false, bool quit=true, bool noGraphics=false, bool backupAssets=true, bool backupLibrary=false, bool backupSettings=true, bool backupPackages=true, string backupPath="", bool backupUserSettings=true, int slot=0)
 Backup the current project. More...
 
static bool Backup ()
 Backup the current project. More...
 
static bool Restore (string executeMethod, bool batchmode=false, bool quit=true, bool noGraphics=false, bool restoreAssets=true, bool restoreLibrary=false, bool restoreSettings=true, bool restorePackages=true, string backupPath="", bool backupUserSettings=true, int slot=0)
 Restore the current project. More...
 
static bool Restore ()
 Restore the current project. More...
 
static void SayHello ()
 Test the backup/restore with an execute method. More...
 
static void MethodBeforeBackup ()
 Test method (before backup). More...
 
static void MethodAfterBackup ()
 Test method (after backup). More...
 
static void MethodBeforeRestore ()
 Test method (before restore). More...
 
static void MethodAfterRestore ()
 Test method (after restore). More...
 
static void DefaultMethodAfterBackup ()
 Default method after backup. More...
 
static void DefaultMethodAfterRestore ()
 Default method after restore. More...
 

Properties

static bool isBusy [get]
 True if the BAR is busy. More...
 

Events

static BackupStart OnBackupStart
 An event triggered whenever the backup is started. More...
 
static BackupComplete OnBackupComplete
 An event triggered whenever the backup is completed. More...
 
static RestoreStart OnRestoreStart
 An event triggered whenever the restore is started. More...
 
static RestoreComplete OnRestoreComplete
 An event triggered whenever the restore is completed. More...
 

Detailed Description

Backup and restore methods.

Member Function Documentation

◆ Backup() [1/2]

static bool Crosstales.TB.BAR.Backup ( )
static

Backup the current project.

Returns
True if the backup was successful.

◆ Backup() [2/2]

static bool Crosstales.TB.BAR.Backup ( string  executeMethod,
bool  batchmode = false,
bool  quit = true,
bool  noGraphics = false,
bool  backupAssets = true,
bool  backupLibrary = false,
bool  backupSettings = true,
bool  backupPackages = true,
string  backupPath = "",
bool  backupUserSettings = true,
int  slot = 0 
)
static

Backup the current project.

Parameters
executeMethodExecute method after backup
batchmodeStart Unity in batch-mode (default: false, optional)
quitQuit Unity in batch-mode (default: true, optional)
noGraphicsDisable graphic devices in batch-mode (default: false, optional)
backupAssetsCopy the 'Assets'-folder (default: true, optional)
backupLibraryCopy the 'Library'-folder (default: false, optional)
backupSettingsCopy the 'ProjectSettings"-folder (default: true, optional)</param> <param name="backupPackages">Copy the 'Packages"-folder (default: true, optional)
backupPathSet the backup path (default: "", optional)
backupUserSettingsCopy the 'UserSettings"-folder (default: true, optional)</param> <param name="slot">Use specific backup slot (default: 0, range: 0-16, optional)
Returns
True if the backup was successful.

◆ BackupCLI()

static void Crosstales.TB.BAR.BackupCLI ( )
static

Backup the current project via CLI.

◆ DefaultMethodAfterBackup()

static void Crosstales.TB.BAR.DefaultMethodAfterBackup ( )
static

Default method after backup.

◆ DefaultMethodAfterRestore()

static void Crosstales.TB.BAR.DefaultMethodAfterRestore ( )
static

Default method after restore.

◆ MethodAfterBackup()

static void Crosstales.TB.BAR.MethodAfterBackup ( )
static

Test method (after backup).

◆ MethodAfterRestore()

static void Crosstales.TB.BAR.MethodAfterRestore ( )
static

Test method (after restore).

◆ MethodBeforeBackup()

static void Crosstales.TB.BAR.MethodBeforeBackup ( )
static

Test method (before backup).

◆ MethodBeforeRestore()

static void Crosstales.TB.BAR.MethodBeforeRestore ( )
static

Test method (before restore).

◆ Restore() [1/2]

static bool Crosstales.TB.BAR.Restore ( )
static

Restore the current project.

Returns
True if the restore was successful.

◆ Restore() [2/2]

static bool Crosstales.TB.BAR.Restore ( string  executeMethod,
bool  batchmode = false,
bool  quit = true,
bool  noGraphics = false,
bool  restoreAssets = true,
bool  restoreLibrary = false,
bool  restoreSettings = true,
bool  restorePackages = true,
string  backupPath = "",
bool  backupUserSettings = true,
int  slot = 0 
)
static

Restore the current project.

Parameters
executeMethodExecute method after restore
batchmodeStart Unity in batch-mode (default: false, optional)
quitQuit Unity in batch-mode (default: true, optional)
noGraphicsDisable graphic devices in batch-mode (default: false, optional)
restoreAssetsRestore the 'Assets'-folder (default: true, optional)
restoreLibraryRestore the 'Library'-folder (default: false, optional)
restoreSettingsRestore the 'ProjectSettings"-folder (default: true, optional)</param> <param name="restorePackages">Restore the 'Packages"-folder (default: true, optional)
backupPathSet the backup path (default: "", optional)
backupUserSettingsCopy the 'UserSettings"-folder (default: true, optional)</param> <param name="slot">Use specific backup slot (default: 0, range: 0-16, optional)
Returns
True if the restore was successful.

◆ RestoreCLI()

static void Crosstales.TB.BAR.RestoreCLI ( )
static

Restore the current project via CLI.

◆ SayHello()

static void Crosstales.TB.BAR.SayHello ( )
static

Test the backup/restore with an execute method.

Property Documentation

◆ isBusy

bool Crosstales.TB.BAR.isBusy
staticget

True if the BAR is busy.

Event Documentation

◆ OnBackupComplete

BackupComplete Crosstales.TB.BAR.OnBackupComplete
static

An event triggered whenever the backup is completed.

◆ OnBackupStart

BackupStart Crosstales.TB.BAR.OnBackupStart
static

An event triggered whenever the backup is started.

◆ OnRestoreComplete

RestoreComplete Crosstales.TB.BAR.OnRestoreComplete
static

An event triggered whenever the restore is completed.

◆ OnRestoreStart

RestoreStart Crosstales.TB.BAR.OnRestoreStart
static

An event triggered whenever the restore is started.


The documentation for this class was generated from the following file:
  • C:/Users/slaub/Unity/assets/TurboBackup/TurboBackup/Assets/Plugins/crosstales/TurboBackup/Scripts/Editor/BAR.cs