Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

require the at option when scheduling backups #1485

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/heroku/command/pg_backups.rb
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,10 @@ def cancel_backup
def schedule_backups
db = shift_argument
validate_arguments!
at = options[:at] || '04:00 UTC'
if !options[:at]
error("A time must be specified when scheduling backups")
end
at = options[:at]
schedule_opts = parse_schedule_time(at)

resolver = generate_resolver
Expand Down