mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
onedb, if the backup already exists stop the upgrade process
This commit is contained in:
parent
6d139a9b75
commit
ffce8af029
@ -51,7 +51,7 @@ class OneDB
|
||||
|
||||
if !ops[:force] && File.exists?(bck_file)
|
||||
puts "File #{bck_file} exists, backup aborted. Use -f to overwrite."
|
||||
return -1
|
||||
raise
|
||||
end
|
||||
|
||||
@backend.backup(bck_file)
|
||||
|
Loading…
x
Reference in New Issue
Block a user