1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-28 14:50:08 +03:00

M #-: restore database in case no migrators (#45)

(cherry picked from commit a74be9abb8afe00bffb74b24396ac6234bd91cc3)
This commit is contained in:
Alejandro Huertas Herrero 2020-06-24 18:15:08 +02:00 committed by Ruben S. Montero
parent caa7301e7f
commit e2434ca9b2
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -320,7 +320,12 @@ class OneDB
'with non-commercial deployments they are provided ' \
"via a\ndedicated migration package, which must be " \
'obtained separately.'
0
puts
puts 'The database will be restored'
restore(ops[:backup], :force => true)
-1
rescue Exception => e
puts
puts e.message