Class | Backup::Database::PostgreSQL |
In: |
lib/backup/database/postgresql.rb
|
Parent: | Base |
additional_options | [RW] | Additional "pg_dump" options |
host | [RW] | Connectivity options |
name | [RW] | Name of the database that needs to get dumped |
only_tables | [RW] | Tables to dump, tables that aren‘t specified won‘t get dumped |
password | [RW] | Credentials for the specified database |
pg_dump_utility | [RW] | Path to pg_dump utility (optional) |
port | [RW] | Connectivity options |
skip_tables | [RW] | Tables to skip while dumping the database |
socket | [RW] | Connectivity options |
username | [RW] | Credentials for the specified database |
Creates a new instance of the PostgreSQL adapter object Sets the PGPASSWORD environment variable to the password so it doesn‘t prompt and hang in the process
Builds the PostgreSQL connectivity options syntax to connect the user to perform the database dumping process, socket gets gsub‘d to host since that‘s the option PostgreSQL takes for socket connections as well. In case both the host and the socket are specified, the socket will take priority over the host
Builds the password syntax PostgreSQL uses to authenticate the user to perform database dumping
Performs the pgdump command and outputs the data to the specified path based on the ‘trigger‘
Builds the PostgreSQL syntax for specifying which tables to dump during the dumping of the database
Builds the PostgreSQL syntax for specifying which tables to skip during the dumping of the database
Builds a PostgreSQL compatible string for the additional options specified by the user
Builds the credentials PostgreSQL syntax to authenticate the user to perform the database dumping process