Example #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;
        }
Example #2
0
 protected internal abstract void StoreBackupStream(string backupFilePath, IndexBackup backup, IndexBackupProgress progress);