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

provide extra information for restore operation #455

Closed
vdelendik opened this issue Jun 13, 2021 · 4 comments
Closed

provide extra information for restore operation #455

vdelendik opened this issue Jun 13, 2021 · 4 comments
Milestone

Comments

@vdelendik
Copy link
Contributor

during ./zebrunner.sh restore let's provide extra information about backup date of each sub-component.
For now we only warn that data might be lost. It will be useful to show backup generation date for each sub-component so administrator ensure he restore the system to that dates

@vdelendik vdelendik added this to the 1.9 milestone Jun 13, 2021
@vdelendik vdelendik modified the milestones: 1.9, 1.10 Sep 28, 2021
@vdelendik vdelendik modified the milestones: 1.10, 2.0 Jan 18, 2022
vdelendik pushed a commit that referenced this issue Jul 21, 2022
@vdelendik
Copy link
Contributor Author

fixed adding 2 modifications:

  1. if you run ./zebrunner.sh restore with backup you should see warning and exit:
You have to backup something in advance using: ./zebrunner.sh backup
For more help join telegram channel: https://t.me/zebrunner
  1. when you already have a backup we show not datetime state when your backup was done and message should be:
Your services will be stopped and current data might be lost.
Do you want to do a restore to "Thu Jul 21 13:50:53 UTC 2022" state? y/n [n]:

where date is calculated based on backup/settings.env.bak file only

@ghost
Copy link

ghost commented Jul 28, 2022

Verified, for case 2 I got old message, need fix.
Снимок экрана 2022-07-28 в 19 25 18

@ghost ghost reopened this Jul 28, 2022
@ghost
Copy link

ghost commented Jul 28, 2022

2 case was tested with wrong command, after re-verification with ./zebrunner.sh restore it works fine

@vdelendik
Copy link
Contributor Author

closed based on latest comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant