/// <summary> /// Restores to an AG Database from an existing AgDatabase. /// </summary> public Restore(IAgDatabase source, IAgDatabase destination) { _source = source; _destination = destination; Overwrite = false; Finalize = false; FileRelocator = name => Regex.Replace(name, _source.Name, _destination.Name, RegexOptions.IgnoreCase & RegexOptions.CultureInvariant); }
/// <summary> /// Initializes a backup chain from a database that is part of an AG. /// </summary> public BackupChain(IAgDatabase agDatabase) : this(agDatabase.RecentBackups()) { }