backup-utils icon indicating copy to clipboard operation
backup-utils copied to clipboard

Restore not honouring force=false on restore

Open Evesy opened this issue 3 years ago • 1 comments

When attempting a restore I expect it to prompt for confirmation before continuing unless --force is set.

What I've observed is the restore continuing without actually waiting for the user response to the prompt, example below of running ghe-restore <host> in a container:

Checking for leaked keys in the backup snapshot that is being restored ...
* No leaked keys found
Connect github:122 OK (v2.21.0)

WARNING: All data on GitHub Enterprise appliance github (v2.21.0)
         will be overwritten with data from snapshot 20210414T133625.
Please verify that this is the correct restore host before continuing.
Type 'yes' to continue:
Starting restore of github:122 with backup-utils v2.21.0 from snapshot 20210414T133625
Stopping cron and github-timerd ...
Restoring UUID ...
Restoring MySQL database from logical backup snapshot on an appliance configured for logical backups ...

Github backup utils version: 2.21.0

Evesy avatar Apr 14 '21 13:04 Evesy

Ok i am leave

Amirbhatti1122 avatar Apr 14 '22 22:04 Amirbhatti1122