/// <summary> /// Raises a BackupCompressStart event. /// </summary> /// <param name="sender">The event sender.</param> /// <param name="e">The event arguments.</param> private static void BackupCompressStart(object sender, DatabaseTargetEventArgs e) { lock (SThreeQLConsole.SyncRoot) { Console.ForegroundColor = ConsoleColor.DarkGray; Console.Write("Compressing the backup file... "); Console.ResetColor(); } }
/// <summary> /// Raises a BackupCompressComplete event. /// </summary> /// <param name="sender">The event sender.</param> /// <param name="e">The event arguments.</param> private static void BackupCompressComplete(object sender, DatabaseTargetEventArgs e) { lock (SThreeQLConsole.SyncRoot) { Console.ForegroundColor = ConsoleColor.DarkGreen; Console.WriteLine("done."); Console.ResetColor(); } }
/// <summary> /// Raises a BackupTransferComplete event. /// </summary> /// <param name="sender">The event sender.</param> /// <param name="e">The event arguments.</param> private static void BackupTransferComplete(object sender, DatabaseTargetEventArgs e) { lock (SThreeQLConsole.SyncRoot) { Console.ForegroundColor = ConsoleColor.DarkGray; Console.WriteLine(); Console.WriteLine("Upload complete."); Console.WriteLine(); Console.ResetColor(); } }
/// <summary> /// Raises a BackupTransferStart event. /// </summary> /// <param name="sender">The event sender.</param> /// <param name="e">The event arguments.</param> private static void BackupTransferStart(object sender, DatabaseTargetEventArgs e) { lock (SThreeQLConsole.SyncRoot) { Console.ForegroundColor = ConsoleColor.DarkGray; Console.Write("Uploading file "); Console.ForegroundColor = ConsoleColor.DarkYellow; Console.Write(e.Transfer.FileName); Console.ForegroundColor = ConsoleColor.DarkGray; Console.WriteLine(" ({0})... ", e.Transfer.FileSize.ToFileSize()); Console.ResetColor(); } }
/// <summary> /// Raises a BackupStart event. /// </summary> /// <param name="sender">The event sender.</param> /// <param name="e">The event arguments.</param> private static void BackupStart(object sender, DatabaseTargetEventArgs e) { lock (SThreeQLConsole.SyncRoot) { Console.ForegroundColor = ConsoleColor.DarkGray; Console.Write("Backing up database "); Console.ForegroundColor = ConsoleColor.DarkYellow; Console.Write(e.CatalogName); Console.ForegroundColor = ConsoleColor.DarkGray; Console.Write("... "); Console.ResetColor(); } }
/// <summary> /// Raises a BackupTransferComplete event. /// </summary> /// <param name="sender">The event sender.</param> /// <param name="e">The event arguments.</param> private void BackupTransferComplete(object sender, DatabaseTargetEventArgs e) { LogMessage(false, "Completed backup of '{0}' for target '{1}' successfully.", e.CatalogName, e.Name); }
/// <summary> /// Raises a BackupStart event. /// </summary> /// <param name="sender">The event sender.</param> /// <param name="e">The event arguments.</param> private void BackupStart(object sender, DatabaseTargetEventArgs e) { LogMessage(false, "Executing backup of '{0}' for target '{1}'.", e.CatalogName, e.Name); }
/// <summary> /// Raises a BackupTransferProgress event. /// </summary> /// <param name="sender">The event sender.</param> /// <param name="e">The event arguments.</param> private static void BackupTransferProgress(object sender, DatabaseTargetEventArgs e) { OnTransferProgress(e.Transfer); }