Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add periodic backups configuration commands #455

Merged
merged 7 commits into from Jul 23, 2019

Conversation

@EtienneM
Copy link
Member

commented Jul 22, 2019

$ scalingo --app my-app --addon ad-d4903c5a-7b38-4fca-950a-54a34ae84ca4 backups-config --disable-scheduling
-----> Periodic backups are disabled

$ scalingo --app my-app --addon ad-d4903c5a-7b38-4fca-950a-54a34ae84ca4 backups-config --schedule-at 3
-----> Periodic backups will be done daily at 3:00 CEST

Fix #454

@EtienneM EtienneM force-pushed the fix/454/periodic_backups_config branch 3 times, most recently from 72d3f8d to 40bf046 Jul 22, 2019

@EtienneM EtienneM marked this pull request as ready for review Jul 22, 2019

@EtienneM EtienneM added the reviewable label Jul 22, 2019

@EtienneM EtienneM requested a review from Soulou Jul 22, 2019

Usage: "Configure the periodic backups of a database",
Flags: []cli.Flag{appFlag, addonFlag, cli.IntFlag{
Name: "schedule-at",
Usage: "Enable daily backups and schedule them at the specified hour of the day (UTC)",

This comment has been minimized.

Copy link
@Soulou

Soulou Jul 22, 2019

Member

Shouldn't we use the local timezone?

This comment has been minimized.

Copy link
@EtienneM

EtienneM Jul 22, 2019

Author Member

Yes it's probably better UX

This comment has been minimized.

Copy link
@EtienneM

EtienneM Jul 22, 2019

Author Member

Here your are:

$ scalingo --app my-app --addon ad-d4903c5a-7b38-4fca-950a-54a34ae84ca4 backups-config --schedule-at 3
-----> Periodic backups will be done daily at 3:00 CEST

@EtienneM EtienneM force-pushed the fix/454/periodic_backups_config branch from 77f4341 to 6c0a8fc Jul 22, 2019

@Soulou

This comment has been minimized.

Copy link
Member

commented Jul 22, 2019

And if no flag is used, shoudn't we display the current backups configuration?

@EtienneM EtienneM force-pushed the fix/454/periodic_backups_config branch from 345a5de to 6d1c95e Jul 22, 2019

@EtienneM EtienneM referenced this pull request Jul 22, 2019

@EtienneM EtienneM force-pushed the fix/454/periodic_backups_config branch 2 times, most recently from 00d07b3 to 120c397 Jul 22, 2019

@yannski

This comment has been minimized.

Copy link
Member

commented Jul 22, 2019

@EtienneM EtienneM requested a review from Soulou Jul 22, 2019

@EtienneM EtienneM force-pushed the fix/454/periodic_backups_config branch from 120c397 to 5d72bbc Jul 22, 2019

@Soulou

This comment has been minimized.

Copy link
Member

commented Jul 23, 2019

@EtienneM what so you think, local time by default but ability to write "full tz" like heroku?

@EtienneM

This comment has been minimized.

Copy link
Member Author

commented Jul 23, 2019

@EtienneM what so you think, local time by default but ability to write "full tz" like heroku?

Yep I will do that

And I like that Heroku name the option unschedule. I will also update this command name.

@EtienneM EtienneM requested review from Soulou and removed request for Soulou Jul 23, 2019

EtienneM added some commits Jul 22, 2019

@EtienneM EtienneM force-pushed the fix/454/periodic_backups_config branch from 33a3b39 to cec9050 Jul 23, 2019

@Soulou Soulou merged commit 38b1b52 into master Jul 23, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.