C# Class TDSM.Core.Data.Management.BackupManager

Datei anzeigen Open project: DeathCradle/Terraria-s-Dedicated-Server-Mod

Public Methods

Method Description
AutoPurge ( ) : void
AutoPurge ( string worldName ) : void
Compress ( string worldPath ) : BackupResult
Decompress ( string archivePath ) : BackupResult
GetBackups ( string worldName ) : string[]
GetBackupsBefore ( string worldName, System.DateTime date ) : string[]
GetExpiredBackup ( string worldName, int max ) : string[]
GetStamptedFilePath ( string worldName ) : string
GetTimeStamp ( string worldName ) : string
PerformBackup ( ) : BackupResult
PerformBackup ( string worldName ) : BackupResult
SaveWorld ( string path ) : BackupResult

Private Methods

Method Description
Initialise ( Entry plugin ) : void
OnUpdate ( ) : void

Method Details

AutoPurge() public static method

public static AutoPurge ( ) : void
return void

AutoPurge() public static method

public static AutoPurge ( string worldName ) : void
worldName string
return void

Compress() public static method

public static Compress ( string worldPath ) : BackupResult
worldPath string
return BackupResult

Decompress() public static method

public static Decompress ( string archivePath ) : BackupResult
archivePath string
return BackupResult

GetBackups() public static method

public static GetBackups ( string worldName ) : string[]
worldName string
return string[]

GetBackupsBefore() public static method

public static GetBackupsBefore ( string worldName, System.DateTime date ) : string[]
worldName string
date System.DateTime
return string[]

GetExpiredBackup() public static method

public static GetExpiredBackup ( string worldName, int max ) : string[]
worldName string
max int
return string[]

GetStamptedFilePath() public static method

public static GetStamptedFilePath ( string worldName ) : string
worldName string
return string

GetTimeStamp() public static method

public static GetTimeStamp ( string worldName ) : string
worldName string
return string

PerformBackup() public static method

public static PerformBackup ( ) : BackupResult
return BackupResult

PerformBackup() public static method

public static PerformBackup ( string worldName ) : BackupResult
worldName string
return BackupResult

SaveWorld() public static method

public static SaveWorld ( string path ) : BackupResult
path string
return BackupResult