PostgreSQL backup tool with Point-In-Time-Recovery and restore verification
TypeScript backupbackupsdatabasedatabase-backupdevopsdockergolangkubernetesmariadbmongodbmysqlpgpostgrespostgresqls3self-hostedsystem-administrationtoolsweb-ui
FIX (restores): Increase restore timeout to 23 hours instead of 1 hour
Rostislav Dugin16a29cf4582d
diff --git a/backend/internal/features/restores/usecases/mariadb/restore_backup_uc.go b/backend/internal/features/restores/usecases/mariadb/restore_backup_uc.goindex deaca045..1eb13e6d 100644--- a/backend/internal/features/restores/usecases/mariadb/restore_backup_uc.go+++ b/backend/internal/features/restores/usecases/mariadb/restore_backup_uc.go@@ -106,7 +106,7 @@ func (uc *RestoreMariadbBackupUsecase) restoreFromStorage(storage *storages.Storage,mdbConfig *mariadbtypes.MariadbDatabase,) error {- ctx, cancel := context.WithTimeout(parentCtx, 60*time.Minute)+ ctx, cancel := context.WithTimeout(parentCtx, 23*time.Hour)defer cancel()go func() {diff --git a/backend/internal/features/restores/usecases/mysql/restore_backup_uc.go b/backend/internal/features/restores/usecases/mysql/restore_backup_uc.goindex caa525da..aca227f8 100644--- a/backend/internal/features/restores/usecases/mysql/restore_backup_uc.go+++ b/backend/internal/features/restores/usecases/mysql/restore_backup_uc.go@@ -105,7 +105,7 @@ func (uc *RestoreMysqlBackupUsecase) restoreFromStorage(storage *storages.Storage,myConfig *mysqltypes.MysqlDatabase,) error {- ctx, cancel := context.WithTimeout(parentCtx, 60*time.Minute)+ ctx, cancel := context.WithTimeout(parentCtx, 23*time.Hour)defer cancel()go func() {diff --git a/backend/internal/features/restores/usecases/postgresql/restore_backup_uc.go b/backend/internal/features/restores/usecases/postgresql/restore_backup_uc.goindex 2580fb8b..8b5ef80a 100644--- a/backend/internal/features/restores/usecases/postgresql/restore_backup_uc.go+++ b/backend/internal/features/restores/usecases/postgresql/restore_backup_uc.go@@ -152,7 +152,7 @@ func (uc *RestorePostgresqlBackupUsecase) restoreViaStdin("--no-acl",}- ctx, cancel := context.WithTimeout(parentCtx, 60*time.Minute)+ ctx, cancel := context.WithTimeout(parentCtx, 23*time.Hour)defer cancel()// Monitor for shutdown and parent cancellation@@ -429,7 +429,7 @@ func (uc *RestorePostgresqlBackupUsecase) restoreFromStorage(isExcludeExtensions,)- ctx, cancel := context.WithTimeout(parentCtx, 60*time.Minute)+ ctx, cancel := context.WithTimeout(parentCtx, 23*time.Hour)defer cancel()// Monitor for shutdown and parent cancellation