Skip to content

Commit

Permalink
fix backup
Browse files Browse the repository at this point in the history
  • Loading branch information
SuhorukovAnton committed Aug 13, 2024
1 parent 9cdee0e commit d94c513
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions common/ASC.Data.Backup.Core/BackupAjaxHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ public async Task<string> StartBackupAsync(BackupStorageType storageType, Dictio
{
await DemandPermissionsBackupAsync();

if (!coreBaseSettings.Standalone && dump)
{
throw new ArgumentException("backup can not start as dump");
}

var backupRequest = new StartBackupRequest
{
TenantId = await GetCurrentTenantIdAsync(),
Expand Down

0 comments on commit d94c513

Please sign in to comment.