Is there a way to force a 'yes' to the question:
This will rebuild an authorized_keys file.
You will lose any data stored in authorized_keys file.
Do you want to continue (yes/no)?
When trying to restore from backups? I create a backup on server A, copy to my mirror on Server B and want to restore via a script on a cronjob.
I am running
Gitlab 6.2
GitLab Shell version >= 1.7.4 ? ... OK (1.7.9)
With this syntax should work:
sudo gitlab-rake gitlab:backup:restore BACKUP=<BACKUP_ID> force=yes
Yes; set the environment variable force
to yes
for the rake process.
Similar to both Ash Wilson's and Andrés Cuadros Suárez's answers, I found the following also works (prepend with sudo
if required)
gitlab-backup restore force=yes
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With