Class Heroku::Command::Pgbackups
In: lib/heroku/command/pgbackups.rb
Parent: BaseWithApp

manage backups of heroku postgresql databases

Methods

Included Modules

PgUtils

Classes and Modules

Class Heroku::Command::Pgbackups::Display

Public Instance methods

pgbackups:capture [DATABASE]

capture a backup from a database id

if no DATABASE is specified, defaults to DATABASE_URL

-e, —expire # if no slots are available to capture, delete the oldest backup to make room

pgbackups:destroy BACKUP_ID

destroys a backup

pgbackups

list captured backups

pgbackups:restore [BACKUP_ID]

restore a backup to a database id

if no BACKUP_ID is specified, uses the most recent backup

-d, —db DATABASE # the database id to target for the restore

pgbackups:url [BACKUP_ID]

get a temporary URL for a backup

Protected Instance methods

[Validate]