Beispiel #1
0
 /// <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);
 }
Beispiel #2
0
 /// <summary>
 ///   Initializes a backup chain from a database that is part of an AG.
 /// </summary>
 public BackupChain(IAgDatabase agDatabase) : this(agDatabase.RecentBackups())
 {
 }