PgDumpPlatformDatabaseBackupDumper
in package
implements
PlatformDatabaseBackupDumperInterface
Table of Contents
Interfaces
Methods
- buildArgv() : array<int, string>
- Build a pg_dump argv list without shell interpolation.
- dump() : TenantBackupDumpResult
- assertSafeHost() : void
- assertSafeIdentifier() : void
- assertSafePath() : void
- assertSafePort() : void
- redactProcessOutput() : string
Methods
buildArgv()
Build a pg_dump argv list without shell interpolation.
public
buildArgv(array<string, mixed> $platformConfig, string $outputPath) : array<int, string>
Parameters
- $platformConfig : array<string, mixed>
-
Platform datasource configuration
- $outputPath : string
Return values
array<int, string>dump()
public
dump(array<string|int, mixed> $platformConfig, SensitiveString $databasePassword, string $outputPath) : TenantBackupDumpResult
Parameters
- $platformConfig : array<string|int, mixed>
-
Platform datasource configuration
- $databasePassword : SensitiveString
- $outputPath : string
Return values
TenantBackupDumpResultassertSafeHost()
private
assertSafeHost(string $host) : void
Parameters
- $host : string
assertSafeIdentifier()
private
assertSafeIdentifier(string $identifier, string $label) : void
Parameters
- $identifier : string
- $label : string
assertSafePath()
private
assertSafePath(string $path) : void
Parameters
- $path : string
assertSafePort()
private
assertSafePort(string $port) : void
Parameters
- $port : string
redactProcessOutput()
private
redactProcessOutput(string $output) : string
Parameters
- $output : string