PostgreSQL backup tool with Point-In-Time-Recovery and restore verification
TypeScript backupbackupsdatabasedatabase-backupdevopsdockergolangkubernetesmariadbmongodbmysqlpgpostgrespostgresqls3self-hostedsystem-administrationtoolsweb-ui
FIX (deploy): Create data and temp folders in CI \ CD to avoid tests failing
Rostislav Duginf1620de82226
diff --git a/.github/workflows/ci-release.yml b/.github/workflows/ci-release.ymlindex d8a3fcae..ea30cc87 100644--- a/.github/workflows/ci-release.yml+++ b/.github/workflows/ci-release.yml@@ -159,6 +159,13 @@ jobs:# Wait for MinIOtimeout 60 bash -c 'until nc -z localhost 9000; do sleep 2; done'+ - name: Create data and temp directories+ run: |+ # Create directories that are used for backups and restore+ # These paths match what's configured in config.go+ mkdir -p postgresus-data/backups+ mkdir -p postgresus-data/temp+- name: Install PostgreSQL client toolsrun: |chmod +x backend/tools/download_linux.shdiff --git a/backend/internal/features/storages/models/local/model.go b/backend/internal/features/storages/models/local/model.goindex dea528ce..7c87d8cc 100644--- a/backend/internal/features/storages/models/local/model.go+++ b/backend/internal/features/storages/models/local/model.go@@ -7,7 +7,6 @@ import ("os""path/filepath""postgresus-backend/internal/config"- files_utils "postgresus-backend/internal/util/files""github.com/google/uuid")@@ -134,14 +133,6 @@ func (l *LocalStorage) Validate() error {}func (l *LocalStorage) TestConnection() error {- err := files_utils.EnsureDirectories([]string{- config.GetEnv().TempFolder,- config.GetEnv().DataFolder,- })- if err != nil {- return fmt.Errorf("failed to ensure directories: %w", err)- }-testFile := filepath.Join(config.GetEnv().TempFolder, "test_connection")f, err := os.Create(testFile)if err != nil {