mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-25 02:50:08 +03:00
Bug #1564: Do not restore the db when the backup cannot be done
This commit is contained in:
parent
627058c341
commit
f582cd0e08
@ -183,10 +183,10 @@ class OneDB
|
||||
"#{@backend.db_version}, current database version is #{version}"
|
||||
end
|
||||
|
||||
begin
|
||||
# FSCK will be executed, make DB backup
|
||||
backup(ops[:backup], ops)
|
||||
# FSCK will be executed, make DB backup
|
||||
backup(ops[:backup], ops)
|
||||
|
||||
begin
|
||||
puts " > Running fsck" if ops[:verbose]
|
||||
|
||||
result = @backend.fsck
|
||||
|
Loading…
x
Reference in New Issue
Block a user