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

Afficher le fichier Open project: DeathCradle/Terraria-s-Dedicated-Server-Mod

Méthodes publiques

Méthode 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

Méthode Description
Initialise ( Entry plugin ) : void
OnUpdate ( ) : void

Method Details

AutoPurge() public static méthode

public static AutoPurge ( ) : void
Résultat void

AutoPurge() public static méthode

public static AutoPurge ( string worldName ) : void
worldName string
Résultat void

Compress() public static méthode

public static Compress ( string worldPath ) : BackupResult
worldPath string
Résultat BackupResult

Decompress() public static méthode

public static Decompress ( string archivePath ) : BackupResult
archivePath string
Résultat BackupResult

GetBackups() public static méthode

public static GetBackups ( string worldName ) : string[]
worldName string
Résultat string[]

GetBackupsBefore() public static méthode

public static GetBackupsBefore ( string worldName, System.DateTime date ) : string[]
worldName string
date System.DateTime
Résultat string[]

GetExpiredBackup() public static méthode

public static GetExpiredBackup ( string worldName, int max ) : string[]
worldName string
max int
Résultat string[]

GetStamptedFilePath() public static méthode

public static GetStamptedFilePath ( string worldName ) : string
worldName string
Résultat string

GetTimeStamp() public static méthode

public static GetTimeStamp ( string worldName ) : string
worldName string
Résultat string

PerformBackup() public static méthode

public static PerformBackup ( ) : BackupResult
Résultat BackupResult

PerformBackup() public static méthode

public static PerformBackup ( string worldName ) : BackupResult
worldName string
Résultat BackupResult

SaveWorld() public static méthode

public static SaveWorld ( string path ) : BackupResult
path string
Résultat BackupResult