Пример #1
0
        //====================================================== Index backup / restore operations

        internal static Guid StoreIndexBackupToDb(string backupFilePath, IndexBackupProgress progress)
        {
            var lastBackup   = Current.LoadLastBackup();
            var backupNumber = lastBackup == null ? 1 : lastBackup.BackupNumber + 1;
            var backup       = Current.CreateBackup(backupNumber);

            Current.StoreBackupStream(backupFilePath, backup, progress);
            Current.SetActiveBackup(backup, lastBackup);
            return(backup.RowGuid); // backup.BackupNumber;
        }
Пример #2
0
 protected internal abstract void StoreBackupStream(string backupFilePath, IndexBackup backup, IndexBackupProgress progress);
Пример #3
0
 static BackupTools()
 {
     _backupDirectoryPath = StorageContext.Search.IndexDirectoryBackupPath;
     _zipFilePath = IO.Path.Combine(_backupDirectoryPath, BACKUPFILENAME);
     Progress = new IndexBackupProgress();
     Progress.Changed += new EventHandler(Progress_Changed);
 }
Пример #4
0
        //====================================================================== Index backup / restore operations

        public static Guid StoreIndexBackupToDb(string backupFilePath, IndexBackupProgress progress)
        {
            return DataProvider.StoreIndexBackupToDb(backupFilePath, progress);
        }
Пример #5
0
 protected internal override void StoreBackupStream(string backupFilePath, IndexBackup backup, IndexBackupProgress progress)
 {
     WriteLog(MethodInfo.GetCurrentMethod(), backupFilePath, backup, progress);
     base.StoreBackupStream(backupFilePath, backup, progress);
 }