PostgreSQL backup tool with Point-In-Time-Recovery and restore verification
TypeScript backupbackupsdatabasedatabase-backupdevopsdockergolangkubernetesmariadbmongodbmysqlpgpostgrespostgresqls3self-hostedsystem-administrationtoolsweb-ui
FIX (dump): Get rid of extra encoding param when backup and restore
Rostislav Dugind2a90855912d
diff --git a/backend/internal/features/backups/backups/usecases/postgresql/create_backup_uc.go b/backend/internal/features/backups/backups/usecases/postgresql/create_backup_uc.goindex 02acd7f5..1fc22522 100644--- a/backend/internal/features/backups/backups/usecases/postgresql/create_backup_uc.go+++ b/backend/internal/features/backups/backups/usecases/postgresql/create_backup_uc.go@@ -417,7 +417,6 @@ func (uc *CreatePostgresqlBackupUsecase) setupPgEnvironment("PGCONNECT_TIMEOUT="+strconv.Itoa(pgConnectTimeout),"LC_ALL=C.UTF-8","LANG=C.UTF-8",- "PGOPTIONS=--client-encoding=UTF8",)if shouldRequireSSL {@@ -611,7 +610,6 @@ func (uc *CreatePostgresqlBackupUsecase) handleExitCode1NoStderr("PGCONNECT_TIMEOUT=" + strconv.Itoa(pgConnectTimeout),"LC_ALL=C.UTF-8","LANG=C.UTF-8",- "PGOPTIONS=--client-encoding=UTF8",},)diff --git a/backend/internal/features/restores/usecases/postgresql/restore_backup_uc.go b/backend/internal/features/restores/usecases/postgresql/restore_backup_uc.goindex a46bd9d0..ffa73179 100644--- a/backend/internal/features/restores/usecases/postgresql/restore_backup_uc.go+++ b/backend/internal/features/restores/usecases/postgresql/restore_backup_uc.go@@ -378,7 +378,6 @@ func (uc *RestorePostgresqlBackupUsecase) setupPgRestoreEnvironment(// Add encoding-related environment variablescmd.Env = append(cmd.Env, "LC_ALL=C.UTF-8")cmd.Env = append(cmd.Env, "LANG=C.UTF-8")- cmd.Env = append(cmd.Env, "PGOPTIONS=--client-encoding=UTF8")shouldRequireSSL := pgConfig.IsHttps