Method: Backup::Database::PostgreSQL#perform!
- Defined in:
- lib/backup/database/postgresql.rb
#perform! ⇒ Object
Performs the pgdump command and outputs the data to the specified path based on the ‘trigger’ and resets the ‘PGPASSWORD’ environment variable to nil
103 104 105 106 107 |
# File 'lib/backup/database/postgresql.rb', line 103 def perform! log! run("#{pgdump} > '#{File.join(dump_path, name)}.sql'") ENV['PGPASSWORD'] = nil end |