2018-10-13 23:03:50 +00:00
|
|
|
|
namespace BackupManager
|
|
|
|
|
{
|
|
|
|
|
public class Config
|
|
|
|
|
{
|
2019-01-15 14:55:35 +00:00
|
|
|
|
public StorageMethod StorageMethod { get; set; } = StorageMethod.GoogleDrive;
|
|
|
|
|
|
2018-10-13 23:03:50 +00:00
|
|
|
|
public string GoogleClientId { get; set; }
|
|
|
|
|
public string GoogleClientSecret { get; set; }
|
|
|
|
|
public string GoogleBackupDirectory { get; set; } = @"Backups";
|
|
|
|
|
|
|
|
|
|
// these should not be edited in the xml file
|
|
|
|
|
public string GoogleAccessToken { get; set; }
|
|
|
|
|
public string GoogleTokenType { get; set; }
|
|
|
|
|
public long? GoogleTokenExpires { get; set; }
|
|
|
|
|
public string GoogleRefreshToken { get; set; }
|
|
|
|
|
public string GoogleTokenIssued { get; set; }
|
|
|
|
|
|
2019-01-15 14:55:35 +00:00
|
|
|
|
public string SftpHost { get; set; }
|
|
|
|
|
public ushort SftpPort { get; set; }
|
|
|
|
|
public string SftpUsername { get; set; }
|
|
|
|
|
public string SftpPassphrase { get; set; }
|
|
|
|
|
public string SftpPrivateKey { get; set; }
|
|
|
|
|
public string SftpBackupDirectoryPath { get; set; }
|
|
|
|
|
public string SftpTrustedHost { get; set; }
|
|
|
|
|
|
2018-10-13 23:03:50 +00:00
|
|
|
|
public string MySqlDumpPathWindows { get; set; } = @"C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqldump.exe";
|
|
|
|
|
public string MySqlDumpPath { get; set; } = @"mysqldump";
|
|
|
|
|
public string MySqlHost { get; set; } = @"localhost";
|
|
|
|
|
public string MySqlUser { get; set; }
|
|
|
|
|
public string MySqlPass { get; set; }
|
|
|
|
|
public string MySqlDatabases { get; set; } = @"misuzu";
|
|
|
|
|
|
|
|
|
|
public string MisuzuPath { get; set; }
|
2019-01-15 15:27:00 +00:00
|
|
|
|
|
|
|
|
|
public string SatoriHost { get; set; }
|
|
|
|
|
public ushort SatoriPort { get; set; }
|
|
|
|
|
public string SatoriSecret { get; set; }
|
|
|
|
|
public bool SatoriErrorsOnly { get; set; } = true;
|
2018-10-13 23:03:50 +00:00
|
|
|
|
}
|
|
|
|
|
}
|